summaryrefslogtreecommitdiff
path: root/config/ice.common.sign.targets
blob: 87dd0b189a597b39b46e5e3766c6098cc86a1c40 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
    <PropertyGroup>
        <TimeStampServer>http://timestamp.digicert.com</TimeStampServer>
        <SignCommandSHA1>/f "$(SIGN_CERTIFICATE)" /p $(SIGN_PASSWORD) /tr $(TimeStampServer)</SignCommandSHA1>
        <SignCommandSHA256>/f "$(SIGN_CERTIFICATE)" /p $(SIGN_PASSWORD) /tr $(TimeStampServer) /td sha256 /fd sha256 /as</SignCommandSHA256>
    </PropertyGroup>

  <!-- Authenticode sign task that retries on failures -->
  <UsingTask TaskName="SignTask"
             TaskFactory="CodeTaskFactory"
             AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.v4.0.dll">
      <ParameterGroup>
          <WorkingDirectory ParameterType="System.String" Required="true"/>
          <AdditionalOptions ParameterType="System.String" Required="true"/>
          <Files ParameterType="Microsoft.Build.Framework.ITaskItem[]" Required="True"/>
      </ParameterGroup>
      <Task>
          <Code Type="Class" Language="cs" Source="$(MSBuildThisFileDirectory)/SignTask.cs" />
      </Task>
  </UsingTask>

</Project>