Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.2k views
in Technique[技术] by (71.8m points)

azure devops - Visual studio team services build .net core 1.1

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 build

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)

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

Command build step

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

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

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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

enter image description here

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

Hosted VS2017


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...