Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Compiling Assemblies using the command line

Status
Not open for further replies.

PureDevelopers

IS-IT--Management
Aug 25, 2006
18
US
I am working through the first exercise in Professional ASP.Net 2.0 Server Control and Component Development, and the author tells you to use the command line to compile the assembly for the gac using: csc /t:library /out:CustomComponents.dll /r:System.dll /r:System.Web.dll AssemblyInfo.cs CreditcardForm1.cs

where I am compiling the AssemblyInfo and Creditcardform1 pages. I am getting an error that the compiler can't find the creditcardform1.cs file. I have tried specifying the path to the file like so:

csc /t:library /out:CustomComponents.dll /r:System.dll /r:System.Web.dll C:\CustomComponents\App_Code\AssemblyInfo.cs C:\CustomComponents\App_Code\CreditcardForm1.cs

as well as navigating to the directory in the command line.
I can't seem to get it to find the file. How do you specify the files relative to a location ??

the files are obviously in: C:\CustomComponents\App_Code\
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top