05-29-2008 04:18 PM
05-29-2008 05:13 PM
05-29-2008 07:50 PM
Versioning of the NationalInstruments.Common .NET class library
works differently than versions of other Measurement Studio libraries because it
includes types that all Measurement Studio .NET class libraries reference.
Therefore, the NationalInstruments.Common.dll assembly must
be compatible with all versions of Measurement Studio .NET assemblies. If you
install a later version of the NationalInstruments.Common.dll assembly over an earlier version, the later version replaces the earlier
version in the GAC and installs a publisher policy file so that all applications
that reference the earlier version can load the later version.
So how do we deal with this versioning from a deployment perspective? Well, the NationalInstruments.Common class library merge module default
setting causes the NationalInstruments.Common class library to install to the GAC along with a policy file that redirects all references to the latest version of NationalInstruments.Common installed on the system. This means that
by default, applications that reference NationalInstruments.Common
use the latest version of NationalInstruments.Common installed on
the system.
If you decide to create a Visual Studio installer for your application, you need to make sure that you have included the MStudioCommon.2005.msm
merge module which houses the Common as well as the and Common.Native assemblies.
Visual Studio should automatically add this merge module and its
dependencies for you.
Now if you decide to just copy the assemblies directly over to your target machine like you are doing now, please read the Measurement Studio .NET XCOPY Deployment Files help topic which describes all the files and caveats. This is very very important for you to read.
Hopefully after reading this post and those help topics, everything should fall into place. If you are not clear on any topic I have mentioned, or you are still having issues after reading these documents, please let me know.
Best Regards,
05-30-2008 04:25 PM
Thanks for your help. I am an not familliar with MS8 yet, i have been working with it only for two weeks. Since the installer is in the development phase, i needed a working version of the project. For now i just copied the two files i had problems with in my working directory and everything worked fine. The application started on my notebook without any problem. but i know this is not the best solution for the future. Thanks again for your quick help and your hints to learn more about the technical background on this subject.