473,395 Members | 1,742 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Command Line Compiling with license file

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
2 1930
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: charlie | last post by:
Hello, I am trying to compile php-5.0.0b3 on a fedora 1.0 system. I am beginning with the following: charliek 12$./configure \ --with-apxs2=/usr/local/apache2/bin/apxs \ --with-mysql...
2
by: Robert | last post by:
I am using the php4-cgi Debian package which is based on PHP 4.3.4. I have problems when running php4 on the command line. If I say something like $ php4 index.cgi a number of variables...
1
by: Sparhawk | last post by:
Hi, I want to integrate a code beautifier for C++ in the development process of my company. There are many beautifiers around which would meet our formatting requirements (SourceFormatX,...
5
by: randyelliott | last post by:
Good Day, I have a MS Access (Access 2000 now upgraded to 2003) database that tracks customer information. One function of this database is to create an encrypted license file for our software,...
6
by: Edd Dawson | last post by:
Hi. I have a strange problem involving the passing of command line arguments to a C program I'm writing. I tried posting this in comp.programming yesterday but someone kindly suggested that I'd...
5
by: Genboy | last post by:
My "VIS" Website, which is a C# site created in VS.NET, Framework 1.1, is no longer compiling for me via the command line. As I have done 600 times in the last year and a half, I can compile to...
0
by: Louise Caldicott | last post by:
Hi all, I have created a project in Visual Studio which uses satellite assemblies. I have also written a script to build this project from the command line. There seems to be a difference in...
4
by: N. P. | last post by:
I do not have Visual Basic .NET Standard or higher but I have downloaded the ..NET SDK and the 101 VB.NET samples from the MSDN website. I am sure that there must be a way to compile and...
3
by: andrew | last post by:
Hello, I have spend the past day trying to figure out how to do this. PROBLEM: My instructor wants us to use a shapes library that horstmann wrote. An example would be: /////////////////////////...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.