vcsjones / AzureSignTool

SignTool Library and Azure Key Vault Support
MIT License
272 stars 85 forks source link

Sign with NET7 #190

Closed hrlourenco closed 5 months ago

hrlourenco commented 1 year ago

Hello,

When trying to sign with an agent (azure devops) without NET6 installed, it fails requesting NET6 to be installed. Is there some workaround to allow use the tool without NET6 in the agent?

Install azuresigntool: image

Executing: image

Thank you

vcsjones commented 1 year ago

I don't know about any particular work around for this. My preference would be to stay on an LTS version of .NET. I suppose we could bring back the roll forward, which I think is what allows AST 3.x to work on future runtimes.

BryanEuton commented 1 year ago

The only work around that I've seen for this is to actually install the .net6 version before this step:

    - task: UseDotNet@2
      displayName: Install .NET 6 Version for AzureSignTool
      condition: succeeded()
      inputs:
        packageType: 'sdk'
        version: '6.0.300'
        installationPath: $(Agent.TempDirectory)/dotnet
ZdenekS81 commented 6 months ago

I experienced the same issue on an agent with NET8 SDK and the work around which worked for me was the roll-forward behavior set via the environment variable:

env:
  DOTNET_ROLL_FORWARD: Major
vcsjones commented 5 months ago

Closing this for now, as AzureSignTool is now updated for .NET 8.