gpt4 book ai didi

azure - 如何更新 Azure 上的 msbuild?

转载 作者:行者123 更新时间:2023-12-03 01:48:41 25 4
gpt4 key购买 nike

在 Azure SCM 调试控制台中,当我运行 msbuild/version 时,我得到:

msbuild /version
D:\home\site\wwwroot
Microsoft (R) Build Engine version 14.0.23107.0
Copyright (C) Microsoft Corporation. All rights reserved.

14.0.23107.0

当我在工作机器上运行它时,我得到:

Microsoft (R) Build Engine version 14.0.25420.1
Copyright (C) Microsoft Corporation. All rights reserved.

14.0.25420.1

msbuild 版本 14.0.25420.1 安装在“Microsoft Build Tools 2015 Update 3”中。有没有办法更新我的 azure 实例上的 msbuild 版本?

注意:这与 https://github.com/dotnet/corefx/issues/14050 相关

最佳答案

在您的 Web 应用程序以及您的类库和控制台应用程序上使用最新的 Microsoft.CodeDom.Providers.DotNetCompilerPlatformMicrosoft.Net.Compilers NuGet 包将使用最新的构建任务和 props\targets,它解决了我遇到的问题,并避免了在 Azure 应用服务环境中更新 MSBuild 的需要。

更多详情,请参阅 https://github.com/projectkudu/kudu/issues/2336

关于azure - 如何更新 Azure 上的 msbuild?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42458570/

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