Compilation error

B

Ben

I'm using the dos command to compile our app web forms
dll via the following batch file :

set InDir=c:\test\
set OutDir=c:\inetpub\wwwroot\test\bin\
set InFile1=%InDir%Default.aspx.cs
set InFile2=%InDir%Login.aspx.cs
set OutFile=%OutDir%\test.webform.dll
set
assemblies=System.dll,System.Data.dll,System.Web.dll,%
OutDir%test.biz.dll
csc /t:library /out:%OutFile% %InFile1% %InFile2% /r:%
assemblies%

It works fine until the no. of InFile grows to over 50
that it complains "The input line is too long."

Is there a way to resolve this?

Thanks,
Ben
 
C

Chris Dunaway

I'm using the dos command to compile our app web forms
dll via the following batch file :

set InDir=c:\test\
set OutDir=c:\inetpub\wwwroot\test\bin\
set InFile1=%InDir%Default.aspx.cs
set InFile2=%InDir%Login.aspx.cs
set OutFile=%OutDir%\test.webform.dll
set
assemblies=System.dll,System.Data.dll,System.Web.dll,%
OutDir%test.biz.dll
csc /t:library /out:%OutFile% %InFile1% %InFile2% /r:%
assemblies%

It works fine until the no. of InFile grows to over 50
that it complains "The input line is too long."

Is there a way to resolve this?

Thanks,
Ben

I think the command prompt has a limit on the length of the line. You may
be exceeding this. I believe that you can place all your commands in a
file and use that on the csc command line like this:

csc @filename.txt

filename.txt will contain all the options for the compiler such as the /r
option, etc.

Does this help?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top