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

Commit 3fef5d0

Browse files
Fix CI Build Errors on Build Windows Samples job (#1173)
* Update azure-pipelines.yml * Clean + Build * Revert "Clean + Build" This reverts commit e93ca82. * Add `dotnet clean` * Update azure-pipelines.yml * Update azure-pipelines.yml * Update azure-pipelines.yml * Add link
1 parent bd50618 commit 3fef5d0

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

azure-pipelines.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,15 @@ jobs:
6161
pool:
6262
vmImage: windows-2019
6363
steps:
64+
- task: CmdLine@2
65+
displayName: 'Clear Local NuGet Cache' #https://github.com/actions/virtual-environments/issues/1090#issuecomment-748452120
66+
inputs:
67+
script: 'nuget locals all -clear'
68+
- task: MSBuild@1
69+
displayName: 'Clean Solution'
70+
inputs:
71+
solution: $(PathToSln)
72+
msbuildArguments: '/t:Clean'
6473
- task: MSBuild@1
6574
displayName: Build Solution
6675
inputs:
@@ -88,6 +97,15 @@ jobs:
8897
inputs:
8998
version: $(NETCORE_TEST_VERSION_2_1)
9099
includePreviewVersions: false
100+
- task: CmdLine@2
101+
displayName: 'Clear Local NuGet Cache' #https://github.com/actions/virtual-environments/issues/1090#issuecomment-748452120
102+
inputs:
103+
script: 'nuget locals all -clear'
104+
- task: MSBuild@1
105+
displayName: 'Clean Solution'
106+
inputs:
107+
solution: $(PathToSln)
108+
msbuildArguments: '/t:Clean'
91109
# if this is a tagged build, then update the version number
92110
- powershell: |
93111
$buildSourceBranch = "$(Build.SourceBranch)"

0 commit comments

Comments
 (0)