我已将我的应用程序从 DNX、ASP.NET 5 RC1 更新到 ASP.NET Core 1.0 RC2。
它在本地构建并运行良好。
在构建服务器上,我没有安装 Visual Studio,并且构建失败:
error MSB4019: The imported project "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\DotNet\Microsoft.DotNet.Props" was not found. Confirm that the path in the declaration is correct, and that the file exists on disk.
我确实安装了:.NET Core SDK for Windows .
尝试安装 VS 2015 工具预览失败:
在构建服务器上构建 .NET Core 1.0 RC2 应用程序而无需安装 Visual Studio 2015 的正确设置是什么?
注意:构建框 (TeamCity 9) 为 .NET 4.5 和 DNX 构建/运行测试良好。
最佳答案
https://docs.microsoft.com/en-us/dotnet/articles/core/windows-prerequisites#issues
问题
由于临时错误,您可能无法安装 .NET Core Tooling Preview 2 for Visual Studio 2015 安装程序。要解决此问题,请使用 SKIP_VSU_CHECK=1
从命令行运行安装程序。参数,正如您在下面的示例中看到的那样。DotNetCore.1.0.0-VS2015Tools.Preview2.exe SKIP_VSU_CHECK=1
关于msbuild - 在构建服务器上构建 .NET Core 1.0 RC2 应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37326569/