在构建服务器上构建 .NET Core 1.0 RC2 应用程序 [英] Building .NET Core 1.0 RC2 app on the build server
问题描述
我已将我的应用程序从 DNX、ASP.NET 5 RC1 更新到 ASP.NET Core 1.0 RC2.它在本地构建和运行良好.
在构建服务器上,我没有安装 Visual Studio,构建失败:
<块引用>错误 MSB4019:未找到导入的项目C:Program Files (x86)MSBuildMicrosoftVisualStudiov14.0DotNetMicrosoft.DotNet.Props".确认声明中的路径正确,并且该文件存在于磁盘上.
我确实安装了:
在构建服务器上构建 .NET Core 1.0 RC2 应用程序而无需安装 Visual Studio 2015 的正确设置是什么?
注意:构建框 (TeamCity 9) 为 .NET 4.5 和 DNX 构建/运行测试良好.
因此,如果没有 Visual Studio 或 Web Deploy,我的 TeamCity 构建包含 4 个构建步骤:
dotnet 还原网络构建网络测试dotnet 发布 -c 发布
我运行 使用基本的 for 循环对所有项目进行 dotnet 测试.
I've updated my app from DNX, ASP.NET 5 RC1 to ASP.NET Core 1.0 RC2. Locally it builds and runs fine.
On the build server, I don't have Visual Studio installed, and the build fails with:
error MSB4019: The imported project "C:Program Files (x86)MSBuildMicrosoftVisualStudiov14.0DotNetMicrosoft.DotNet.Props" was not found. Confirm that the path in the declaration is correct, and that the file exists on disk.
I did install the: .NET Core SDK for Windows. Trying to install the VS 2015 tooling preview fails with:
What would be the correct setup to build .NET Core 1.0 RC2 app on the build server without having to install Visual Studio 2015?
Note: The build box (TeamCity 9) builds/runs tests fine for .NET 4.5 and DNX.
So without Visual Studio or Web Deploy, my TeamCity build is comprised of 4 builds steps:
dotnet restore
dotnet build
dotnet test
dotnet publish -c Release
I run dotnet test on all projects with a basic for loop.
这篇关于在构建服务器上构建 .NET Core 1.0 RC2 应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!