build: InternalsVisibleTo excluded from test projects

pull/56/head
Robert Dailey 2 years ago
parent 3960f24f99
commit f570b098f1

@ -19,11 +19,12 @@
</AllowedReferenceRelatedFileExtensions> </AllowedReferenceRelatedFileExtensions>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <!-- For only NON-TEST projects -->
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleToAttribute"> <ItemGroup Condition="!$(ProjectName.EndsWith('.Tests'))">
<_Parameter1>$(AssemblyName).Tests</_Parameter1> <InternalsVisibleTo Include="$(AssemblyName).Tests" />
</AssemblyAttribute> </ItemGroup>
<ItemGroup>
<!-- From https://github.com/dotnet/msbuild/pull/6285 --> <!-- From https://github.com/dotnet/msbuild/pull/6285 -->
<AssemblyAttribute Include="System.CLSCompliantAttribute"> <AssemblyAttribute Include="System.CLSCompliantAttribute">
<_Parameter1>false</_Parameter1> <_Parameter1>false</_Parameter1>

Loading…
Cancel
Save