Skip to content

Commit 002cce7

Browse files
Builds failing due to restore failure of recently published packages #2327 (#2333)
Prevent NuGet from using cached packages in CI builds
1 parent 5cfc9ed commit 002cce7

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/Microsoft.DotNet.Arcade.Sdk/tools/DefaultVersions.props

+8
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,14 @@
2828
<RestoreConfigFile>$(RepoRoot)NuGet.config</RestoreConfigFile>
2929
</PropertyGroup>
3030

31+
<!--
32+
Prevent NuGet from using cached packages
33+
Workaround for https://github.com/NuGet/Home/issues/3116
34+
-->
35+
<PropertyGroup>
36+
<RestoreNoCache Condition="'$(ContinuousIntegrationBuild)' == 'true'">true</RestoreNoCache>
37+
</PropertyGroup>
38+
3139
<!--
3240
Arcade SDK features.
3341
-->

0 commit comments

Comments
 (0)