更新时间:2022-03-24 08:52:47
使用最新的 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