【问题标题】:How to update msbuild on Azure?如何在 Azure 上更新 msbuild?
【发布时间】:2017-02-25 16:28:12
【问题描述】:

在 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

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

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

【问题讨论】:

标签: azure msbuild


【解决方案1】:

在 Web 应用以及类库和控制台应用上使用最新的 Microsoft.CodeDom.Providers.DotNetCompilerPlatform 和 Microsoft.Net.Compilers NuGet 包将使用最新的构建任务和道具\目标,这解决了我看到的问题并避免了在 Azure 应用服务环境中更新 MSBuild 的需要。

更多详情请见https://github.com/projectkudu/kudu/issues/2336

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2023-03-20
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-03-15
    • 1970-01-01
    相关资源
    最近更新 更多