PC Review


Reply
Thread Tools Rate Thread

Command Line Compiling with license file

 
 
=?Utf-8?B?U21pbGVfNw==?=
Guest
Posts: n/a
 
      5th Apr 2005
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.
 
Reply With Quote
 
 
 
 
Crouchie1998
Guest
Posts: n/a
 
      5th Apr 2005
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


 
Reply With Quote
 
=?Utf-8?B?U21pbGVfNw==?=
Guest
Posts: n/a
 
      6th Apr 2005
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?


"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
>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Command line compiling... Papanii Okai Microsoft C# .NET 1 1st May 2006 08:57 PM
Compiling from the command line Ron L Microsoft VB .NET 5 28th Oct 2005 03:45 PM
Compiling from command line... =?Utf-8?B?RGFuaWVsZQ==?= Microsoft VB .NET 6 24th Jan 2005 06:02 PM
Compiling from the command line Sathyaish Chakravarthy Microsoft C# .NET 2 29th May 2004 01:24 PM
compiling from the command line MCSD Microsoft VC .NET 3 8th Jan 2004 07:06 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:53 PM.