Merge pull request #498 from Sergio0694/dev/build-infrastructure

Enable assembly strong name signing
このコミットが含まれているのは:
Sergio Pedri authored and GitHub committed 2023-03-11 16:56:08 +01:00
コミット 9dd258bf70
18ファイル変更
+74 -39

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

-14
ファイルの表示
@@ -1,14 +0,0 @@
# Refactored code to use file scoped using declarations
d5e3114f7c57c815fe72ae8e2c4c1225352bfc03
# Updated pixel tests T4 templates to file scoped using directives
6fe06ea4b2b8be4d4038d79840e215448e8f3893
# Removed multiline variable declarations
ee0d3a7b68e95a9c3e569d582b4efc8aa7fd4d4a
# Remove leftover nested namespace blocks
c6252ee1c9041e6f4a407816e551455c9d545a53
# Apply XAML styler refactor pass to UWP/WinUI 3 samples
e608db8a7f727abda72bde9c538d12b3b4319f55
+21 -2
ファイルの表示
@@ -20,11 +20,15 @@ EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "_SolutionItems", "_SolutionItems", "{1A9C4108-F61A-4ABE-B5CF-F524521EAE2D}"
ProjectSection(SolutionItems) = preProject
.editorconfig = .editorconfig
.gitattributes = .gitattributes
.gitignore = .gitignore
Directory.Build.props = Directory.Build.props
Directory.Build.targets = Directory.Build.targets
.globalconfig = .globalconfig
build\Directory.Build.props = build\Directory.Build.props
build\Directory.Build.targets = build\Directory.Build.targets
global.json = global.json
LICENSE = LICENSE
README.md = README.md
ThirdPartyNotices.txt = ThirdPartyNotices.txt
EndProjectSection
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ComputeSharp.SourceGenerators", "src\ComputeSharp.SourceGenerators\ComputeSharp.SourceGenerators.csproj", "{EB52CB67-4162-4722-874B-44EA8DA5450E}"
@@ -132,6 +136,19 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ComputeSharp.D2D1.Uwp", "sr
EndProject
Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "ComputeSharp.SwapChain.Shaders.D2D1.Shared", "samples\ComputeSharp.SwapChain.Shaders.D2D1.Shared\ComputeSharp.SwapChain.Shaders.D2D1.Shared.shproj", "{F8BF7666-7CCF-4FE4-B055-2EBA4BCD4564}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "samples", "samples", "{568E7009-5C13-4153-9C94-0AC7A3E6883C}"
ProjectSection(SolutionItems) = preProject
samples\Directory.Build.props = samples\Directory.Build.props
samples\Directory.Build.targets = samples\Directory.Build.targets
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tests", "tests", "{B54B6DCA-6EAB-46A8-83D3-15154659F47F}"
ProjectSection(SolutionItems) = preProject
tests\.editorconfig = tests\.editorconfig
tests\Directory.Build.props = tests\Directory.Build.props
tests\Directory.Build.targets = tests\Directory.Build.targets
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|x64 = Debug|x64
@@ -414,6 +431,8 @@ Global
{669A414F-3B46-4B55-B587-061AF63C3067} = {F8EFBB27-4EE2-4463-A75B-7EFDFB55D0F7}
{B86A48A7-18BD-4946-B995-3CE26B092DDF} = {1A9C4108-F61A-4ABE-B5CF-F524521EAE2D}
{F8BF7666-7CCF-4FE4-B055-2EBA4BCD4564} = {0ED8F632-5E17-46BE-8CC3-B14A82D4AEB1}
{568E7009-5C13-4153-9C94-0AC7A3E6883C} = {1A9C4108-F61A-4ABE-B5CF-F524521EAE2D}
{B54B6DCA-6EAB-46A8-83D3-15154659F47F} = {1A9C4108-F61A-4ABE-B5CF-F524521EAE2D}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {4664C5E3-0340-4E22-BCFD-98AAEDF5F2DC}
+24 -2
ファイルの表示
@@ -51,7 +51,7 @@
<!-- Centralized location for all generated artifacts -->
<PropertyGroup>
<PackageOutputPath>$(MSBuildThisFileDirectory)artifacts/</PackageOutputPath>
<PackageOutputPath>$(MSBuildThisFileDirectory)..\artifacts\</PackageOutputPath>
</PropertyGroup>
<!--
@@ -114,6 +114,28 @@
<!-- Needed for deterministic builds -->
<ItemGroup>
<SourceRoot Include="$(MSBuildThisFileDirectory)/"/>
<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>
ファイルの表示
差分なしでファイル名を変更。
バイナリ
ファイルの表示
バイナリファイルは表示されません。
+1 -1
ファイルの表示
@@ -1,5 +1,5 @@
<Project>
<Import Project="..\Directory.Build.props" />
<Import Project="..\build\Directory.Build.props" />
<PropertyGroup>
<NoWarn>$(NoWarn);CS1591</NoWarn>
+4
ファイルの表示
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<Project>
<Import Project="..\build\Directory.Build.targets" />
</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
ファイルの表示
@@ -1,3 +1,3 @@
<Project>
<Import Project="..\..\Directory.Build.props" />
<Import Project="..\..\build\Directory.Build.props" />
</Project>
+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-->
+1 -1
ファイルの表示
@@ -1,3 +1,3 @@
<Project>
<Import Project="..\..\Directory.Build.props" />
<Import Project="..\..\build\Directory.Build.props" />
</Project>
+1 -1
ファイルの表示
@@ -1,3 +1,3 @@
<Project>
<Import Project="..\..\Directory.Build.props" />
<Import Project="..\..\build\Directory.Build.props" />
</Project>
+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>
+1 -1
ファイルの表示
@@ -1,5 +1,5 @@
<Project>
<Import Project="..\Directory.Build.props" />
<Import Project="..\build\Directory.Build.props" />
<!-- Reference NuGetizer to manage the packaging process -->
<ItemGroup>
+1 -1
ファイルの表示
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<Project>
<Import Project="..\Directory.Build.targets" />
<Import Project="..\build\Directory.Build.targets" />
<!-- Enable trimming support on .NET 6 -->
<Target Name="ConfigureAssemblyTrimmingIfNeeded"
+1 -1
ファイルの表示
@@ -1,5 +1,5 @@
<Project>
<Import Project="..\Directory.Build.props" />
<Import Project="..\build\Directory.Build.props" />
<PropertyGroup>
+4
ファイルの表示
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<Project>
<Import Project="..\build\Directory.Build.targets" />
</Project>