[英]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. 如何使用Cruise Control.net构建和发布ASP.NET网站(Microsoft Vishul Studio->文件->新建->网站)。 Actually, ASP.NET Web site doesnot contain .csproj and .sln file.
实际上,ASP.NET网站不包含.csproj和.sln文件。
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. 您可以将您的网站添加到一个空的解决方案中(为您提供.sln文件),然后对解决方案文件使用exec任务调用msbuild.exe,或者使用NAntContrib的 msbuild任务。
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. 要进行部署,因为它是网站,所以您有两个选择: 将文件直接复制到目标位置,或者首先使用aspnet_compiler.exe进行预编译,然后进行复制。 See this MSDN article on more info on precompiling.
有关预编译的更多信息,请参见此MSDN文章 。
Your build file will contain roughly the following tasks: 您的构建文件将大致包含以下任务:
Plug that into cruise control and you should be good to go (though I recommend separate build configurations for 1 and 2 vs 3). 将其插入巡航控制系统,您应该会很好(尽管我建议为1和2与3分别配置版本)。
请参考msdn链接: http : //msdn.microsoft.com/zh-cn/library/1y1404zt( VS.80) .aspx
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.