gpt4 book ai didi

tfs - Microsoft.WebApplication.targets

转载 作者:行者123 更新时间:2023-12-04 13:13:31 26 4
gpt4 key购买 nike

当我将服务器 checkin 构建服务器(使用 TFS)时遇到问题,但由于某种原因,返回下一个错误:

Exception Message: MSBuild error 1 has ended this build. You can find more specific information about the cause of this error in above messages. (type BuildProcessTerminateException)
Exception Stack Trace: at System.Activities.Statements.Throw.Execute(CodeActivityContext context)
at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)
at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)

广告详情:
\WcfService4.csproj (92): The imported project "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.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.

我不确定是什么问题或我能解决什么问题。有人可以帮助我吗?

最佳答案

你的引用

C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\WebApplications\Microsoft.WebApplication.targets"



如果构建是在安装了 Visual Studio 的机器上完成的,则此方法有效。
如果您更改引用以使用 nuget 代替 -
https://www.nuget.org/packages/MSBuild.Microsoft.VisualStudio.Web.targets/
这个包相当于你的本地文件。在你的 csproj.
 <Import Project="$(MSBuildBinPath)\Microsoft.WebApplication.targets" />

到(例如)
<Import Project="$(Yourpackageslocation)\MSBuild.Microsoft.VisualStudio.Web.targets\Microsoft.WebApplication.targets" />

您需要编辑 csproj 以指向 Nuget 包文件。

关于tfs - Microsoft.WebApplication.targets,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25047714/

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