What tasks are commonly used in .NET build pipelines? Answer: Common tasks: ● UseDotNet@2 → Installs .NET SDK. ● NuGetCommand@2 → Restores NuGet packages. ● DotNetCoreCLI@2 → Builds, tests, and publishes your app. ● PublishBuildArtifacts@1 → Stores your compiled output. Example: A .NET Core pipeline may use: - task: DotNetCoreCLI@2 inputs: command: 'build'
What tasks are commonly used in .NET build pipelines?
Answer:
Common tasks:
- UseDotNet@2 → Installs .NET SDK.
- NuGetCommand@2 → Restores NuGet packages.
- DotNetCoreCLI@2 → Builds, tests, and publishes your app.
- PublishBuildArtifacts@1 → Stores your compiled output.
Example:
A .NET Core pipeline may use:
- task: DotNetCoreCLI@2
inputs:
command: 'build'