1
0
Форкнуть 0
ApplicationInsights-aspnetcore/Signing.props

35 строки
1.4 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Target Name="Info_SigningProps" BeforeTargets="Build" >
<Message Text="INFO) Signing.props imported by $(MSBuildProjectName)." Importance="high"/>
</Target>
<PropertyGroup>
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>$(SourceRoot)\Keys\InternalKey.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>
<PropertyGroup Condition="'$(PublicRelease)' == 'True'">
<DefineConstants>$(DefineConstants);PUBLIC_RELEASE</DefineConstants>
<DelaySign>true</DelaySign>
<AssemblyOriginatorKeyFile>$(SourceRoot)\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>Microsoft400</Authenticode>
<StrongName>MsSharedLib72</StrongName>
</FilesToSign>
<FilesToSign Include="$(OutputPath)*.ps1">
<Authenticode>Microsoft400</Authenticode>
<StrongName>10006</StrongName>
</FilesToSign>
</ItemGroup>
<Message Text="FilesToSign: %(FilesToSign.Identity); %(FilesToSign.Authenticode); %(FilesToSign.StrongName)" Importance="high"/>
</Target>
</Project>