From ab49fd52a4cd6fa8986433e3c3005a9c70ace728 Mon Sep 17 00:00:00 2001 From: Eli Arbel <496737+aelij@users.noreply.github.com> Date: Tue, 3 Dec 2024 15:29:56 +0200 Subject: [PATCH] Change property from InternalsAssemblyName to IgnoresAccessChecksTo --- README.md | 6 +++--- .../IgnoresAccessChecksToGenerator.Tasks.csproj | 6 +++--- .../build/IgnoresAccessChecksToGenerator.props | 6 ++++++ .../IgnoresAccessChecksToGenerator.targets | 17 ++++++++++------- .../IgnoresAccessChecksToGenerator.Test.csproj | 7 +++---- 5 files changed, 25 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index 4ac51f2..3d71118 100644 --- a/README.md +++ b/README.md @@ -14,9 +14,9 @@ Just add the package and define `InternalsAssemblyName` items with the assemblie - - - + + + diff --git a/src/IgnoresAccessChecksToGenerator.Tasks/IgnoresAccessChecksToGenerator.Tasks.csproj b/src/IgnoresAccessChecksToGenerator.Tasks/IgnoresAccessChecksToGenerator.Tasks.csproj index 26aec9c..49f374f 100644 --- a/src/IgnoresAccessChecksToGenerator.Tasks/IgnoresAccessChecksToGenerator.Tasks.csproj +++ b/src/IgnoresAccessChecksToGenerator.Tasks/IgnoresAccessChecksToGenerator.Tasks.csproj @@ -4,7 +4,7 @@ netstandard2.0;net462 latest IgnoresAccessChecksToGenerator - 0.7.1 + 0.8.0 true Eli Arbel https://github.com/aelij/IgnoresAccessChecksToGenerator @@ -21,8 +21,8 @@ - - + + diff --git a/src/IgnoresAccessChecksToGenerator.Tasks/build/IgnoresAccessChecksToGenerator.props b/src/IgnoresAccessChecksToGenerator.Tasks/build/IgnoresAccessChecksToGenerator.props index 43237f1..09ad45e 100644 --- a/src/IgnoresAccessChecksToGenerator.Tasks/build/IgnoresAccessChecksToGenerator.props +++ b/src/IgnoresAccessChecksToGenerator.Tasks/build/IgnoresAccessChecksToGenerator.props @@ -7,6 +7,12 @@ false + + false + + + false + diff --git a/src/IgnoresAccessChecksToGenerator.Tasks/build/IgnoresAccessChecksToGenerator.targets b/src/IgnoresAccessChecksToGenerator.Tasks/build/IgnoresAccessChecksToGenerator.targets index 831562a..c53d664 100644 --- a/src/IgnoresAccessChecksToGenerator.Tasks/build/IgnoresAccessChecksToGenerator.targets +++ b/src/IgnoresAccessChecksToGenerator.Tasks/build/IgnoresAccessChecksToGenerator.targets @@ -20,17 +20,20 @@ Outputs="$(_IACTG_ManifestFilePath)" Returns="@(_IACTG_InputReferencePath);@(_IACTG_OutputReferencePath)"> - - + + + + + - <_IACTG_ReferencePathJoin Include="@(ReferencePath)" InternalsAssemblyName="%(InternalsAssemblyName.Identity)" /> - <_IACTG_InputReferencePath Include="@(_IACTG_ReferencePathJoin)" Condition=" '%(Filename)' == '%(InternalsAssemblyName)' " /> + <_IACTG_ReferencePathJoin Include="@(ReferencePath)" IgnoresAccessChecksTo="%(IgnoresAccessChecksTo.Identity)" /> + <_IACTG_InputReferencePath Include="@(_IACTG_ReferencePathJoin)" Condition=" '%(Filename)' == '%(IgnoresAccessChecksTo)' " /> <_IACTG_ReferencePathJoin Remove="@(_IACTG_ReferencePathJoin)" /> <_IACTG_OutputReferencePath Include="@(_IACTG_InputReferencePath->'$(_IACTG_IntermediatePath)/%(Filename)%(Extension)')" OriginalItemSpec="%(Identity)" /> - <_IACTG_Manifest Include="@(InternalsAssemblyExcludeTypeName)" /> + <_IACTG_Manifest Include="@(IgnoresAccessChecksToExcludeTypeName)" /> @@ -42,8 +45,8 @@ Outputs="@(_IACTG_OutputReferencePath);$(_IACTG_CodeFilePath)" Returns="@(ReferencePath);@(Compile)"> diff --git a/test/IgnoresAccessChecksToGenerator.Test/IgnoresAccessChecksToGenerator.Test.csproj b/test/IgnoresAccessChecksToGenerator.Test/IgnoresAccessChecksToGenerator.Test.csproj index d9b1db8..656c7bc 100644 --- a/test/IgnoresAccessChecksToGenerator.Test/IgnoresAccessChecksToGenerator.Test.csproj +++ b/test/IgnoresAccessChecksToGenerator.Test/IgnoresAccessChecksToGenerator.Test.csproj @@ -3,13 +3,12 @@ net8.0 Exe - true - - - + + +