Skip to content

Commit 17fc0da

Browse files
committed
Move [InternalsVisibleTo] to .csproj files
1 parent 6c462db commit 17fc0da

File tree

5 files changed

+11
-17
lines changed

5 files changed

+11
-17
lines changed

build/Community.Toolkit.Common.props

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
<PropertyGroup>
2828
<SignAssembly>true</SignAssembly>
2929
<AssemblyOriginatorKeyFile>$(RepositoryDirectory)toolkit.snk</AssemblyOriginatorKeyFile>
30+
<AssemblySignPublicKey>002400000480000094000000060200000024000052534131000400000100010041753AF735AE6140C9508567666C51C6AB929806ADB0D210694B30AB142A060237BC741F9682E7D8D4310364B4BBA4EE89CC9D3D5CE7E5583587E8EA44DCA09977996582875E71FB54FA7B170798D853D5D8010B07219633BDB761D01AC924DA44576D6180CDCEAE537973982BB461C541541D58417A3794E34F45E6F2D129E2</AssemblySignPublicKey>
3031
</PropertyGroup>
3132

3233
<PropertyGroup>

src/CommunityToolkit.HighPerformance/CommunityToolkit.HighPerformance.csproj

+5
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@
3535
<PackageReference Include="System.Threading.Tasks.Extensions" Version="4.5.4" />
3636
<PackageReference Include="System.Runtime.CompilerServices.Unsafe" Version="6.0.0" />
3737
</ItemGroup>
38+
39+
<!-- On .NET Standard 2.0, the unit test project also needs access to internals-->
40+
<ItemGroup>
41+
<InternalsVisibleTo Include="CommunityToolkit.HighPerformance.UnitTests, PublicKey=$(AssemblySignPublicKey)" />
42+
</ItemGroup>
3843
</When>
3944

4045
<When Condition="'$(TargetFramework)' == 'netstandard2.1'">

src/CommunityToolkit.HighPerformance/Properties/AssemblyInfo.cs

-10
This file was deleted.

src/CommunityToolkit.Mvvm/CommunityToolkit.Mvvm.csproj

+5
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@
4040
<ProjectReference Include="..\CommunityToolkit.Mvvm.SourceGenerators.Roslyn431\CommunityToolkit.Mvvm.SourceGenerators.Roslyn431.csproj" ReferenceOutputAssembly="false" />
4141
</ItemGroup>
4242

43+
<!-- Add the [InternalsVisibleTo] attribute for the test project -->
44+
<ItemGroup>
45+
<InternalsVisibleTo Include="CommunityToolkit.Mvvm.Internals.UnitTests, PublicKey=$(AssemblySignPublicKey)" />
46+
</ItemGroup>
47+
4348
<!-- Necessary polyfills -->
4449
<PropertyGroup>
4550
<PolySharpIncludeGeneratedTypes>

src/CommunityToolkit.Mvvm/Properties/AssemblyInfo.cs

-7
This file was deleted.

0 commit comments

Comments
 (0)