How to build and publish the ASP.NET web site(Microsoft Vishul Studio->File->New->Website) using Cruise Control.ne开发者_Go百科t. Actually, ASP.NET Web site doesnot contain .csproj and .sln file.
Please Provide the solution and Suggestion for same.
Thanks in advance....
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:
- MsBuild
- (Optional) aspnet_compile
- 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).
please refer the msdn link: http://msdn.microsoft.com/en-us/library/1y1404zt(VS.80).aspx
精彩评论