ni.com is currently undergoing scheduled maintenance.
Some services may be unavailable at this time. Please contact us for help or try again later.
09-29-2016 08:05 AM
Hi,
I am working in Visual Studio 2012 in C# and am looking for recommendations on how to create a redistributable project, in which, i have project references to NationalInstruments.VisaNS and NationalIInstruments.Common. I intend to make a DLL for my project that allows my colleagues to interface with various measurement instrumentation devices in their labs. I have Measurement Studio and Visual Studio on my machine, but assume that others will not have these tools on their hardware.
In an earlier attempt, we realized that the references to NationalInstruments.VisaNS would not work on another person's computer because they did not have NationalInstruments.VisaNS installed into the file path that the <myProject.dll> was looking for. If I were to fix this file path issue and give him the other required DLL's, would he run into the problem that he does not have Measurement Studio? Just curious as i work on this to see if it is a well known issue.
Thanks
09-29-2016 11:07 AM
Hi,
Set the CopyLocal property of the VisaNS and Common references to True. The files will be copied to the release folder when you build your project. These files will have to be copied to the end users pc along with the .exe. They'll still need to have NI Visa installed on their machines for the app to communicate with any hardware.
Curt