forked from microsoft/ApplicationInsights-ServiceFabric
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Signing.props
30 lines (26 loc) · 1.25 KB
/
Signing.props
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)\Keys\InternalKey.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>
<PropertyGroup Condition="'$(PublicRelease)' == 'True'">
<DefineConstants>$(DefineConstants);PUBLIC_RELEASE</DefineConstants>
<DelaySign>true</DelaySign>
<AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)\Keys\35MSSharedLib1024.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>
<Target Name="AddToSign" AfterTargets="CopyFilesToOutputDirectory" >
<ItemGroup>
<!-- Automatically sign binary generated by the project that imports Signing.props and all ps1 files -->
<FilesToSign Include="$(TargetPath)" >
<Authenticode>Microsoft</Authenticode>
<StrongName>MsSharedLib72</StrongName>
</FilesToSign>
<FilesToSign Include="$(OutputPath)*.ps1">
<Authenticode>MicrosoftSHA1</Authenticode>
<StrongName>10006</StrongName>
</FilesToSign>
</ItemGroup>
<Message Text="FilesToSign: %(FilesToSign.Identity); %(FilesToSign.Authenticode); %(FilesToSign.StrongName)" Importance="high"/>
</Target>
</Project>