Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

distribution in VS 2013

Hi Sir :

 

I use Measurement studio 2013 and VS2013 for my project and I want to distribute my project on another PC with same OS.

 

My platform is Win 7 64-bit and use .Net framework 4.5.

 

Before to create an installer, I find that I should create a licenses.licx file for my project.

 

I refer the link below.

 

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

 

However, this example based on VS2010 and some of steps below I do not how to do in VS2013.

 

Manually Creating an .licx File

To manually license the Measurement Studio assemblies you must have a licenses.licx text file included in your project. If your project does not have a licenses.licx file, complete the following steps.

  1. Use a text editor to create an empty text file.
  2. Name the file licenses.licx, and place the file in the directory for your project.
  3. Right-click the licenses.licx file, and select Include in Project. // I do not know how to do this
  4. Set Build Action to Embedded Resource in the Properties window for the file.
  5. Add and update all the Measurement Studio licensed types for the file as outlined in the following section.

Licensing Visual C++ CLR Projects in Visual Studio 2010

In Visual Studio 2010, if you create a Visual C++ CLR project and then add a Measurement Studio control, by default Visual Studio does not embed the license for the Measurement Studio control into the compiled application. As a result, you receive aLicenseException at run time. To work around this issue, you can manually set the licenses.licx file to build with the License Compiler by completing the following steps:

  1. Right-click on the project in the Solution Explorer.
  2. Select Build Customizations from the context menu.// I do not know how to do this, VS2013 seems has no this option
  3. In the Available Build Customization Files pane, select the check box to add lc(.targets, .props) for your project. ClickOK.
  4. Right-click on licenses.licx in the Solution Explorer, and select Properties.
  5. In the Property Pages, select General in the Configuration pane, then select License Compiler in the Item Type drop-down list. Click OK.

Could you please give me a example that bases on VS2013?

 

I only use waveformgraph and led arrays in my project and use NationalInstruments.UI.WindowsForms、NationalInstruments.Analysis.Enterprise、NationalInstruments.Common and NationalInstruments.UI for reference.

 

So I create licenses.licx like attached file, could you help to check if the file is correct?

 

I follow NI’s recommendation to use wix for MS installer and I also try your example All Libraries.2012.

 

This version bases on VS2012,

 

However, I can not check and add .Net Framework 4.5 on target machine.

 

Could you show me how to do this or could you proivde me an example that base on VS2013?

 

Best regards,

 

Marcus

0 Kudos
Message 1 of 1
(4,941 Views)