Browse Source

Merge pull request #8 from flabbet/azure-pipelines

Update azure-pipelines.yml for Azure Pipelines
Krzysztof Krysiński 5 years ago
parent
commit
844a16cb67
1 changed files with 10 additions and 13 deletions
  1. 10 13
      azure-pipelines.yml

+ 10 - 13
azure-pipelines.yml

@@ -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"'