Before starting, you need your git client configured. var credentials = new VssBasicCredential(userName: string.Empty, password: this.config.Key); this.vssConnection = new VssConnection(new Uri(this.config.BaseUrl), credentials); if (!string.IsNullOrWhiteSpace(this.config.Key)) {...
When we are using Azure DevOps to review PR, it's simple and easy to use. Usually, we only run tests and build tasks, like this: In my previous blog, I mentioned how to run test and generate code coverage for CI pipelines: Display code coverage information for .NET Core project u...
Target. Display code coverage information on your own .NET Core project. First, create a build pipeline in your Azure DevOps. If you are using the classic designer, you need to add new .NET Core command line step. Make sure you publish the test result. As for the Arguments input,...
This article describes how to publish an application to a non-global Azure environment, such as Azure CN, using Azure DevOps. Because the global configuration cannot directly recognize subscriptions in these environments, you must manually create a service connection. First, register a new application in Azure Active Directory to obtain the application ID and client secret, and then assign the Contributor role to this application in the target subscription to grant resource management permissions. Next, in the Azure DevOps project settings, add a new Azure Resource Manager service connection, select the manual configuration mode, and specify the custom environment (such as Azure China Cloud). Then, fill in the subscription ID, name, application ID, secret, and tenant ID, verify, and save the connection. After completing these steps, you can reference this service connection in your pipeline to achieve successful deployment to non-global Azure environments.