开发者

Asp.net Web Site build and Publish

开发者 https://www.devze.com 2023-01-11 22:37 出处:网络
How to build and publish the ASP.NET web site(Microsoft Vishul Studio->File->New->Website) using Cruise Control.ne开发者_Go百科t.

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

精彩评论

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

关注公众号