|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Command Line Compiling with license fileI 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. 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 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? Show quoteHide quote "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 > > >
2D array of string
Equivalent to Mid function but read from right of the string Opening a browser from vb.net from need clarification from M S Herfried K. Wagner Help using Right() string function? 2GB memory limit How to set the default value of a date picker to nothing (blank) Datagrid Question Parameter it doesn't work (for me) IIII get no-integer returned from exe |
|||||||||||||||||||||||