Skip to content

Commit

Permalink
Use PackageIdVariant in InternalsVisibleTo
Browse files Browse the repository at this point in the history
  • Loading branch information
Arlodotexe committed May 6, 2024
1 parent 913675b commit 6b54da1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,7 @@
<PackageReadmeFile>ReadMe.md</PackageReadmeFile>
</PropertyGroup>

<ItemGroup>
<InternalsVisibleTo Include="CommunityToolkit.WinUI.Media" />
<InternalsVisibleTo Include="CommunityToolkit.WinUI.Behaviors" />

<ItemGroup>
<PackageReference Include="PolySharp" Version="1.13.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
Expand All @@ -34,4 +31,9 @@

<!-- Sets this up as a toolkit component's source project -->
<Import Project="$(ToolingDirectory)\ToolkitComponent.SourceProject.props" />

<ItemGroup>
<InternalsVisibleTo Include="CommunityToolkit.$(PackageIdVariant).Media" />
<InternalsVisibleTo Include="CommunityToolkit.$(PackageIdVariant).Behaviors" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

<!-- TODO: We should figure out a better way to share internal helpers without duplication -->
<!-- e.g. Animations is using ThrowIfNull helper... -->
<InternalsVisibleTo Include="CommunityToolkit.WinUI.Animations" />
<InternalsVisibleTo Include="CommunityToolkit.WinUI.Media" />
<InternalsVisibleTo Include="CommunityToolkit.$(PackageIdVariant).Animations" />
<InternalsVisibleTo Include="CommunityToolkit.$(PackageIdVariant).Media" />
</ItemGroup>
</Project>
2 changes: 1 addition & 1 deletion tooling

0 comments on commit 6b54da1

Please sign in to comment.