diff options
author | Gleb Balykov <g.balykov@samsung.com> | 2020-03-10 19:22:08 +0300 |
---|---|---|
committer | Gleb Balykov <g.balykov@samsung.com> | 2020-03-25 15:29:17 +0300 |
commit | e8fc07ce861be7a724e642dddee9023b2be7b0bb (patch) | |
tree | d2c6f7e28c4494d84af36345ded81c52bb63e02f /.packages/microsoft.dotnet.arcade.sdk/1.0.0-beta.20113.5/tools/StrongName.targets | |
parent | c5d3d752260383fbed72ba2b4d86d82fea673c76 (diff) | |
download | coreclr-e8fc07ce861be7a724e642dddee9023b2be7b0bb.tar.gz coreclr-e8fc07ce861be7a724e642dddee9023b2be7b0bb.tar.bz2 coreclr-e8fc07ce861be7a724e642dddee9023b2be7b0bb.zip |
[Tizen] Add BuildTools v3.1.3
Diffstat (limited to '.packages/microsoft.dotnet.arcade.sdk/1.0.0-beta.20113.5/tools/StrongName.targets')
-rwxr-xr-x | .packages/microsoft.dotnet.arcade.sdk/1.0.0-beta.20113.5/tools/StrongName.targets | 89 |
1 files changed, 89 insertions, 0 deletions
diff --git a/.packages/microsoft.dotnet.arcade.sdk/1.0.0-beta.20113.5/tools/StrongName.targets b/.packages/microsoft.dotnet.arcade.sdk/1.0.0-beta.20113.5/tools/StrongName.targets new file mode 100755 index 0000000000..12ed647fdf --- /dev/null +++ b/.packages/microsoft.dotnet.arcade.sdk/1.0.0-beta.20113.5/tools/StrongName.targets @@ -0,0 +1,89 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license. See the LICENSE file in the project root for more information. --> +<Project> + + <!-- + Reads variables: + SignAssembly "true" to sign the output assembly of the current project + StrongNameKeyId The id of the key used for strong name generation + + Writes variables: + DelaySign + PublicSign + PublicKey + PublicKeyToken + AssemblyOriginatorKeyFile + --> + + <PropertyGroup Condition="'$(SignAssembly)' != 'false'"> + <DelaySign>false</DelaySign> + <PublicSign>true</PublicSign> + </PropertyGroup> + + <!-- Binaries are delay or public-signed with one of these keys; later, the signing system will finish the strong-name signing. --> + <Choose> + <When Condition="'$(SignAssembly)' == 'false'" /> + <When Condition="'$(StrongNameKeyId)' == 'Microsoft'"> + <PropertyGroup> + <AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)snk/MSFT.snk</AssemblyOriginatorKeyFile> + <PublicKey>$(MicrosoftPublicKey)</PublicKey> + <PublicKeyToken>b03f5f7f11d50a3a</PublicKeyToken> + </PropertyGroup> + </When> + <When Condition="'$(StrongNameKeyId)' == 'MicrosoftShared'"> + <PropertyGroup> + <AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)snk/35MSSharedLib1024.snk</AssemblyOriginatorKeyFile> + <PublicKey>$(MicrosoftSharedPublicKey)</PublicKey> + <PublicKeyToken>31BF3856AD364E35</PublicKeyToken> + </PropertyGroup> + </When> + <When Condition="'$(StrongNameKeyId)' == 'MicrosoftAspNetCore'"> + <PropertyGroup> + <AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)snk/AspNetCore.snk</AssemblyOriginatorKeyFile> + <PublicKey>$(MicrosoftAspNetCorePublicKey)</PublicKey> + <PublicKeyToken>adb9793829ddae60</PublicKeyToken> + <PublicSign>false</PublicSign> <!-- The MicrosoftAspNetCore strong name key is a full key --> + </PropertyGroup> + </When> + <When Condition="'$(StrongNameKeyId)' == 'ECMA'"> + <PropertyGroup> + <AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)snk/ECMA.snk</AssemblyOriginatorKeyFile> + <PublicKey>$(ECMAPublicKey)</PublicKey> + <PublicKeyToken>b77a5c561934e089</PublicKeyToken> + </PropertyGroup> + </When> + <!-- + The Open key can be used by any library that needs strong name signing that doesn't + have to be protected by the closed MS based keys. The idea is to have a key for identity but + not for any security purposes. + --> + <When Condition="'$(StrongNameKeyId)' == 'Open'"> + <PropertyGroup> + <AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)snk/Open.snk</AssemblyOriginatorKeyFile> + <PublicKey>$(OpenPublicKey)</PublicKey> + <PublicKeyToken>cc7b13ffcd2ddd51</PublicKeyToken> + <DelaySign>false</DelaySign> + <PublicSign>false</PublicSign> <!-- The Open strong name key is a full key --> + </PropertyGroup> + </When> + <When Condition="'$(StrongNameKeyId)' == 'SilverlightPlatform'"> + <PropertyGroup> + <AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)snk/SilverlightPlatformPublicKey.snk</AssemblyOriginatorKeyFile> + <PublicKey>$(SilverlightPlatformPublicKey)</PublicKey> + <PublicKeyToken>7cec85d7bea7798e</PublicKeyToken> + </PropertyGroup> + </When> + </Choose> + + <!-- Build Flag Verification --> + <PropertyGroup> + <PrepareForBuildDependsOn>$(PrepareForBuildDependsOn);VerifyBuildFlags</PrepareForBuildDependsOn> + </PropertyGroup> + + <Target Name="VerifyBuildFlags"> + <Error Condition="'$(SignAssembly)' != 'false' and + ('$(PublicKey)' == '' or '$(PublicKeyToken)' == '' or '$(AssemblyOriginatorKeyFile)' == '')" + Text="PublicKey, PublicKeyToken and AssemblyOriginatorKeyFile must be specified" /> + </Target> + +</Project> |