Skip to content

Instantly share code, notes, and snippets.

@WrackedFella
Last active August 26, 2020 15:08
Show Gist options
  • Save WrackedFella/17353f4a12097720be2d7275b3ecda8e to your computer and use it in GitHub Desktop.
Save WrackedFella/17353f4a12097720be2d7275b3ecda8e to your computer and use it in GitHub Desktop.
# ASP.NET Core (.NET Framework)
# Build and test ASP.NET Core projects targeting the full .NET Framework.
# Add steps that publish symbols, save build artifacts, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/dotnet-core
trigger:
- master
- dev
pool:
vmImage: 'windows-latest'
variables:
solution: '**/*.sln'
buildConfiguration: 'Release'
steps:
- task: NuGetCommand@2
displayName: Restore
inputs:
command: 'restore'
restoreSolution: '**/*.sln'
- task: DotNetCoreCLI@2
displayName: Build
inputs:
command: build
projects: '**/*.csproj'
arguments: '--configuration $(buildConfiguration)'
- task: DotNetCoreCLI@2
displayName: Tests
inputs:
command: test
arguments: '--configuration $(buildConfiguration)'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment