Asp – build ASP.Net default web site error

asp.netmsbuildvisual studio

I am using VSTS 2008 and I am using Create new ASP.Net web site and using default settings/automatically generated files.

My questions are,

  1. How to use command line script (msbuild) to build the ASP.Net web site automatically?
  2. I want to build the web site into a DLL which could be easily copied to target IIS server later.

Any samples or quick answer how to do these tasks in msbuild?

EDIT1: There is no sln and csproj file in the web site folder. Here is the link.

http://tinypic.com/view.php?pic=dra5jp&s=5

Here is how I create in VSTS 2008.

http://i40.tinypic.com/208zfxv.jpg

Best Answer

I use VS.NET 2005 and using this command to build my asp.net web application in release mode :

cd "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\"
MSBuild "C:\Projects\MyProject.csproj" /t:Rebuild /p:Configuration=Release /verbosity:quiet /p:WarningLevel=0