Skip to content

Commit af530a1

Browse files
Merge pull request #3313 from windows-toolkit/fixSigning
Fixed strong name signing.
2 parents 6b26f1d + 12a751a commit af530a1

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

Directory.Build.props

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,6 @@
1919
<PackageOutputPath>$(MSBuildThisFileDirectory)bin\nupkg</PackageOutputPath>
2020
</PropertyGroup>
2121

22-
<PropertyGroup>
23-
<SignAssembly Condition="'$(SignAssembly)' == '' and '$(IsUwpProject)' != 'true' and '$(IsTestSampleProject)' != 'true'" >true</SignAssembly>
24-
<AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)toolkit.snk</AssemblyOriginatorKeyFile>
25-
</PropertyGroup>
26-
2722
<PropertyGroup Condition="'$(TF_BUILD)' == 'true'">
2823
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
2924
</PropertyGroup>

Directory.Build.targets

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,15 @@
2121
</ItemGroup>
2222
</When>
2323
</Choose>
24+
25+
<Choose>
26+
<When Condition="$(TargetFramework.Contains('uap10.0')) == false and '$(TargetFramework)' != 'native' and '$(IsTestSampleProject)' != 'true'">
27+
<PropertyGroup>
28+
<SignAssembly>true</SignAssembly>
29+
<AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)toolkit.snk</AssemblyOriginatorKeyFile>
30+
</PropertyGroup>
31+
</When>
32+
</Choose>
2433

2534
<Target Name="AddCommitHashToAssemblyAttributes" BeforeTargets="GetAssemblyAttributes">
2635
<ItemGroup>

toolkit.public.snk

-160 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)