diff --git a/InternalsVisibleTo.MSBuild.nuspec b/InternalsVisibleTo.MSBuild.nuspec index a20c49f..b1163d0 100644 --- a/InternalsVisibleTo.MSBuild.nuspec +++ b/InternalsVisibleTo.MSBuild.nuspec @@ -2,7 +2,7 @@ InternalsVisibleTo.MSBuild - 1.0.5 + 1.1.0 Enables declaring 'InternalsVisibleTo' items in a .NET project file, rather than declaring them to an AssemblyInfo.cs file. Thomas Levesque https://github.com/thomaslevesque/InternalsVisibleTo.MSBuild diff --git a/README.md b/README.md index b198949..f7baf9d 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,8 @@ Enables declaring `InternalsVisibleTo` items in a .NET project file, rather than declaring them in an AssemblyInfo.cs file. +**IMPORTANT: starting with .NET 5.0, the SDK [already provides support for this](https://github.com/dotnet/sdk/pull/3439). You don't need this package if you're using the .NET 5.0 SDK or later.** + ## How to use 1. Install the `InternalsVisibleTo.MSBuild` NuGet package. diff --git a/build/InternalsVisibleTo.MSBuild.targets b/build/InternalsVisibleTo.MSBuild.targets index 8db2c36..c9307c9 100644 --- a/build/InternalsVisibleTo.MSBuild.targets +++ b/build/InternalsVisibleTo.MSBuild.targets @@ -2,24 +2,31 @@ $(MSBuildAllProjects);$(MSBuildThisFileFullPath) + false + true + false + true - + <_Parameter1>%(InternalsVisibleTo.Identity) <_Parameter1_TypeName>System.String - + <_Parameter1>$(AssemblyName)%(InternalsVisibleToSuffix.Identity) <_Parameter1_TypeName>System.String + +