diff --git a/.azuredevops/pipelines/build-and-release.yml b/.azuredevops/pipelines/build-and-release.yml index 8a3e613..0bf223c 100644 --- a/.azuredevops/pipelines/build-and-release.yml +++ b/.azuredevops/pipelines/build-and-release.yml @@ -7,13 +7,23 @@ parameters: - name: AgentPoolName displayName: Agent pool name type: string - default: Default + default: ADO Windows Server 2022 - name: AgentName displayName: Agent name - single char for any type: string default: " " +resources: + repositories: + - repository: self + type: git + + containers: + - container: Windows + image: base/mcr-dotnet-sdk-8.0-servercore-ltsc2022:release + endpoint: xperienceagentshub.azurecr.io + variables: - name: SIGN_FILE value: true @@ -29,6 +39,7 @@ stages: ${{ if ne(length(parameters.AgentName), 1) }}: demands: - Agent.Name -equals ${{ parameters.AgentName }} + container: Windows variables: - group: Code Sign KV Auth @@ -61,12 +72,6 @@ stages: inputs: version: $(PACKAGE_JSON_NODE_VERSION) - - task: UseDotNet@2 - displayName: Select dotnet version - inputs: - packageType: sdk - useGlobalJson: true - - task: DotNetCoreCLI@2 displayName: Restore dotnet tools inputs: @@ -105,6 +110,8 @@ stages: arguments: --no-restore --verbosity Detailed env: AuthenticodeClientSecret: $(AuthenticodeClientSecret) + # Roll-forward behavior set for AzureSignTool dotnet tool (see .config\dotnet-tools.json) which requires .Net 6.0 runtime + DOTNET_ROLL_FORWARD: Major - task: DotNetCoreCLI@2 displayName: Create NuGet package @@ -135,6 +142,7 @@ stages: ${{ if ne(length(parameters.AgentName), 1) }}: demands: - Agent.Name -equals ${{ parameters.AgentName }} + container: Windows environment: integrations-release-nuget workspace: