Visual Studio团队服务构建.net Core 1.1 [英] Visual studio team services build .net core 1.1

查看:79
本文介绍了Visual Studio团队服务构建.net Core 1.1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在vsts上构建.net core 1.1项目。该项目是在vs2017中开发的,它使用csproj而不是project.json。我尝试了多种选择来使用托管代理(Windows和Linux)在vsts上构建id。

I'm trying to build a .net core 1.1 project on vsts. The project is developed in vs2017 and it uses the csproj instead of project.json. I have tried multiple options to build id on vsts with the hosted agents (windows and linux).

我尝试了以下构建步骤

Visual Studio构建

设置为使用vs 2017,但我收到警告, Visual Studio版本 15.0不可用找到。正在寻找最新版本。然后我收到了错误消息,因为它不能包含.net核心软件包。

Set to use vs 2017 but i get a warning "Visual Studio version '15.0' not found. Looking for the latest version." And then i get errors because it cant include .net core packages.

.NET Core(PREVIEW)

无法找到project.json。当我将其设置为使用csproj文件时,出现错误无法识别文件类型

Cant find project.json. When i set it to use csproj file it gives an error "The file type was not recognized"

命令构建步骤

我尝试使用命令构建步骤来运行命令。 dotnet build给出了无法找到project.json文件的错误。

I tried to run the commands with command build steps. "dotnet build" gives the error that it cant find the project.json file.

有人在vsts上使用csproj构建dotnet 1.1可以帮助我做到这一点吗?

Anyone building dotnet 1.1 with csproj on vsts that can help me how to do it?

推荐答案

在Visual Studio Team Services中,转到 Build&释放> 构建,然后单击编辑以获取要更新的构建定义

In Visual Studio Team Services, go to Build & Release > Builds and click Edit for the build definition you want to update

导航至选项标签,将默认代理队列更改为托管VS2017 ,然后保存。

Navigate to the Options tab, change Default agent queue to Hosted VS2017, and save.

这篇关于Visual Studio团队服务构建.net Core 1.1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆