From 227a00d854790b937ef327792c2f0dea7e4ebee4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Pedro?= Date: Sun, 5 Aug 2018 00:23:49 +0100 Subject: [PATCH] Added InternalsVisibleTo build target. --- Build/Targets/Import.targets | 2 ++ Build/Targets/InternalsVisibleTo.targets | 24 +++++++++++++++++++++ source/Cosmos.Core/Cosmos.Core.csproj | 4 +--- source/Cosmos.System2/Cosmos.System2.csproj | 4 +--- 4 files changed, 28 insertions(+), 6 deletions(-) create mode 100644 Build/Targets/InternalsVisibleTo.targets diff --git a/Build/Targets/Import.targets b/Build/Targets/Import.targets index 8f1e9f3e6..43e026ce6 100644 --- a/Build/Targets/Import.targets +++ b/Build/Targets/Import.targets @@ -1,5 +1,7 @@ + + diff --git a/Build/Targets/InternalsVisibleTo.targets b/Build/Targets/InternalsVisibleTo.targets new file mode 100644 index 000000000..77948e38f --- /dev/null +++ b/Build/Targets/InternalsVisibleTo.targets @@ -0,0 +1,24 @@ + + + + 0024000004800000940000000602000000240000525341310004000001000100e3ef5198fa2f8926f006b5d2053eb3b3c875e74695675a6b97bd27ba6b0c5cbee26710c04277f7975927ace4a037692eddb71340a4c3f11e06c645c6a4cebad303301228943b39378bf3222f9432ff9c72c31d1a5e936db6cf9f18c23bd52a43c091fc803ce2139cd390a9678553d1e6061656c3d0196ddbd2233143fc433195 + + + + + + + + + + + + + <_Parameter1 Condition="'%(InternalsVisibleTo.PublicKey)' == ''">%(InternalsVisibleTo.Identity) + <_Parameter1 Condition="'%(InternalsVisibleTo.PublicKey)' != ''">%(InternalsVisibleTo.Identity), PublicKey=%(InternalsVisibleTo.PublicKey) + + + + + + diff --git a/source/Cosmos.Core/Cosmos.Core.csproj b/source/Cosmos.Core/Cosmos.Core.csproj index 62b29be4d..a356c00de 100644 --- a/source/Cosmos.Core/Cosmos.Core.csproj +++ b/source/Cosmos.Core/Cosmos.Core.csproj @@ -6,9 +6,7 @@ - - <_Parameter1>Cosmos.Core.Tests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100e3ef5198fa2f8926f006b5d2053eb3b3c875e74695675a6b97bd27ba6b0c5cbee26710c04277f7975927ace4a037692eddb71340a4c3f11e06c645c6a4cebad303301228943b39378bf3222f9432ff9c72c31d1a5e936db6cf9f18c23bd52a43c091fc803ce2139cd390a9678553d1e6061656c3d0196ddbd2233143fc433195 - + diff --git a/source/Cosmos.System2/Cosmos.System2.csproj b/source/Cosmos.System2/Cosmos.System2.csproj index 991e8bbe7..9f2a80fdf 100644 --- a/source/Cosmos.System2/Cosmos.System2.csproj +++ b/source/Cosmos.System2/Cosmos.System2.csproj @@ -6,9 +6,7 @@ - - <_Parameter1>Cosmos.System.Tests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100e3ef5198fa2f8926f006b5d2053eb3b3c875e74695675a6b97bd27ba6b0c5cbee26710c04277f7975927ace4a037692eddb71340a4c3f11e06c645c6a4cebad303301228943b39378bf3222f9432ff9c72c31d1a5e936db6cf9f18c23bd52a43c091fc803ce2139cd390a9678553d1e6061656c3d0196ddbd2233143fc433195 - +