Skip to content

Commit 45d346d

Browse files
Correctly mark the .NET Framework reference assemblies as private. (#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`).
1 parent cef541f commit 45d346d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Terminal.Gui/Terminal.Gui.csproj

+2-4
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,14 @@
88
</PropertyGroup>
99

1010
<ItemGroup>
11-
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.2" PrivateAssets="true" />
11+
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.2" PrivateAssets="all" />
1212
<PackageReference Include="NStack.Core" Version="0.16.0" />
1313
<PackageReference Include="MinVer" Version="2.5.0">
1414
<PrivateAssets>all</PrivateAssets>
1515
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
1616
</PackageReference>
17+
<InternalsVisibleTo Include="UnitTests" />
1718
<!-- <None Remove="ConsoleDrivers\#ConsoleDriver.cs#" /> -->
18-
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleToAttribute">
19-
<_Parameter1>UnitTests</_Parameter1>
20-
</AssemblyAttribute>
2119
</ItemGroup>
2220
<PropertyGroup>
2321
<MinVerSkip Condition="'$(Configuration)' == 'Debug'">true</MinVerSkip>

0 commit comments

Comments
 (0)