From 92e5de0912544b49051b7fe1fd74bb5898554cb8 Mon Sep 17 00:00:00 2001 From: Zdenek Strach Date: Wed, 6 Mar 2024 10:49:54 +0100 Subject: [PATCH] KX-11391 - SignFile replaced with AzureSignTool (#5) * KX-11391 - SignFile replaced with AzureSignTool * KX-11391 - Update Directory.build.targets --------- Co-authored-by: Zdenek Strach --- .azuredevops/pipelines/build-and-release.yml | 12 +++++++++++- .config/dotnet-tools.json | 12 ++++++++++++ Directory.Build.props | 1 + Directory.build.targets | 4 ++-- 4 files changed, 26 insertions(+), 3 deletions(-) create mode 100644 .config/dotnet-tools.json diff --git a/.azuredevops/pipelines/build-and-release.yml b/.azuredevops/pipelines/build-and-release.yml index 254aff6..8a3e613 100644 --- a/.azuredevops/pipelines/build-and-release.yml +++ b/.azuredevops/pipelines/build-and-release.yml @@ -31,7 +31,7 @@ stages: - Agent.Name -equals ${{ parameters.AgentName }} variables: - - group: 14.0 Authenticode signature parameters + - group: Code Sign KV Auth - name: Configuration value: Release @@ -67,6 +67,14 @@ stages: packageType: sdk useGlobalJson: true + - task: DotNetCoreCLI@2 + displayName: Restore dotnet tools + inputs: + command: custom + custom: tool + arguments: restore + workingDirectory: $(System.DefaultWorkingDirectory) + - task: DotNetCoreCLI@2 displayName: Restore dependencies inputs: @@ -95,6 +103,8 @@ stages: projects: ${{ variables.ProjectPath }} configuration: ${{ variables.Configuration }} arguments: --no-restore --verbosity Detailed + env: + AuthenticodeClientSecret: $(AuthenticodeClientSecret) - task: DotNetCoreCLI@2 displayName: Create NuGet package diff --git a/.config/dotnet-tools.json b/.config/dotnet-tools.json new file mode 100644 index 0000000..708a45c --- /dev/null +++ b/.config/dotnet-tools.json @@ -0,0 +1,12 @@ +{ + "version": 1, + "isRoot": true, + "tools": { + "azuresigntool": { + "version": "4.0.1", + "commands": [ + "azuresigntool" + ] + } + } +} \ No newline at end of file diff --git a/Directory.Build.props b/Directory.Build.props index 8cd680e..de8ff57 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -32,6 +32,7 @@ true $(NoWarn);1591 false + http://timestamp.digicert.com diff --git a/Directory.build.targets b/Directory.build.targets index 022c81e..2660856 100644 --- a/Directory.build.targets +++ b/Directory.build.targets @@ -9,7 +9,7 @@ - + @@ -18,4 +18,4 @@ - \ No newline at end of file +