gpt4 book ai didi

从 VSTS build 构建解决方案时出现 MSBuild 错误

转载 作者:行者123 更新时间:2023-12-05 05:20:30 24 4
gpt4 key购买 nike

当我使用持续集成构建解决方案时出现以下错误

[error]Apps\App.Service\App.Service.csproj(203,11):

Error MSB4226: The imported project"$(VSToolsPath)\Web\Microsoft.Web.Publishing.targets" was not found.Also, tried to find"$(VSToolsPath)\Web\Microsoft.Web.Publishing.targets" in the fallbacksearch path(s) for $(VSToolsPath) - "C:\Program Files(x86)\MSBuild\Microsoft\VisualStudio\v15.0" . These search paths aredefined in "C:\Program Files (x86)\Microsoft VisualStudio\2017\Community\MSBuild\15.0\Bin\MSBuild.exe.Config". Confirmthat the path in the declaration is correct, and that thefile exists on disk in one of the search paths.

当我检查我的 .csproj我在顶部有以下内容 <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />有人可以告诉我问题出在哪里吗

最佳答案

我在尝试为我的项目设置 gitlab CI 时遇到了同样的问题。本回答https://stackoverflow.com/a/20095260/5873231解决了我的问题。我把它留在这里,也许它对某人有用。

关于从 VSTS build 构建解决方案时出现 MSBuild 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44569064/

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