Warm tip: This article is reproduced from serverfault.com, please click

tfs-如何解决以下xmlns MSBuild错误?

(tfs - How can I resolve the following xmlns MSBuild error?)

发布于 2020-12-02 17:52:19

我有一个.NET Standard 4.7.2解决方案,它可以在本地构建。在尝试在TFS 2015 sp3中运行CI构建时,我看到以下错误。我尝试了规定的更改,将xmlns值添加到解决方案中的每个项目,但是仍然发生错误。请问该如何解决?

The default XML namespace of the project must be the MSBuild XML namespace. If the project is authored in the MSBuild 2003 format, please add xmlns="http://schemas.microsoft.com/developer/msbuild/2003" to the <Project> element. If the project has been authored in the old 1.0 or 1.2 format, please convert it to MSBuild 2003 format.

非常感谢。

Questioner
Alex A
Viewed
0
Alex A 2020-12-07 23:49:58

显然,Microsoft.Net.Compilers v3.8.0 nuget程序包已添加到解决方案中(不确定如何...),并且它覆盖了TFS MSBuild代理。我删除了包装,事情又重新开始了