Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

64-bit .net application support

Hi,

 

I have a VB.NET application that works fine with measurement studio 2013.  However, when I changed my build configuration to target "Any CPU" or "x64," I then get the folling warnings, but no runtime errors--YET. 

 

Warning 1 Referenced assembly 'C:\Program Files (x86)\National Instruments\MeasurementStudioVS2012\DotNET\Assemblies\Current\NationalInstruments.Common.Native.dll' targets a different processor than the application. RGAController.UI

 

Warning 2 Referenced assembly 'C:\Program Files (x86)\National Instruments\MeasurementStudioVS2012\DotNET\Assemblies\Current\NationalInstruments.UI.Styles3D.dll' targets a different processor than the application. RGAController.UI

 

Is this normal?  If not, how can I address the warnings?  Please enlighten me. 

 

(my processor is a 64-bit intel iCore7)

 

Thank you,

 

Andy Moyer

0 Kudos
Message 1 of 2
(6,095 Views)

Andy,

 

The warning you are seeing happens because those two assemblies that are referenced are the 32-bit versions of the assemblies.

Here is a help topic that gives a lot more information about what is happening:

64-bit Support in Measurement Studio .NET Assemblies

http://zone.ni.com/reference/en-XX/help/372636F-01/mstudiowebhelp/html/64bitsupport/

Those particular DLLS are platform-specific, so they can’t easily be used with "Any CPU" selected. The recommendation to resolve that warning is just to change the target platform back to x86 (32-bit). In general, any 32-bit application can run on a 64-bit processor.

If you want to set the target to x64, you can replace the references in your project with references to the 64-bit versions of those two assemblies. They can be found here:

C:\Program Files (x86)\National Instruments\MeasurementStudioVS2012\DotNET\Assemblies (64-bit)\Current

 

K Johnson

Applications Engineer

National Instruments

Message 2 of 2
(6,067 Views)