如何在Azure上更新msbuild? [英] How to update msbuild on Azure?

查看:48
本文介绍了如何在Azure上更新msbuild?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

In Azure SCM Debug Console, when I run msbuild /version I get:

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

在工作计算机上运行它时,我得到:

When I run it on my work machine I get:

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版本?

Version 14.0.25420.1 of msbuild is installed in "Microsoft Build Tools 2015 Update 3". Is there a way to update the msbuild version on my azure instance?

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

Note: This is related to https://github.com/dotnet/corefx/issues/14050

推荐答案

使用最新的 Microsoft.CodeDom.Providers.DotNetCompilerPlatform Microsoft.Net.Compilers NuGet程序包您的WebApp以及班级库和控制台应用程序将使用最新的构建任务&props \ targets,可以解决我所遇到的问题,并避免在Azure App Services环境中更新MSBuild的需要.

Using the latest Microsoft.CodeDom.Providers.DotNetCompilerPlatform and Microsoft.Net.Compilers NuGet packages on your WebApp as well as your Class Libraries and Console Apps will use the latest build tasks & props\targets, which resolves the issue I was seeing and avoids the need to update MSBuild in the Azure App Services environment.

有关更多详细信息,请参见 https://github.com/projectkudu/kudu/issues/2336

For more details, see https://github.com/projectkudu/kudu/issues/2336

这篇关于如何在Azure上更新msbuild?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆