Skip to content

Commit

Permalink
Correctly mark the .NET Framework reference assemblies as private. (#…
Browse files Browse the repository at this point in the history
…1419)

And use a built-in MSBuild item to apply the `InternalsVisibleToAttribute` (available since at least the .NET 5 SDK which is already required by `global.json`).
  • Loading branch information
teo-tsirpanis authored Aug 24, 2021
1 parent cef541f commit 45d346d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Terminal.Gui/Terminal.Gui.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,14 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.2" PrivateAssets="true" />
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.2" PrivateAssets="all" />
<PackageReference Include="NStack.Core" Version="0.16.0" />
<PackageReference Include="MinVer" Version="2.5.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
<InternalsVisibleTo Include="UnitTests" />
<!-- <None Remove="ConsoleDrivers\#ConsoleDriver.cs#" /> -->
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleToAttribute">
<_Parameter1>UnitTests</_Parameter1>
</AssemblyAttribute>
</ItemGroup>
<PropertyGroup>
<MinVerSkip Condition="'$(Configuration)' == 'Debug'">true</MinVerSkip>
Expand Down

0 comments on commit 45d346d

Please sign in to comment.