简体   繁体   English

发布标准VS网站项目的Web对话框?

[英]Publish Web dialog for a standard VS Website Project?

Until I started building MVC sites, I always built WebForm web sites using Visual Studio Web Site projects (instead of Web Application projects). 在开始构建MVC网站之前,我始终使用Visual Studio 网站项目(而不是Web应用程序项目)来构建WebForm网站。 When I publish my MVC sites, I'm loving the Publish Web dialog that allows much more control over the deployment than I'm used to. 当我发布MVC网站时,我喜欢“发布Web”对话框,该对话框允许对部署进行比以往更多的控制。 This is the feature I've been looking for for 5 years! 这是我寻找了5年的功能! Web Site projects only allow one fairly brutal mode of publishing. 网站项目仅允许一种相当残酷的发布模式。

I'm curious: 我很好奇:

  1. Is this an MVC feature, or is it available for all Web Application projects? 这是MVC功能,还是可用于所有Web应用程序项目?
  2. Is there any way to get this dialog to appear when publishing a Web Site project? 发布网站项目时,有什么方法可以使该对话框出现?
  3. Has publishing of Web Site projects improved in the VS 2010 Beta? 在VS 2010 Beta中,网站项目的发布是否有所改善?
  1. It's available for all Web Application projects. 它适用于所有Web应用程序项目。

  2. No. Web site projects are generally meant to be used for "in place" web sites, or for smaller sites where you want them to be updateable on the fly. 不能。网站项目通常用于“就地”网站,或者用于希望即时更新它们的小型网站。 They're really a bad option in a lot of ways when you're talking about deployment. 在谈论部署时,从许多方面来看,它们实际上是一个糟糕的选择。 You should check out this pretty famous thread here on Stackoverflow for a lot of commentary on this topic. 您应该在Stackoverflow上查看这个非常有名的线程 ,以获取有关此主题的大量评论。

  3. I believe there are a number of new deployment options for VS2010, although I haven't heard much about Website Projects. 我相信VS2010有许多新的部署选项,尽管我对网站项目了解不多。 This blog post from the dev team details several new deployment tools for Web Application Projects. 开发团队的这篇博客文章详细介绍了一些针对Web应用程序项目的新部署工具。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM