diff --git a/Documentation/Reproducible-MSBuild/Techniques/DisableImplicitLibraryPacksFolder.md b/Documentation/Reproducible-MSBuild/Techniques/DisableImplicitLibraryPacksFolder.md new file mode 100644 index 0000000..f58ef5f --- /dev/null +++ b/Documentation/Reproducible-MSBuild/Techniques/DisableImplicitLibraryPacksFolder.md @@ -0,0 +1,18 @@ +# DisableImplicitLibraryPacksFolder + +Similar to [`DisableImplicitNuGetFallbackFolder`](./DisableImplicitNuGetFallbackFolder.md), Microsoft.NET.NuGetOfflineCache.targets (imported by Microsoft.NET.Sdk.BeforeCommon.targets) adds an extra search path for nuget packages that is not controlled by the user nuget.config. It will add the `sdk//FSharp` from your dotnet installation to the set of nuget search locations. At the time of writing, this location is used to distribute the FSharp.Core NuGet package, which is generally referenced by all F# projects (and, transitively, all projects that reference projects and NuGet packages created with F#). This could potentially poison your nuget cache between repos, even if you've configured per-repo nuget caches. + + +## Usage + +In Directory.Build.props + +```xml + + true + +``` + +## References +- [Microsoft.NET.NuGetOfflineCache.targets](https://github.com/dotnet/sdk/blob/main/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.NuGetOfflineCache.targets) +- Official documentation: none? \ No newline at end of file diff --git a/Documentation/Reproducible-MSBuild/Techniques/toc.md b/Documentation/Reproducible-MSBuild/Techniques/toc.md index f883fef..271b39c 100644 --- a/Documentation/Reproducible-MSBuild/Techniques/toc.md +++ b/Documentation/Reproducible-MSBuild/Techniques/toc.md @@ -2,6 +2,7 @@ - [AssemblySearchPaths](./AssemblySearchPaths.md) - [DisableImplicitNuGetFallbackFolder](./DisableImplicitNuGetFallbackFolder.md) +- [DisableImplicitLibraryPacksFolder](./DisableImplicitLibraryPacksFolder.md) - [DOTNET_MULTILEVEL_LOOKUP](./DOTNET_MULTILEVEL_LOOKUP.md) - [NetCoreTargetingPackRoot](./NetCoreTargetingPackRoot.md) - [NUGET_XMLDOC_MODE](./NUGET_XMLDOC_MODE.md) diff --git a/src/DotNet.ReproducibleBuilds.Isolated/Sdk/Sdk.props b/src/DotNet.ReproducibleBuilds.Isolated/Sdk/Sdk.props index 2ac6453..832ef4a 100644 --- a/src/DotNet.ReproducibleBuilds.Isolated/Sdk/Sdk.props +++ b/src/DotNet.ReproducibleBuilds.Isolated/Sdk/Sdk.props @@ -43,9 +43,10 @@ true + true \ No newline at end of file