【发布时间】:2017-09-12 14:57:00
【问题描述】:
我有两个项目:NET Standard 类库和常规 NET Framework Web 应用程序。 Web 应用程序引用类库。
我使用Visual Studio 2017 Preview。
当我尝试使用 MSBuild 命令使用 Cake 构建解决方案时,我收到不受支持的项目消息:
error MSB4041: 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 MS
Build 2003 format.
如果我尝试使用DotNetCoreBuild,我会得到:
error MSB4019: The imported project "C:\Program Files\dotnet\sdk\2.0.2-vspre-006949\Microsoft\VisualStu
dio\v10.0\WebApplications\Microsoft.WebApplication.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.
但解决方案是由 Visual Studio 成功构建的。
【问题讨论】:
标签: c# visual-studio msbuild .net-standard cakebuild