Skip to content

Commit

Permalink
update build for .net 5
Browse files Browse the repository at this point in the history
  • Loading branch information
brianlagunas authored and dansiegel committed Nov 13, 2020
1 parent 65f7acb commit 1d75d7d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
8 changes: 8 additions & 0 deletions build/steps/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ parameters:
msbuildArguments: '/p:JavaSdkDirectory="$(JAVA_HOME)"'

steps:
- task: ChocoInstallPackage@1
displayName: Install latest VS2019
inputs:
packageId: 'visualstudio2019buildtools'
extraOptions: '--package-parameters "--allWorkloads --includeRecommended --includeOptional --passive --locale en-US"'

- template: prepare-build.yml
parameters:
solution: ${{ parameters.solution }}
Expand All @@ -15,3 +21,5 @@ steps:
platform: '$(BuildPlatform)'
configuration: '$(BuildConfiguration)'
msbuildArguments: ${{ parameters.msbuildArguments }}
env:
MSBuildSDKsPath: 'C:\hostedtoolcache\windows\dotnet\sdk\5.0.100\Sdks\'
6 changes: 4 additions & 2 deletions build/steps/prepare-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ parameters:

steps:
- task: UseDotNet@2
displayName: Use .NET 3.1
displayName: Use .NET 5.0
inputs:
packageType: 'sdk'
useGlobalJson: true
Expand All @@ -18,4 +18,6 @@ steps:
inputs:
restoreSolution: ${{ parameters.solution }}
noCache: true
verbosityRestore: normal
verbosityRestore: normal
env:
MSBuildSDKsPath: 'C:\hostedtoolcache\windows\dotnet\sdk\5.0.100\Sdks\'

0 comments on commit 1d75d7d

Please sign in to comment.