Mid
From PDF
DevOps
Azure DevOps
Modify the YAML as needed. Example (YAML): trigger: - main pool: vmImage: 'windows-latest' steps: - task: UseDotNet@2 inputs: packageType: 'sdk' version: '8.0.x' - script: dotnet restore - script: dotnet build --configuration Release - script: dotnet test --no-build --verbosity normal This pipeline restores packages, builds, and runs tests for your .NET app. 5⃣ What tasks are commonly used in .NET build pipelines?
Short answer: Common tasks: UseDotNet@2 → Installs .NET SDK. NuGetCommand@2 → Restores NuGet packages.
Real-world example (ShopNest)
ShopNest’s YAML pipeline builds on every PR, runs unit tests, then deploys to a staging slot on main-branch merges.
Say this in the interview
- Define — one clear sentence (the short answer above).
- Example — relate it to a project like ShopNest or your real work.
- Trade-off — when you would not use it.
Share this Q&A
Share preview image: https://www.toolliyo.com/images/toolliyo-logo.png