gpt4 book ai didi

visual-studio - ##[警告]未找到 Visual Studio 版本 '14.0'。回退到版本 '15.0'

转载 作者:行者123 更新时间:2023-12-05 07:29:06 25 4
gpt4 key购买 nike

我的项目需要使用 MSbuild 14.0(visual studio 2015) 运行,但这只需要 Visual Studio\2017\Community\MSBuild\15.0\Bin\msbuild.exe 。

我已经在我的 Build Agent 上安装了 visual studio community 2017、VS 2015 web 和 Desktop express。构建代理的能力- enter image description here

任务配置 - enter image description here

此配置给我警告 -

[警告]未找到 Visual Studio 版本“14.0”。回退到“15.0”版本。

如何将 MSBuild 14.0 与 Visual Studio 构建任务结合使用??这是与 MSbuild 任务一起运行..

提前致谢..!!

最佳答案

[warning]Visual Studio version '14.0' not found. Falling back to version '15.0'

由于我没有在我的构建代理上安装 Visual Studio 2015 Express for Desktop and Web,我不确定 Visual Studio 2015 Express for Desktop and Web 是否与构建代理兼容。

但我发现a thread关于它,您可以查看对已接受答案的评论:

That's it! For some reason VS2015 Express does not install the ShellFolder or InstallDir keys! I was worried that the agent script recognised it but refused to register it because we are not allowed to use it for automated builds. I feel more comfortable with it now.

It turns out that is not the full story. When I add the "Visual StudioBuild" task to the process, it now executes, but if I look moreclosely at the log, I can see the following message:"##[warning]Visual Studio was not found. Try installing a supportedversion of Visual Studio. See the task definition for a list ofsupported versions." And then it falls back to building with MSBuild.It works because I am building a .sln; let's just hope I don't have tobuild a .proj.

因此,Visual Studio 2015 Express 似乎与构建代理不兼容。您可以尝试安装 Visual Studio community 2015 而不是它,我可以毫无问题地构建它。

同样,您可以在使用 Visual Studio 2015 Express 时检查您的 Capabilities of build agent 中是否有关于 Visual Studio 的参数:

enter image description here

如果没有,构建代理将抛出该错误。

希望这对您有所帮助。

关于visual-studio - ##[警告]未找到 Visual Studio 版本 '14.0'。回退到版本 '15.0',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52926649/

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