Web 部署项目、Web 应用程序项目和 Team Build 2008

发布于 2024-08-07 08:17:36 字数 180 浏览 3 评论 0原文

我已从网站项目切换到 WAP(Web 应用程序项目)。

WDP(Web 部署项目)用于设置并可能在将来进行其他 web.config 更改。

但我注意到团队构建将所有内容构建两次,一次代表解决方案文件,另一次是因为 WDP。知道如何阻止这种情况发生吗?

或者有没有办法完全替换 Web 部署项目?

I've switched from a Website Project to a WAP (Web Application project).

The WDP (Web Deployment Project) is used to set and potentially in the future make other web.config changes.

However I notice that the team build is building everything twice, once on behalf of the solution file and then again because of the WDP. Any idea how I can stop this from happening?

Or is there a way to replace out the web deployment project altogether?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

落墨 2024-08-14 08:17:36

是的,是的。

您可以按照以下步骤阻止 TFS Build 两次构建所有内容:

  1. 打开配置管理器(打开您的解决方案并从顶级构建菜单中选择配置管理器)。
  2. 展开活动解决方案配置的下拉列表,然后选择新建
  3. 输入新解决方案配置的名称,然后选择要从中复制设置的现有配置,然后单击确定
  4. 在配置管理器中,取消选中除部署项目之外的所有项目的构建列中的复选框,然后单击关闭
  5. 通过添加新配置来编辑 TFSBuild.proj 文件的 ConfigurationToBuild ItemGroup:


    任何CPU

  6. 其中 Foo 是您刚刚定义的新配置的名称。

对于 Visual Studio 2010,ASP.NET 团队与 IIS 团队合作,提供基于 [Web 部署工具][1] 构建的集成 Web 应用程序打包和部署解决方案。它或多或少取代了 Web 部署项目,您可以通过其[命令行界面][2]将其与 VS/TFS 2008 一起使用。我有一篇博客文章介绍了这里的基本场景:

使用 VSTS/TFS 2008 构建简单的网站

Yes and yes.

You can stop TFS Build from building everything twice by following these steps:

  1. Open the configuration manager (open your solution and select Configuration Manager from the top-level Build menu).
  2. Expand the drop down list for Active solution configuration and select New.
  3. Enter a name for your new solution configuration and select an existing configuration to copy settings from and click OK.
  4. In the Configuration Manager, uncheck the checkboxes in the Build column for all of the projects except the deployment project and click Close.
  5. Edit your TFSBuild.proj file's ConfigurationToBuild ItemGroup by adding your new configuration:

    Foo
    Any CPU

  6. Where Foo is the name of the new configuration you just defined.

For Visual Studio 2010, the ASP.NET team has partnered with the IIS team to deliver an integrated web application packaging and deployment solution built on the [Web Deployment Tool][1]. It more or less replaces web deployment projects and you can use it with VS/TFS 2008 via its [command line interface][2]. I have a blog post covering the basic scenario here:

Building a Simple Web Site with VSTS/TFS 2008.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文