Skip to content

Commit af763c3

Browse files
authored
Disable NuGet fallback dir to avoid non-determinism (#119)
1 parent 671839e commit af763c3

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/Common/build/Microsoft.MSBuildCache.Common.props

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,16 @@
11
<Project>
2+
<PropertyGroup>
3+
<!--
4+
Do not read assemblies from the NugetFallbackFolder since this causes non-determinism with packages
5+
sometimes being pulled from the NuGet cache and sometimes pulled from the NugetFallbackFolder, which
6+
can causes cache misses.
7+
8+
Note that the NugetFallbackFolder no longer is created, but it may still exist on machines which ever
9+
had older versions of the .NET SDK (< 3.0?) installed.
10+
-->
11+
<DisableImplicitNuGetFallbackFolder>true</DisableImplicitNuGetFallbackFolder>
12+
</PropertyGroup>
13+
214
<!--
315
Defaults for well-known files which should be ignored. These are generally intermediate files used for incremental builds and can be safely ignored.
416
The reason to ignore these files is if a referencing project can trigger one of these files to be written, usually to cache some expensive computation in that project.

0 commit comments

Comments
 (0)