在构建服务器上构建.NET Core 1.0 RC2应用

编程入门 行业动态 更新时间:2024-10-24 06:30:58
本文介绍了在构建服务器上构建.NET Core 1.0 RC2应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我已将我的应用程序从DNX,ASP.NET 5 RC1更新到ASP.NET Core 1.0 RC2. 它可以在本地构建并正常运行.

I've updated my app from DNX, ASP.NET 5 RC1 to ASP.NET Core 1.0 RC2. Locally it builds and runs fine.

在构建服务器上,我没有安装Visual Studio,并且构建失败并显示:

On the build server, I don't have Visual Studio installed, and the build fails with:

错误MSB4019:找不到导入的项目"C:\ Program Files(x86)\ MSBuild \ Microsoft \ VisualStudio \ v14.0 \ DotNet \ Microsoft.DotNet.Props".确认声明中的路径正确,并且文件在磁盘上.

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.

我确实安装了:适用于Windows的.NET Core SDK . 尝试安装VS 2015工具预览失败,并显示以下信息:

I did install the: .NET Core SDK for Windows. Trying to install the VS 2015 tooling preview fails with:

在无需安装Visual Studio 2015的情况下在生成服务器上生成.NET Core 1.0 RC2应用程序的正确设置是什么?

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?

注意:构建框(TeamCity 9)可以对.NET 4.5和DNX进行良好的构建/运行测试.

Note: The build box (TeamCity 9) builds/runs tests fine for .NET 4.5 and DNX.

推荐答案

因此,在没有Visual Studio或Web Deploy的情况下,我的TeamCity构建由4个构建步骤组成:

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

我运行对所有项目进行点网测试,并使用基本的for循环.

I run dotnet test on all projects with a basic for loop.

更多推荐

在构建服务器上构建.NET Core 1.0 RC2应用

本文发布于:2023-11-15 22:42:51,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1598608.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:器上   NET   Core

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!