Enable assembly strong name signing

このコミットが含まれているのは:
Sergio Pedri committed 2023-03-11 15:35:28 +01:00
1 親 f3c2430d66
コミット 2c2491151f
6ファイル変更
+36 -14

検索条件に一致するファイルはありません

+22
ファイルの表示
@@ -116,4 +116,26 @@
<ItemGroup>
<SourceRoot Include="$(MSBuildThisFileDirectory)..\"/>
</ItemGroup>
<!--
Setup properties to filter properties based on their location and name. These are needed to decide when to
enable assembly strong name signing. We only want to enable it for published projects and for internal test
projects (as InternalsVisibleTo also needs a strong name if the source assembly has a strong name). But, we
don't want to enable it for all projects, as some test and sample projects have NuGet dependencies to packages
which are not strongly named, and as such would not compile.
-->
<PropertyGroup>
<ProjectDirectoryPathFromSourceRoot>$([MSBuild]::MakeRelative('$(MSBuildThisFileDirectory)..\', $(MSBuildProjectDirectory)))</ProjectDirectoryPathFromSourceRoot>
<IsPublishedProject>$(ProjectDirectoryPathFromSourceRoot.StartsWith('src\'))</IsPublishedProject>
<IsTestProject>$(ProjectDirectoryPathFromSourceRoot.StartsWith('tests\'))</IsTestProject>
<IsInternalsTestProject>false</IsInternalsTestProject>
<IsInternalsTestProject Condition="$(IsTestProject) AND $(MSBuildProjectName.EndsWith('.Internals'))">true</IsInternalsTestProject>
</PropertyGroup>
<!-- Enable strong name signing when needed (see notes above) -->
<PropertyGroup Condition="$(IsPublishedProject) OR $(IsInternalsTestProject)">
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)..\build\computesharp.snk</AssemblyOriginatorKeyFile>
<AssemblySignPublicKey>00240000048000009400000006020000002400005253413100040000010001001DA244ACFEE0D02ADF2D7F464B5E2562BB1AEF50B32DCD8B2DADEC659A5ED8B6C5817B03EB5E723067718A7972C936F626879DCE8E85636E7812B92CAB100D4947E3E6655AD49359E279A09F34B65E5ECA5FD5D8941C70BD48E56D8739A3BFF4F1C85071B7494D0B3A692F16CA6CC40585BCA8AD5B24BB2E7B834F15B6E667BB</AssemblySignPublicKey>
</PropertyGroup>
</Project>
バイナリ
ファイルの表示
バイナリファイルは表示されません。
+7 -7
ファイルの表示
@@ -7,13 +7,13 @@
</PropertyGroup>
<ItemGroup>
<InternalsVisibleTo Include="ComputeSharp" />
<InternalsVisibleTo Include="ComputeSharp.Dynamic" />
<InternalsVisibleTo Include="ComputeSharp.Pix" />
<InternalsVisibleTo Include="ComputeSharp.Uwp" />
<InternalsVisibleTo Include="ComputeSharp.WinUI" />
<InternalsVisibleTo Include="ComputeSharp.D2D1" />
<InternalsVisibleTo Include="ComputeSharp.D2D1.Uwp" />
<InternalsVisibleTo Include="ComputeSharp, PublicKey=$(AssemblySignPublicKey)" />
<InternalsVisibleTo Include="ComputeSharp.Dynamic, PublicKey=$(AssemblySignPublicKey)" />
<InternalsVisibleTo Include="ComputeSharp.Pix, PublicKey=$(AssemblySignPublicKey)" />
<InternalsVisibleTo Include="ComputeSharp.Uwp, PublicKey=$(AssemblySignPublicKey)" />
<InternalsVisibleTo Include="ComputeSharp.WinUI, PublicKey=$(AssemblySignPublicKey)" />
<InternalsVisibleTo Include="ComputeSharp.D2D1, PublicKey=$(AssemblySignPublicKey)" />
<InternalsVisibleTo Include="ComputeSharp.D2D1.Uwp, PublicKey=$(AssemblySignPublicKey)" />
</ItemGroup>
<!-- .NET Standard 2.0 polyfill packages -->
+1 -1
ファイルの表示
@@ -7,7 +7,7 @@
</PropertyGroup>
<ItemGroup>
<InternalsVisibleTo Include="ComputeSharp.D2D1.Uwp" />
<InternalsVisibleTo Include="ComputeSharp.D2D1.Uwp, PublicKey=$(AssemblySignPublicKey)" />
</ItemGroup>
<ItemGroup>
+1 -1
ファイルの表示
@@ -8,7 +8,7 @@
</PropertyGroup>
<ItemGroup>
<InternalsVisibleTo Include="ComputeSharp.Tests.Internals" />
<InternalsVisibleTo Include="ComputeSharp.Tests.Internals, PublicKey=$(AssemblySignPublicKey)" />
</ItemGroup>
<!-- Reference to the main non-dynamic library-->
+5 -5
ファイルの表示
@@ -7,11 +7,11 @@
</PropertyGroup>
<ItemGroup>
<InternalsVisibleTo Include="ComputeSharp.Dynamic" />
<InternalsVisibleTo Include="ComputeSharp.Pix" />
<InternalsVisibleTo Include="ComputeSharp.Uwp" />
<InternalsVisibleTo Include="ComputeSharp.WinUI" />
<InternalsVisibleTo Include="ComputeSharp.Tests.Internals" />
<InternalsVisibleTo Include="ComputeSharp.Dynamic, PublicKey=$(AssemblySignPublicKey)" />
<InternalsVisibleTo Include="ComputeSharp.Pix, PublicKey=$(AssemblySignPublicKey)" />
<InternalsVisibleTo Include="ComputeSharp.Uwp, PublicKey=$(AssemblySignPublicKey)" />
<InternalsVisibleTo Include="ComputeSharp.WinUI, PublicKey=$(AssemblySignPublicKey)" />
<InternalsVisibleTo Include="ComputeSharp.Tests.Internals, PublicKey=$(AssemblySignPublicKey)" />
</ItemGroup>
<ItemGroup>