diff --git a/.azuredevops/pipelines/build-and-release.yaml b/.azuredevops/pipelines/build-and-release.yaml index 050daaf..0c7a7f0 100644 --- a/.azuredevops/pipelines/build-and-release.yaml +++ b/.azuredevops/pipelines/build-and-release.yaml @@ -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: @@ -82,6 +90,8 @@ stages: projects: ${{ variables.ProjectFilePath }} configuration: ${{ variables.Configuration }} arguments: --no-restore + 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 16b0953..33e3c7d 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -31,6 +31,7 @@ true $(NoWarn);1591;S3267 false + http://timestamp.digicert.com diff --git a/Directory.build.targets b/Directory.build.targets index e42ebd6..fec5935 100644 --- a/Directory.build.targets +++ b/Directory.build.targets @@ -8,7 +8,7 @@ - - + + - \ No newline at end of file +