|
@@ -1,8 +1,3 @@
|
|
|
-# .NET Desktop
|
|
|
-# Build and run tests for .NET Desktop or Windows classic desktop solutions.
|
|
|
-# Add steps that publish symbols, save build artifacts, and more:
|
|
|
-# https://docs.microsoft.com/azure/devops/pipelines/apps/windows/dot-net
|
|
|
-
|
|
|
trigger:
|
|
|
- master
|
|
|
|
|
@@ -20,14 +15,16 @@ steps:
|
|
|
- task: NuGetCommand@2
|
|
|
inputs:
|
|
|
restoreSolution: '$(solution)'
|
|
|
-
|
|
|
-- task: VSBuild@1
|
|
|
+- task: DotNetCoreCLI@2
|
|
|
+ displayName: Build
|
|
|
inputs:
|
|
|
- solution: '$(solution)'
|
|
|
- platform: '$(buildPlatform)'
|
|
|
- configuration: '$(buildConfiguration)'
|
|
|
+ command: 'build'
|
|
|
+ projects: '**/*.csproj'
|
|
|
+ arguments: '--configuration Release'
|
|
|
|
|
|
-- task: VSTest@2
|
|
|
+- task: DotNetCoreCLI@2
|
|
|
+ displayName: Tests
|
|
|
inputs:
|
|
|
- platform: '$(buildPlatform)'
|
|
|
- configuration: '$(buildConfiguration)'
|
|
|
+ command: test
|
|
|
+ projects: '**/*Tests/*.csproj'
|
|
|
+ arguments: '--configuration $(buildConfiguration) --collect "Code coverage"'
|