开发者

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

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


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜