Command Line Compiling with license file

G

Guest

Hello:

I am using some 3rd party assemblies that require a license file.
If I create a new project inside visual studios and compile the application,
I have no problems but my project requires me to compile the files via the
command line using vbc.

I have used lc.exe to compile and create the binary license file. When I
use vbc.exe and include all the referenced assemblies and embed the binary
license file I am able to produce an executable but my application will not
run because the licensed assemblies don't recognize that I have a license
file. Is there another step I am missing in the compilation process to ensure
the binary license file gets embedded in the exe? When I include the license
file as an embedded resource I'm using "/resource:myapp.exe.licenses". Is
this correct?

Thanks

P.S. I am able to compile and run a simple application that doesn't use
licensed assemblies, so I'm thinking my problem lies with the license file.
 
C

Crouchie1998

You said that you have embedded the license file when it should be in the
same directory as the assembly. Plus, do you know what the license file test
should read? Example:

This control is registered
or
This control isn't registered etc. etc. etc.

There is plenty of information on creating license files on the MSDN website

Crouchie1998
BA (HONS) MCP MCSE
 
G

Guest

I tried moving the license file to the same directory as the assembly but
still did have not have any luck associating the license file with the
executable. When I use the following command line switches, I can create an
exectuable but when I run the executable I receive a pop up box that says,
"The Measurment Studio assemblies used are unlicensed...."

c:\TEMP\Comp\AssemblyInfo.vb
c:\TEMP\Comp\Form1.vb
/resource:C:\TEMP\Comp\Form1.resx
/resource:C:\TEMP\Comp\obj\Debug\Comp.Form1.resources
/resource:C:\TEMP\Comp\licenses.licx
/r:"C:\Program Files\National
Instruments\MeasurementStudio70\DotNET\Assemblies\Current\NationalInstruments.Common.dll"
/r:"C:\Program Files\National
Instruments\MeasurementStudio70\DotNET\Assemblies\Current\NationalInstruments.UI.dll"
/r:"C:\Program Files\National
Instruments\MeasurementStudio70\DotNET\Assemblies\Current\NationalInstruments.UI.WindowsForms.dll"
/resource:C:\TEMP\Comp\obj\Debug\Comp.exe.licenses
/r:system.dll
/r:system.data.dll
/r:system.drawing.dll
/r:system.windows.forms.dll
/r:system.xml.dll
/out:C:\TEMP\Comp\out.exe
/t:winexe
/main:Form1
/verbose

Am I using the switches incorrectly?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top