Skip to content

Commit

Permalink
Install .NET 6 SDK for MacOS
Browse files Browse the repository at this point in the history
  • Loading branch information
bartelink committed Mar 4, 2022
1 parent afeeae8 commit 80f1347
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
displayName: dotnet pack build.proj
env:
BUILD_PR: $(SYSTEM.PULLREQUEST.PULLREQUESTNUMBER)
BUILD_ID: $(BUILD.BUILDNUMBER)
BUILD_ID: $(BUILD.BUILDNUMBER)
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: 'bin/nupkg'
Expand All @@ -42,12 +42,19 @@ jobs:
displayName: dotnet pack
env:
BUILD_PR: $(SYSTEM.PULLREQUEST.PULLREQUESTNUMBER)
BUILD_ID: $(BUILD.BUILDNUMBER)
BUILD_ID: $(BUILD.BUILDNUMBER)

- job: MacOS
pool:
vmImage: 'macOS-latest'
steps:
- task: UseDotNet@2
displayName: 'Install .NET Core sdk'
inputs:
packageType: sdk
version: 6.x
installationPath:
$(Agent.ToolsDirectory)/dotnet
- script: dotnet test build.proj -v n
displayName: dotnet test build.proj
env:
Expand All @@ -62,4 +69,4 @@ jobs:
displayName: dotnet pack
env:
BUILD_PR: $(SYSTEM.PULLREQUEST.PULLREQUESTNUMBER)
BUILD_ID: $(BUILD.BUILDNUMBER)
BUILD_ID: $(BUILD.BUILDNUMBER)

0 comments on commit 80f1347

Please sign in to comment.