From 248bcfbe0b2b0886ceaa128608b2d213ce96a85f Mon Sep 17 00:00:00 2001
From: Nogic <24802730+nogic1008@users.noreply.github.com>
Date: Sun, 28 May 2023 23:42:01 +0000
Subject: [PATCH] build: add `DisableImplicitNuGetFallbackFolder` option
also add guide on README
---
README.md | 9 +++++++++
__tests__/e2e-test-csproj/test.csproj | 1 +
2 files changed, 10 insertions(+)
diff --git a/README.md b/README.md
index 99a5a51..8518fd7 100644
--- a/README.md
+++ b/README.md
@@ -99,6 +99,15 @@ steps:
- run: dotnet restore --locked-mode
```
+> **Note:** This action will only restore `global-packages` folder, so you will get [NU1403](https://learn.microsoft.com/nuget/reference/errors-and-warnings/nu1403) error when running `dotnet restore`.
+> To avoid this, please use [`DisableImplicitNuGetFallbackFolder`](https://github.com/dotnet/reproducible-builds/blob/abfe986832aa28597d3340b92469d1a702013d23/Documentation/Reproducible-MSBuild/Techniques/DisableImplicitNuGetFallbackFolder.md) option.
+
+```xml
+
+ true
+
+```
+
### Reduce caching size
**Note:** Use [`NUGET_PACKAGES`](https://learn.microsoft.com/nuget/reference/cli-reference/cli-ref-environment-variables) environment variable if available. Some action runners already has huge libraries. (ex. Xamarin)
diff --git a/__tests__/e2e-test-csproj/test.csproj b/__tests__/e2e-test-csproj/test.csproj
index 769269f..0335882 100644
--- a/__tests__/e2e-test-csproj/test.csproj
+++ b/__tests__/e2e-test-csproj/test.csproj
@@ -3,6 +3,7 @@
$(TEST_TARGET_FRAMEWORK)
false
+ true