Skip to content

Commit 48b80e2

Browse files
committed
Add support for signing MSIs
Fixes 9193
1 parent 5b06ff3 commit 48b80e2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/Directory.Build.targets

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,14 @@
8585
WorkingDirectory="$(MSBuildProjectDirectory)" EchoOff="true" />
8686
</Target>
8787

88+
<!-- We want to be very precise about which MSIs we sign, so use 'true' for that precision. -->
89+
<Target Name="SignMsi" Condition=" '$(SigningCertName)'!='' and '$(SignOutput)'=='true' ">
90+
<Message Importance="high" Text="Signing MSI: @(SignMsi->&apos;%(Identity)&apos;)" />
91+
92+
<Exec Command='"$(SigningToolExe)" $(SigningCommand) $(SigningConfiguration) "@(SignMsi->&apos;%(Identity)&apos;)"'
93+
WorkingDirectory="$(MSBuildProjectDirectory)" EchoOff="true" />
94+
</Target>
95+
8896
<Target Name="SignBundleEngine" Condition=" '$(SigningCertName)'!='' and '$(SignOutput)'!='false' ">
8997
<Message Importance="high" Text="Signing bundle engine: @(SignBundleEngine->&apos;%(Identity)&apos;)" />
9098

0 commit comments

Comments
 (0)