Sachbist
Sachbist

Reputation: 1

Asp.net Web Site build and Publish

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....

Upvotes: 0

Views: 891

Answers (2)

Jeremy Frey
Jeremy Frey

Reputation: 2405

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).

Upvotes: 1

anishMarokey
anishMarokey

Reputation: 11397

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

Upvotes: 0

Related Questions