PC Review


Reply
Thread Tools Rating: Thread Rating: 3 votes, 1.00 average.

command line compile asp c# project

 
 
=?Utf-8?B?dHVzaGFy?=
Guest
Posts: n/a
 
      21st Jan 2004
hello

I have a asp.net project that uses c# as the code behind lang.
I would like to add a few features but my current computer does not have the Visual studio IDE - just the SDK

for simple forms i was able to add the src attrib and get the classes to compile but when I use a class in the same namespace my code behind forms ( a data base class - that connects to the Db and has other Db access util methods) - the on demand compile fails with the msg:

Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: CS0246: The type or namespace name 'DatabaseOps' could not be found (are you missing a using directive or an assembly reference?)

Source Error:



Line 36: else
Line 37: {
Line 38: DatabaseOps dbOp;
Line 39: dbOp = new DatabaseOps ();
Line 40: Boolean validatedB = false;


***
Any help on how to buildweb app dll from the command line would be appreciated.

I tried using csc on each of the .cs files and finally al.exe

with the commands
csc /t:module DatabaseOps.cs


csc /addmoduleatabaseOps.netmodule /t:module login.aspx.cs


csc /addmoduleatabaseOps.netmodule /t:module Expoinvoice.aspx.cs


csc /addmoduleatabaseOps.netmodule /t:module ExpoinvoiceDetail.aspx.cs


csc /addmoduleatabaseOps.netmodule /t:module Global.asax.cs

csc /addmoduleatabaseOps.netmodule /t:module logout.aspx.cs

csc /addmoduleatabaseOps.netmodule /t:module ReportChooser.aspx.cs

csc /addmoduleatabaseOps.netmodule /t:module AssemblyInfo.cs

al DatabaseOps.netmodule login.aspx.netmodule Expoinvoice.aspx.netmodule Global.asax.netmodule logout.aspx.netmodule ReportChooser.aspx.netmodule AssemblyInfo.netmodule /target:LIBRARY /out:a.dll

I guess I need to compile something else too - cause the dll I got was much smaller than the one the IDE had made on the other computer. ( was 34kb but the command line one i made is just 5kb ! )

Regards
Tushar
 
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
Compile ASP.NET via command line =?Utf-8?B?S2V2aW4=?= Microsoft ASP .NET 1 14th Jun 2004 07:18 AM
Can I compile a whole project under command prompt? wangyang Microsoft Dot NET Framework 5 7th Nov 2003 11:19 PM
Can I compile a whole project under command prompt? Microsoft Dot NET 2 4th Nov 2003 05:32 PM
Re: Can't compile from command line Herfried K. Wagner [MVP] Microsoft VB .NET 2 21st Aug 2003 07:40 PM
Command Line Compile Drew Microsoft C# .NET 2 12th Aug 2003 11:17 AM


Features
 

Advertising
 

Newsgroups
 


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