Working with .NET Core CLI tasks
For .NET applications, you must use .NET Core CLI commands to build and deploy .NET applications. There are many predefined tasks to build .NET applications in an Azure pipeline. Follow these steps to create a pipeline using .NET Core CLI tasks:
- Follow steps 1 to 3 from the previous section for Node.js and NPM tasks.
- Select Starter pipeline:
Figure 5.8 – Selecting the Starter pipeline option
- Rename the file from the default name to make it easier to understand what the YAML file is for:
Figure 5.9 – Renaming a pipeline file
- Select the Use .NET Core task and click Add:
Figure 5.10 – Selecting the Use .NET Core task
- Update the
version
property to use .NET 6:
Figure 5.11 – Updating the .NET version
- Select the .NET Core task and click on Add:
...