gpt4 book ai didi

msbuild - 在生成服务器上找不到 Microsoft.WebApplication.targets。你的解决方案是什么?

转载 作者:行者123 更新时间:2023-12-02 06:50:39 25 4
gpt4 key购买 nike

尝试在构建服务器上构建我的项目时出现以下错误:

Microsoft (R) Build Engine Version 4.0.30319.1
error MSB4019: The imported project "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\TeamData\Microsoft.Data.Schema.SqlTasks.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.
error MSB4019: The imported project "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.
error MSB4019: The imported project "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.

几个月前,我通过在构建服务器上安装 Visual Studio 2010 解决了这个问题。但现在我正在从头开始设置一个新服务器,我想知道是否有更好的解决方案来解决这个问题。

最佳答案

回答问题的标题(但不是有关您获得的输出的问题):

如果只是 Web 应用程序,请将以下文件夹从您的开发计算机复制到构建服务器可以修复此问题

C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\WebApplications

根据您的构建中断方式删除 x86。如果您有其他项目类型,您可能需要复制整个 msbuild 文件夹。

关于msbuild - 在生成服务器上找不到 Microsoft.WebApplication.targets。你的解决方案是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3980909/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com