Wednesday, June 10, 2020

InternalsVisibleTo in your csproj file

I blogged before about how to use the [InternalsVisibleTo] in your .NET Standard/.NET Core project. Today I discovered an alternative approach where you specify the attribute information in your csproj file:

During compilation of your project an AssemblyInfo.cs file is generated (take a look at your object folder):