views:

53

answers:

3

How to build and publish the ASP.NET web site(Microsoft Vishul Studio->File->New->Website) using Cruise Control.net. Actually, ASP.NET Web site doesnot contain .csproj and .sln file.

Please Provide the solution and Suggestion for same.

Thanks in advance....

A: 

please refer the msdn link: http://msdn.microsoft.com/en-us/library/1y1404zt(VS.80).aspx

anishmarokey
thanks anish but i want to build and publish ASP.NET website using criuse control.net and NANT Script instead of Visual Studio UI.
Sachbist
+1  A: 

You can add your web site to an empty solution (giving you a .sln file), then call msbuild.exe using the exec task against the solution file, or use NAntContrib's msbuild task.

For deploying, since it's a website, you have two options: either copy the files directly to the target location, or first precompile with aspnet_compiler.exe, then copy. See this MSDN article on more info on precompiling.

Your build file will contain roughly the following tasks:

  1. MsBuild
  2. (Optional) aspnet_compile
  3. Copy to destination location

Plug that into cruise control and you should be good to go (though I recommend separate build configurations for 1 and 2 vs 3).

Jeremy Frey
A: 

Hi,

I am not getting meaning of You can add your web site to an empty solution (giving you a .sln file).

For Example: ASP.NET WebSite have following struture.

1.App_Data 2.Default.aspx 3.Default.aspx.cs 4.Web.Config

Thanks in Advance

Sachbist