🔧 Removes default internals visibility for test projects

Eliminates the automatic exposure of assembly internals to
test projects when no friend assemblies are declared,
streamlining the handling of internals visibility.
This commit is contained in:
akritikos committed 2026-08-26 22:38:16 +03:00
1 parent b34dffe5f2
commit b169a233ed
2 files changed
+30 -30

No files matched your search

-7
View File
@@ -159,13 +159,6 @@
CopyToOutputDirectory="Never" Visible="false" />
</ItemGroup>
<!-- Project internals are exposed to projects named $(Project).Tests by default -->
<ItemGroup
Condition="@(InternalsVisibleToSuffix->Count()) == 0 AND @(InternalsVisibleTo->Count()) == 0">
<InternalsVisibleToSuffix Include=".Tests" />
<InternalsVisibleToSuffix Include="Tests" />
</ItemGroup>
<PropertyGroup Label="Package">
<PackageId>$(RootNamespace)</PackageId>
<Company>Kritikos IO</Company>