views:

143

answers:

4

Just jointed a new project which they are using VC#2008 to build an application. There are several components and many files under one project now. I was asked to setup a build machine to start dailly build. The frist thing I was told to do is write a batch file to call csc.exe to create an executable manually without the VC#2008 installed.

I am new to C# and I have no idea about the solution. I know the old VC++ can create a makefile for us to do manual build. Does the VC#2008 has similar functionality? Any info and links will be appriciated.

thanks, James

+1  A: 

You should probably take a look at MSBuild.exe - run it from the command line to see the full options.

David M
In particular, start with `msbuild projectname`
Craig Stuntz
+2  A: 

MSBuild is pretty handy but I've found NAnt to be easier to use.

Austin Salonen
MSBuild seems to be better choice, as *.csproj and *.vbproj are, in fact, MSBuild scripts, so you don't need to write your own scripts.
Bolek Tekielski
+5  A: 

The easiest way to manually build a Visual C# project is to use msbuild. The msbuild executable can be passed the VS project file directly and the result will be identical to VS compiling it.

msbuild myApp.csproj

Msbuild comes as part of the framework and hence can be used without Visual Studio being on the machine.

JaredPar
+4  A: 
Joel Coehoorn