By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,254 Members | 1,310 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,254 IT Pros & Developers. It's quick & easy.

Command Line Compiling with license file

P: n/a
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.
Nov 21 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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
Nov 21 '05 #2

P: n/a
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.resourc es
/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?
"Crouchie1998" wrote:
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

Nov 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.