简体   繁体   English

Asp.net网站的建立和发布

[英]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: 您的构建文件将大致包含以下任务:

  1. MsBuild MsBuild
  2. (Optional) aspnet_compile (可选)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). 将其插入巡航控制系统,您应该会很好(尽管我建议为1和2与3分别配置版本)。

请参考msdn链接: http : //msdn.microsoft.com/zh-cn/library/1y1404zt( VS.80) .aspx

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 生成/发布Visual Studio 2013 ASP.NET网站的单页 - Build/Publish Single Page of Visual Studio 2013 ASP.NET Web Site 使用DevExpress参考发布ASP.NET网站 - Publish ASP.NET Web Site with DevExpress references 如何在Windows Azure Web App上发布的asp.net网站中访问Web服务 - How to to access web service in asp.net web site whcih publish on windows azure Web App 发布网站时我无法发送邮件-ASP.NET Web窗体 - I Can't Send Mail When I Publish My Web Site - ASP.NET Web Forms 使用c#使用Microsoft.Build.Engine构建和发布(ASP.NET Web应用程序) - Build and Publish (ASP.NET Web Application) using Microsoft.Build.Engine using c# 发布网站:两个临时ASP.NET程序集中都存在TYPE - Publish web site: TYPE exists in both temporary ASP.NET assemblies 如何在ASP.Net中发布Web服务? - How to publish web service in ASP.Net? 在Button_Click事件中使用c#生成和发布(ASP.NET Web应用程序) - Build and Publish (ASP.NET Web Application) using c# in Button_Click event 为什么 web.config 是在发布时创建的,而不是在 Asp.Net Core API 中构建项目时创建的? - Why is web.config getting created on publish not on build the project in Asp.Net Core API? NUnit与ASP.NET网站 - NUnit with an ASP.NET web site
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM