msbuild - 在构建服务器上构建 .NET Core 1.0 RC2 应用程序

标签 msbuild teamcity asp.net-core .net-core

我已将我的应用程序从 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 工具预览失败:

enter image description here

在构建服务器上构建 .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/

相关文章:

bash - 从 Visual Studio 2015 开始基于 WSL bash 的构建

msbuild - TeamCity:无法检测 MSBuild 项目中的目标

nunit - TeamCity NUnit 运行程序因 x86 - x64 - MSIL 差异而失败

asp.net - 部署在 Visual Studio 中工作正常,但使用 MSDeploy 失败

asp.net-mvc - 404.20异常未被ASP.net Core捕获

msbuild - TFS 2012 构建未部署

c# - 无法解析引用 Microsoft.Azure.WebJobs.Extensions - 元数据生成失败

azure - 我是否需要在构建服务器上安装 AzureSdk 才能创建 azure 包?

c# - 在 asp.net core 中为开发和发布环境自动设置 appsettings.json?

asp.net-core - Blazor oauth2 被 CORS 阻止