From 90c5702b479a9bbe6dadd77c2b2c92e2606886cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Luthi?= Date: Fri, 12 Jun 2026 10:00:00 +0200 Subject: [PATCH] Mention tweaking `CompileUsingReferenceAssemblies` in the README Setting `CompileUsingReferenceAssemblies` to false can solve issues when the assembly comes from a project reference. --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 3af9d90..ed7b42e 100644 --- a/README.md +++ b/README.md @@ -25,3 +25,13 @@ Just add the package and define `IgnoresAccessChecksTo` items with the assemblie ``` + +> [!Tip] +> +> If you want to ignore access checks to an assembly coming from a `ProjectReference` instead of a `PackageReference`, you'll need to set the `CompileUsingReferenceAssemblies` property to `false`. +> +> ```xml +> +> false +> +> ```