mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-19 04:18:43 +00:00
Added InternalsVisibleTo build target.
This commit is contained in:
parent
91a9ffc7ff
commit
227a00d854
4 changed files with 28 additions and 6 deletions
|
|
@ -1,5 +1,7 @@
|
|||
<Project>
|
||||
|
||||
<Import Project="InternalsVisibleTo.targets" />
|
||||
|
||||
<Import Project="PackageProperties.targets" />
|
||||
|
||||
<Import Project="PackageVersions.targets" />
|
||||
|
|
|
|||
24
Build/Targets/InternalsVisibleTo.targets
Normal file
24
Build/Targets/InternalsVisibleTo.targets
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
<Project>
|
||||
|
||||
<PropertyGroup>
|
||||
<CosmosPublicKey>0024000004800000940000000602000000240000525341310004000001000100e3ef5198fa2f8926f006b5d2053eb3b3c875e74695675a6b97bd27ba6b0c5cbee26710c04277f7975927ace4a037692eddb71340a4c3f11e06c645c6a4cebad303301228943b39378bf3222f9432ff9c72c31d1a5e936db6cf9f18c23bd52a43c091fc803ce2139cd390a9678553d1e6061656c3d0196ddbd2233143fc433195</CosmosPublicKey>
|
||||
</PropertyGroup>
|
||||
|
||||
<Target Name="GenerateInternalsVisibleTo" BeforeTargets="GetAssemblyAttributes" Condition="'@(InternalsVisibleTo)' != ''">
|
||||
|
||||
<ItemGroup>
|
||||
<InternalsVisibleTo Update="@(InternalsVisibleTo)" PublicKey="$(CosmosPublicKey)" Condition="'%(InternalsVisibleTo.Key)' == 'Cosmos'" />
|
||||
</ItemGroup>
|
||||
|
||||
<Error Text="Unknown public key '%(InternalsVisibleTo.Key)'!" Condition="'%(InternalsVisibleTo.Key)' != '' AND '%(InternalsVisibleTo.PublicKey)' == ''" />
|
||||
|
||||
<ItemGroup>
|
||||
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleTo">
|
||||
<_Parameter1 Condition="'%(InternalsVisibleTo.PublicKey)' == ''">%(InternalsVisibleTo.Identity)</_Parameter1>
|
||||
<_Parameter1 Condition="'%(InternalsVisibleTo.PublicKey)' != ''">%(InternalsVisibleTo.Identity), PublicKey=%(InternalsVisibleTo.PublicKey)</_Parameter1>
|
||||
</AssemblyAttribute>
|
||||
</ItemGroup>
|
||||
|
||||
</Target>
|
||||
|
||||
</Project>
|
||||
|
|
@ -6,9 +6,7 @@
|
|||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleTo">
|
||||
<_Parameter1>Cosmos.Core.Tests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100e3ef5198fa2f8926f006b5d2053eb3b3c875e74695675a6b97bd27ba6b0c5cbee26710c04277f7975927ace4a037692eddb71340a4c3f11e06c645c6a4cebad303301228943b39378bf3222f9432ff9c72c31d1a5e936db6cf9f18c23bd52a43c091fc803ce2139cd390a9678553d1e6061656c3d0196ddbd2233143fc433195</_Parameter1>
|
||||
</AssemblyAttribute>
|
||||
<InternalsVisibleTo Include="Cosmos.Core.Tests" Key="Cosmos" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
|
|
|||
|
|
@ -6,9 +6,7 @@
|
|||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleTo">
|
||||
<_Parameter1>Cosmos.System.Tests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100e3ef5198fa2f8926f006b5d2053eb3b3c875e74695675a6b97bd27ba6b0c5cbee26710c04277f7975927ace4a037692eddb71340a4c3f11e06c645c6a4cebad303301228943b39378bf3222f9432ff9c72c31d1a5e936db6cf9f18c23bd52a43c091fc803ce2139cd390a9678553d1e6061656c3d0196ddbd2233143fc433195</_Parameter1>
|
||||
</AssemblyAttribute>
|
||||
<InternalsVisibleTo Include="Cosmos.System.Tests" Key="Cosmos" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
|
|
|||
Loading…
Reference in a new issue