Skip to content
This repository was archived by the owner on Nov 28, 2024. It is now read-only.

Commit d5f3df9

Browse files
add steps for nuget signing
1 parent 7d32cb8 commit d5f3df9

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

BuildTools/BuildNuget.UWP.proj

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
<NugetDependsOn>
88
PrepareNugetProperties;
99
BuildFullNugets
10+
SignFullNugets
1011
</NugetDependsOn>
1112
</PropertyGroup>
1213

@@ -50,5 +51,17 @@
5051
<Exec Command="$(PowerShellExe) -NonInteractive -executionpolicy Unrestricted -command (New-Object System.Net.WebClient).DownloadFile('http://dist.nuget.org/win-x86-commandline/latest/nuget.exe', 'nuget.exe')"/>
5152
<Exec Command="$(Nuget32ToolPath) pack $(UWPNuspec) -Version $(Version) -OutputDirectory $(FullOutputDir) -Properties $(UWPProperties)"/>
5253
</Target>
54+
55+
<Target Name="SignFullNugets">
56+
<ItemGroup>
57+
<NugetPackagesToBeSigned Include="$(FullOutputDir)\**\*.nupkg"/>
58+
</ItemGroup>
59+
60+
<Message Text="DEBUG INFO: SignNugetProject=$(SignNugetProject)" />
61+
62+
<MSBuild Projects="$(SignNugetProject)"
63+
Properties="NugetToolPath=$(Nuget32ToolPath);
64+
SignedFilePath=%(NugetPackagesToBeSigned.FullPath)"/>
65+
</Target>
5366

5467
</Project>

BuildTools/Config.UWP.proj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
<ControlsFolder>$(MsBuildProjectDirectory)\..\Controls</ControlsFolder>
1111
<UWPControlsSolutionPath>$(ControlsFolder)\UWPControls.sln</UWPControlsSolutionPath>
1212
<UWPMapSolutionPath>$(ControlsFolder)\UWPMap.sln</UWPMapSolutionPath>
13+
<SignNugetProject>$(MSBuildProjectDirectory)\CommonTools\SignNugetPackages.proj</SignNugetProject>
1314
<Configuration>Release</Configuration>
1415
<AnyCPUPlatform>Any CPU</AnyCPUPlatform>
1516
<X86Platform>x86</X86Platform>

0 commit comments

Comments
 (0)