azure-pipelines

What .Net Core version to use on agent

岁酱吖の 提交于 2021-01-07 06:59:25
问题 Working on a dotnet core test pipeline, running on a Windows Self hosted agent, I have errors. As my project uses DotNet Core 3.1 and when I run "dotnet --version" on the agent it gives 5.0.100, I thought I had to install DotNet Core 3.1 but looking at Add/Remove Programs, I see versions 3.1.301 and 5.0.100 My pipeline contains: job: Test displayName: 'Test' steps: task: UseDotNet@2 inputs: packageType: 'sdk' version: '3.1.x' task: NuGetAuthenticate@0 displayName: 'Authenticate with NuGet'

Why is the project file not found even though i am using an MSBuild task?

只愿长相守 提交于 2021-01-07 06:31:55
问题 I created an Azure Devops Build pipeline and i am trying to build my ASP.NET MVC and Angular hybrid site project on bitbucket (git). The project first gets checked out, and nuget restores the necessary packages, however, i cannot get the .NET to build! Ive stumbled on this post here that basically advises against using the dotnet build task and recommended just using Visual Studio Build or MSBuild tasks instead. Nether are working for me though! I tried VS2017-win2016 hosted agent, didnt work

Azure pipelines: error MSB4019 WebApplication.targets was not found

六眼飞鱼酱① 提交于 2021-01-07 03:08:26
问题 I created an episerver alloy project, which builds and runs fine in visual studio after setting up some nuget packages, and I can deploy to azure and run in azure from VS without issue. I am now trying to get the build to work in pipelines. Following the instructions, I added a "nuget restore" task, and pointed it at a NuGet.config. This works. Then it gets to the build stage, and gives: D:\a\1\s\DxcAlloy.csproj(335,3): error MSB4019: The imported project "C:\Program Files\dotnet\sdk\3.1.202

Azure pipelines: error MSB4019 WebApplication.targets was not found

六月ゝ 毕业季﹏ 提交于 2021-01-07 03:07:18
问题 I created an episerver alloy project, which builds and runs fine in visual studio after setting up some nuget packages, and I can deploy to azure and run in azure from VS without issue. I am now trying to get the build to work in pipelines. Following the instructions, I added a "nuget restore" task, and pointed it at a NuGet.config. This works. Then it gets to the build stage, and gives: D:\a\1\s\DxcAlloy.csproj(335,3): error MSB4019: The imported project "C:\Program Files\dotnet\sdk\3.1.202

Is there any way to show Cypress Test Results in Azure DevOps Test Results Tab?

一曲冷凌霜 提交于 2021-01-04 09:24:28
问题 I'm seeking a solution to display Cypress test results, in Azure DevOps results tab in the release pipeline. Right now, Mocha Awesome test results HTML report is created. But need a solution to integrate and show results in the Azure. Could someone please advise on how can we resolve a similar problem? 回答1: Currently azure devops results tab donot support html test results. You need to generate xml test result with junit reporter. And then to publish the test results with task Publish Test

Skip stage with manual approval in Azure DevOps Pipelines (YAML)

邮差的信 提交于 2021-01-04 06:42:07
问题 For our Terraform Deployment, we use an Azure DevOps pipeline that has 3 stages: plan apply (manual approval) test For the apply stage we use a deployment job with an environment that has a manual approval (check). What we would like to have is "skipping" the apply and test stage, if the plan stage has shows no changes. Therefore we try to use the following yaml configuration for the apply stage: - stage: ApplyShared dependsOn: PlanShared jobs: - job: CheckSharedChanges steps: - task:

How to make the Gitversion VSTS increment release number on master?

元气小坏坏 提交于 2021-01-03 05:34:27
问题 I have configured my git repository in VSTS with the GitFlow repository. I have a master branch with a dotnet core project, and a release branch called 'Release/1.0.0'. When I create a pull-request and merge the release/1.0.0 branch back to master, it does not increment it's version number to 1.0.0. Instead, it's increasing the version number from 0.1.0 (the base fallback) to 0.1.1. Build log: Calculating base versions Fallback base version: 0.1.0 with commit count source xx Git tag '0.1.0':

How to make the Gitversion VSTS increment release number on master?

你说的曾经没有我的故事 提交于 2021-01-03 05:34:16
问题 I have configured my git repository in VSTS with the GitFlow repository. I have a master branch with a dotnet core project, and a release branch called 'Release/1.0.0'. When I create a pull-request and merge the release/1.0.0 branch back to master, it does not increment it's version number to 1.0.0. Instead, it's increasing the version number from 0.1.0 (the base fallback) to 0.1.1. Build log: Calculating base versions Fallback base version: 0.1.0 with commit count source xx Git tag '0.1.0':

Building .NET 5.0 project Azure DevOps pipeline

怎甘沉沦 提交于 2021-01-02 05:41:14
问题 I'm trying to build a project in .NET 5.0 using Azure DevOps pipeline Build and I'm received this error 2020-11-14T01:59:45.8238544Z [command]"C:\Program Files\dotnet\dotnet.exe" build D:\a\1\s\XXX.csproj "-dl:CentralLogger,\"D:\a\_tasks\DotNetCoreCLI_5541a522-603c-47ad-91fc-a4b1d163081b\2.178.0\dotnet-build-helpers\Microsoft.TeamFoundation.DistributedTask.MSBuild.Logger.dll\"*ForwardingLogger,\"D:\a\_tasks\DotNetCoreCLI_5541a522-603c-47ad-91fc-a4b1d163081b\2.178.0\dotnet-build-helpers

Are the Azure DevOps extensions for Slack affected by changing the Azure DevOps url?

萝らか妹 提交于 2021-01-01 06:38:20
问题 At the company, we will change the URL for the Azure Devops workspace from https://oldname.visualstudio.com to https://dev.azure.com/newname . We have a lot of connections to Slack in Azure DevOps using two approaches. Older links via service hooks in Azure Devops, new links are via slack applications Azure Repos and Azure Pipelines. Service hooks in Azure DevOps use Slack's Incoming webhooks, so they will not be affected. However, Microsoft prefers to use its Slack Azure Repos and Azure