31 lines
831 B
YAML
31 lines
831 B
YAML
# ASP.NET Core
|
|
# Build and test ASP.NET Core projects targeting .NET Core.
|
|
# Add steps that run tests, create a NuGet package, deploy, and more:
|
|
# https://docs.microsoft.com/azure/devops/pipelines/languages/dotnet-core
|
|
|
|
pool:
|
|
vmImage: 'vs2017-win2016'
|
|
|
|
variables:
|
|
buildConfiguration: 'Release'
|
|
|
|
steps:
|
|
- script: dotnet build --configuration $(buildConfiguration)
|
|
displayName: 'dotnet build $(buildConfiguration)'
|
|
|
|
- task: DotNetCoreCLI@2
|
|
displayName: 'dotnet test $(buildConfiguration) (win-x64)'
|
|
inputs:
|
|
command: test
|
|
projects: '**/*Tests/*.csproj'
|
|
arguments: '--configuration $(buildConfiguration) --runtime win-x64'
|
|
|
|
- task: DotNetCoreCLI@2
|
|
inputs:
|
|
command: 'pack'
|
|
packagesToPack: '**/*.csproj'
|
|
configuration: 'release'
|
|
|
|
- task: PublishBuildArtifacts@1
|
|
displayName: 'publish artifacts'
|