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

查看:36
本文介绍了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).

我已经尝试了以下构建步骤

i have tried the following build steps

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(预览版)

找不到 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天全站免登陆