错误 MSB4019:MSBuild 自动检测:使用来自 <位置> 的 msbuild 版本 ‘17.5.0.60103’

huangapple go评论71阅读模式
英文:

error MSB4019 : MSBuild auto-detection: using msbuild version '17.5.0.60103' from <location>

问题

MSBuild 自动检测: 使用位于 'C:\Program Files\Microsoft Visual Studio\2022\Preview\MSBuild\Current\bin' 的 msbuild 版本 '17.5.0.60103'。

尝试获取 MsBuild 可执行文件。我已检查路径,msbuild 文件位于那里。

英文:

MSBuild auto-detection: using msbuild version '17.5.0.60103' from 'C:\Program Files\Microsoft Visual Studio\2022\Preview\MSBuild\Current\bin'.

Trying to get the MsBuild Executable file.I have checked the path and the msbuild file is available there.

答案1

得分: 1

已修复。我只是将路径添加到环境变量中,然后它就能正常工作了!

英文:

It's fixed for me. I just added the path in the environment variable and it worked!!

答案2

得分: 0

I think this issue may come from the msbuild version and vs version doesn't match.

From the lifecycle of the VS:

https://learn.microsoft.com/en-us/dotnet/core/porting/versioning-sdk-msbuild-vs#lifecycle

and the release of VS2019 and VS2022:

https://learn.microsoft.com/en-us/lifecycle/products/visual-studio-2019

https://learn.microsoft.com/en-us/lifecycle/products/visual-studio-2022

MSBuild version 17.5.0.60103 should be contained in VS2022, but from the tag, it looks like you were using VS2019.

If possible, please clarify what you were doing and share your detailed solution if possible. 错误 MSB4019:MSBuild 自动检测:使用来自 <位置> 的 msbuild 版本 ‘17.5.0.60103’

英文:

I think this issue may come from the msbuild version and vs version doesn't match.

From the lifecycle of the VS:

https://learn.microsoft.com/en-us/dotnet/core/porting/versioning-sdk-msbuild-vs#lifecycle

and the release of VS2019 and VS2022:

https://learn.microsoft.com/en-us/lifecycle/products/visual-studio-2019

https://learn.microsoft.com/en-us/lifecycle/products/visual-studio-2022

MSBuild version 17.5.0.60103 should be contained in VS2022, but from the tag it looks like you were using VS2019.

If possible, please clarify what you were doing and share your detailed solution if possible. 错误 MSB4019:MSBuild 自动检测:使用来自 <位置> 的 msbuild 版本 ‘17.5.0.60103’

huangapple
  • 本文由 发表于 2023年6月13日 15:53:51
  • 转载请务必保留本文链接:https://go.coder-hub.com/76462761.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定