Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / .NET SDK / July 2004

Tip: Looking for answers? Try searching our database.

Need help with license compiler

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
DI - 15 Mar 2004 17:59 GMT
I want to use command line tools (csc.exe, lc.exe) to compile a C# program
that uses licensed classes from custom assemblies.

If I use classes from just one assembly, everything works fine.

- Csc.exe compliles my source into an EXE

- lc.exe creates a .licenses file and

- csc.exe embeds the resource into my EXE.

(as shown in the help documentation of .NET Framework)

When I use licensed classes out of two different assemblies, I have to call
the module parameter (/i:...) from lc.exe with both assemblies separated
with a semicolon and declare both classes in the complist-file
(licenses.licx).

But, if I run lc.exe an error occurs that says, that it cannot resolve both
types.

If I run lc.exe with just one of the classes in the complist-file, lc.exe
has no error and creates the .licenses file. But, because of the other
class-license is not properly compiled, the resulting code throws a
license-exception.

The help documentation does not show how to include classes from different
assemblies.

If I run my program with Visual Studio, VS didn't have any problems in
compiling and executing. So I think there are no errors in my code. But, I
need to be able to compile my program in the command line.

Does anyone know, how to solve this problem?
DotNetJunkies User - 06 Jul 2004 16:22 GMT
Have you tried calling /i: twice?

That is /i:stuff1.dll /i:stuff2.dll instead of /i:stuff1.dll;stuff2.dll

---

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.