Compilation error

  • Thread starter Thread starter Ben
  • Start date Start date
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
 
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?
 
Back
Top