07-20-2018 02:37 AM
Hi,
We have an application built with Visual Studio 2015. This was migrated from Measurement Studio 2013 to Measurement Studio 2015 but used dlls were not updated to match MS2015.
We have following three dlls from MS13 and it all works fine.
Name ----------------------------- Version
NationalInstruments.Analysis.Enterprise.dll 13.0.45.242
NationalInstruments.Common.dll 13.0.40.188
NationalInstruments.NiLmClientDLL.dll 13.0.40.188
problem starts when I add following two MS13 dlls to my project
NationalInstruments.UI.dll 13.0.45.282
NationalInstruments.UI.Styles3D.dll 13.0.45.282
I start getting compilation error for version mistach with system installed MS15 Dlls
Severity Code Description Project File Line Suppression State
Error Exception occurred creating type 'NationalInstruments.Restricted.AnalysisLicenser, NationalInstruments.Analysis.Enterprise, Version=13.0.45.242, Culture=neutral, PublicKeyToken=4febd62461bf11a4' System.IO.FileNotFoundException: Could not load file or assembly 'NationalInstruments.Common, Version=17.5.40.49153, Culture=neutral, PublicKeyToken=dc6ad606294fc298' or one of its dependencies. The system cannot find the file specified. AxisParameters C:\GIT\PTest\AxisParameters\Properties\licenses.licx 1
and below is 'liecense.licx' file
NationalInstruments.Restricted.AnalysisLicenser, NationalInstruments.Analysis.Enterprise, Version=13.0.45.242, Culture=neutral, PublicKeyToken=4febd62461bf11a4
and below is entry in .csproj file
<Reference Include="NationalInstruments.Analysis.Enterprise, Version=13.0.45.242, Culture=neutral, PublicKeyToken=4febd62461bf11a4, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\Resources\NationalInstruments.Analysis.Enterprise.dll</HintPath>
</Reference>
<Reference Include="NationalInstruments.Common, Version=13.0.40.188, Culture=neutral, PublicKeyToken=4febd62461bf11a4, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\Resources\NationalInstruments.Common.dll</HintPath>
</Reference>
<Reference Include="NationalInstruments.NiLmClientDLL, Version=13.0.40.188, Culture=neutral, PublicKeyToken=4febd62461bf11a4, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\Resources\NationalInstruments.NiLmClientDLL.dll</HintPath>
</Reference>
How to avoid conflict between application's MS13 dll and system installed MS15 dlls?
07-20-2018 04:02 PM
Check out this forum post, I think that it answers your question nicely: