ASP.NET command line compiler?

  • Thread starter Thread starter michael
  • Start date Start date
I believe VS.NET's executable devenv.exe has capability to do that from
commandline (without GUI) but it won't help if you need to do that in a
machine where VS.NET isn't installed.

--
Teemu Keiski
MCP, Microsoft MVP (ASP.NET), AspInsiders member
ASP.NET Forum Moderator, AspAlliance Columnist

How can I compile my VS.NET ASP.NET project from the command line?
 
You probably want to use the compiler for the language, not the IDE. Visual Studio is not a language itself

<language compiler> filename <options

C# command line cimpiler name: cs
VB command line cimpiler name: vb

So for compiling a C# file named myFile.cs the syntax would be: csc myFile.c

You can look up the syntax for multi file assemplies etc, but you might not have been having any luck becuase the command line compiler info is for the language used. You do not need Visual Studio installed on the machine, but you do need the .Net Framework

Joh
 
Does this build my .aspx files as well - or is that needed?



John Scragg said:
You probably want to use the compiler for the language, not the IDE.
Visual Studio is not a language itself.
<language compiler> filename <options>

C# command line cimpiler name: csc
VB command line cimpiler name: vbc

So for compiling a C# file named myFile.cs the syntax would be: csc myFile.cs

You can look up the syntax for multi file assemplies etc, but you might
not have been having any luck becuase the command line compiler info is for
the language used. You do not need Visual Studio installed on the machine,
but you do need the .Net Framework.
 
Back
Top