azure-pipelines-build-task

MSB4044: The “KillProcess” task was not given a value for the required parameter “ImagePath”

最后都变了- 提交于 2021-02-11 14:18:40
问题 Long story short, I was able to build a bitbucket .NET/MVC/Angular project successfully on windows 2019 azure hosted agent, but I am unable to make it build successfully on ubuntu agent. The reason I want to build it on ubuntu is because I noticed the build time is way faster than that of the windows agent, which makes sense considering the platforms. I am facing this error: Copying file from "/home/vsts/work/1/s/Bobby.ProjectA/obj/Debug/Bobby.ProjectA.pdb" to "/home/vsts/work/1/s/Bobby

Excluding projects from dotnet pack task in Azure DevOps

℡╲_俬逩灬. 提交于 2021-02-08 11:02:17
问题 I have an VS solution file (.sln) which consists .net standard libraries and test projects. Now the project has an Integration test project that is targeted against .net Framework 4.7.2. My current build pipeline does the following dotnet build dotnet pack dotnet push With the dotnet pack, I am trying to excldude the project Integration.Tests.csproj. My current folder structure looks like the following CompanyName.Service\CompanyName.Service.csproj CompanyName.Data\CompanyName.Data.csproj

Excluding projects from dotnet pack task in Azure DevOps

冷暖自知 提交于 2021-02-08 10:59:26
问题 I have an VS solution file (.sln) which consists .net standard libraries and test projects. Now the project has an Integration test project that is targeted against .net Framework 4.7.2. My current build pipeline does the following dotnet build dotnet pack dotnet push With the dotnet pack, I am trying to excldude the project Integration.Tests.csproj. My current folder structure looks like the following CompanyName.Service\CompanyName.Service.csproj CompanyName.Data\CompanyName.Data.csproj

Excluding projects from dotnet pack task in Azure DevOps

随声附和 提交于 2021-02-08 10:59:22
问题 I have an VS solution file (.sln) which consists .net standard libraries and test projects. Now the project has an Integration test project that is targeted against .net Framework 4.7.2. My current build pipeline does the following dotnet build dotnet pack dotnet push With the dotnet pack, I am trying to excldude the project Integration.Tests.csproj. My current folder structure looks like the following CompanyName.Service\CompanyName.Service.csproj CompanyName.Data\CompanyName.Data.csproj

Azure Pipeline - Use variable set in template task as a parameter in another template task

…衆ロ難τιáo~ 提交于 2021-02-04 21:46:20
问题 I have two templates created -- one for getting and setting some configurations such as region names and one for deploying. I'm trying to use the variables set in the configuration template task as parameter inputs to the deploy template. Is there an actual way of doing this? My config template: steps: - task: AzureCLI@2 name: Config displayName: Get Config and Generate Variables inputs: azureSubscription: '$(Subscription)' scriptType: bash scriptLocation: inlineScript inlineScript: |

Azure pipeline build Stage verification

|▌冷眼眸甩不掉的悲伤 提交于 2021-01-29 14:52:59
问题 As a centralized azure devops team in my org , we want to ensure that code of certain technology type built using standard extended yaml template. Thanks to the "Extend" feature and recently introduced template check at environment level , we are now able to verify developers yamls if they are extending our standard yamls or not. But this check only runs after build stage. Can we somehow evaluate this before build stage? 回答1: Can we somehow evaluate this before build stage? I'm afraid, no, it

How to publish specific files using Publish Build Artifact Task

ぃ、小莉子 提交于 2021-01-29 07:23:36
问题 I am Building C# Application using Visual Studio Build In Azure Pipeline. My solution Contains multiple project (ManagerWeb & WebAPI). I want to Publish Two Separate Artifact ManagerWeb & WebAPI respectively. All the required File's are present in Build.ArtifactStagingDirectory . How I can specify a pattern using which I can get Two Separate Artifact ? Example All the File name with WebAPI in 1st Artifact & ManagerWeb in another. The File name from ArtifactStaging Directory are as Below

Azure DevOps - Handling single release for separate code repositories for UI and Dotnet API layer

筅森魡賤 提交于 2021-01-29 06:38:40
问题 I have separate existing code repositories- One for Angular UI and one for .NET 4.7 API layer. In the manual process, The compiled UI code is placed in wwwroot folder after dotnet publish is executed, and the artifacts are deployed to an Azure App service. While trying to implement CI using Azure DevOps, I had to create two build pipelines for UI and BackEnd. In the release pipeline, it looks like I have to unzip the artifacts, write a copy step to UI artifacts into wwwroot and then again zip

VSTS Nested Variables

帅比萌擦擦* 提交于 2021-01-27 20:04:01
问题 I'm trying to accomplish a cascading variable, where when one design time variable is set, it cascades to other variables. Is this possible? I've tried with dot notation, I've tried without dot notation, and I've tried to do it in the task: I also tried this task plugin, but my agents are on 2.0 and the task doesn't run. Variable Toolbox Task Any ideas? Answer: You can override these variables at the environment level. I will have to expand these variables in my script manually and then set

VSTS Azure DevOps : Trying to Build and save only certain folders but everything from Project TFS Folder is getting built and deployed

最后都变了- 提交于 2020-12-15 04:18:00
问题 I'm trying to build and publish certain folders of a project and deploy them to remote server using Azure DevOps. My Copy files task and Archive copies everything from TFS instead of the content I want to build and deploy. The last two screenshots display the Build folder getting published and the last one is the folder which is supposed to be Published. 来源: https://stackoverflow.com/questions/64173144/vsts-azure-devops-trying-to-build-and-save-only-certain-folders-but-everything