Skip to content
This repository was archived by the owner on May 1, 2024. It is now read-only.

Fix CI Build Errors on Build Windows Samples job #1173

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,15 @@ jobs:
pool:
vmImage: windows-2019
steps:
- task: CmdLine@2
displayName: 'Clear Local NuGet Cache' #https://github.com/actions/virtual-environments/issues/1090#issuecomment-748452120
inputs:
script: 'nuget locals all -clear'
- task: MSBuild@1
displayName: 'Clean Solution'
inputs:
solution: $(PathToSln)
msbuildArguments: '/t:Clean'
- task: MSBuild@1
displayName: Build Solution
inputs:
Expand Down Expand Up @@ -88,6 +97,15 @@ jobs:
inputs:
version: $(NETCORE_TEST_VERSION_2_1)
includePreviewVersions: false
- task: CmdLine@2
displayName: 'Clear Local NuGet Cache' #https://github.com/actions/virtual-environments/issues/1090#issuecomment-748452120
inputs:
script: 'nuget locals all -clear'
- task: MSBuild@1
displayName: 'Clean Solution'
inputs:
solution: $(PathToSln)
msbuildArguments: '/t:Clean'
# if this is a tagged build, then update the version number
- powershell: |
$buildSourceBranch = "$(Build.SourceBranch)"
Expand Down