How to test new Azure DevOps extension version before publishing it for everyone

When testing a new version of your extension, you need to use either use a different ExtensionID or a different PublisherID. And the test extension must be marked public: false. There are multiple ways to make this process easy. I personally use the Azure DevOps Extension Tasks in different ways. For my own private extension … Read more

Updating variables in web.config outside appSettings

Add a parameters.xml to your project, as described here: https://learn.microsoft.com/en-us/aspnet/web-forms/overview/deployment/web-deployment-in-the-enterprise/configuring-parameters-for-web-package-deployment specify parameter there, for example, “myEndpointAddress”. Then in IIS Web Deploy Task use additional arguments to pass the value -setParam:name=”myEndPointAddress”,value=”new_value”

Is it possible to conditionally set the artifact name in my Azure DevOps build pipeline “publish artifact” task?

Is it possible to conditionally set the artifact name in my Azure DevOps build pipeline “publish artifact” task? I am afraid there is no such out of box way to do that. If you want to conditionally set the artifact name, we have to use the nested variables in the pipeline. However, At this moment, … Read more

Copy one file in target directory on deploy from visual studio team services

You need to specify the copy root if you want to copy files only without folder structure. Since the project.exe is in a different path with script.ps1 file, you need to copy them in different copy task. Following the steps below: Add a “Copy Files” step to copy “project.exe”. Settings like following: Add a “Copy … Read more