-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathazure-pipelines.yml
39 lines (34 loc) · 1.17 KB
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
pool:
vmImage: 'windows-2019'
variables:
- name: DOTNET_NOLOGO
value: 'true'
steps:
- checkout: self
- task: UseDotNet@2
inputs:
packageType: sdk
version: 5.0.100-rc.1.20452.10
performMultiLevelLookup: true
- task: UseDotNet@2
inputs:
packageType: sdk
version: 3.1.x
performMultiLevelLookup: true
- script: dotnet tool update -g dotnet-vs
displayName: dotnet tool update -g dotnet-vs
- pwsh: echo "##vso[task.setvariable variable=MSB]$(vs where preview --prop=InstallationPath)"
- script: vs install preview --quiet +Microsoft.VisualStudio.Component.ManagedDesktop.Core +Microsoft.NetCore.Component.DevelopmentTools
displayName: vs install preview
condition: eq(variables['MSB'], '')
- pwsh: echo "##vso[task.prependpath]$(vs where preview --prop=InstallationPath)\MSBuild\Current\Bin"
displayName: prepend MSBuild to %PATH%
- script: msbuild -r -bl:$(System.DefaultWorkingDirectory)/logs/build.binlog
displayName: msbuild -r
- script: msbuild -t:test
displayName: msbuild -t:test
- publish: $(System.DefaultWorkingDirectory)/logs
artifact: logs
condition: always()
- script: msbuild -t:Pack -p:PackOnBuild=true
displayName: msbuild -t:pack