Asp – How to build a .NET website using Nant

asp.netcscmsbuildnantnet

I usually use web applications in Visual Studio and the MSBUILD taks in Nant builds them without any problems:

<msbuild project="MySolution.sln">
  arg value="/property:Configuration=release" />
</msbuild> 

I now have a website (not a web application) in a VS Solution and it won't build – I get a lot of namespace errors.

Should I be able to build the solution with MSBUILD even though it contains a website? Or do I need to use CSC?

Best Answer

You should try using the devenv.exe command if msbuild.exe is failing for you. Also you may be interested in Web Deployment Projects.

Sayed Ibrahim Hashimi

My Book: Inside the Microsoft Build Engine : Using MSBuild and Team Foundation Build