Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 
Reply

Compilation warning with MS13 dll in Visual Studio 2015

Highlighted

Compilation warning with MS13 dll in Visual Studio 2015

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?

0 Kudos
Message 1 of 2
(71 Views)

Re: Compilation warning with MS13 dll in Visual Studio 2015

Check out this forum post, I think that it answers your question nicely:

https://forums.ni.com/t5/Measurement-Studio-for-NET/How-do-I-resolve-conflict-between-versions/td-p/...

Francine P.
Applications Engineering
National Instruments
0 Kudos
Message 2 of 2
(51 Views)