I’m someone who does not particularly like Visual Studio at all and would much, much rather use my highly configured gvim to edit code than be fenced into an IDE.
As such, I’m aiming for a way to compile C# code for web applications without the need of a bloated >2gb monstrosity that I will only ever need to use occasionally.
Currently, I can compile existing code with the following batch script:
http://www.codeproject.com/Questions/495608/howplustopluspublishplussiteplususingplusaspnet_co
The issue comes with the need for a project file and a solution file. Is there a way to isolate how these are generated (If I can get an existing script Visual Studio uses, I can use a remote machine’s copy in an automated script) or generate them yourself?
Or, alternatively, is there a way to bypass them for smaller projects and individual forms? Unfortunately, my knowledge of aspnet_compiler is limited.
The
Microsoft.Buildnamespace is your friend!Example: making a csproj:
Generating a “metaproject” file from a solution (.sln file):
rummage, rummage Aha – knew I had this around; an example of actually building projects of a generated metaproject/solution file: