Skip to content

CI: update NuGet publish workflow to current action majors and default MSBuild toolchain#155

Merged
jaccz merged 2 commits into
mainfrom
copilot/update-github-actions-workflow
Jul 6, 2026
Merged

CI: update NuGet publish workflow to current action majors and default MSBuild toolchain#155
jaccz merged 2 commits into
mainfrom
copilot/update-github-actions-workflow

Conversation

Copilot AI commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

The NuGet publish workflow was selecting a VS preview toolchain (vs-version: [18.0,19.0)) that no longer aligns with the hosted runner image, causing MSB8020 for projects targeting v143. This PR updates the workflow to current action majors and removes the brittle Visual Studio version assumption while preserving the existing build/package flow and matrix.

  • Toolchain selection hardening

    • Upgraded microsoft/setup-msbuild from v1.0.2 to v2.
    • Removed explicit vs-version pin so MSBuild resolves from the default windows-latest environment.
  • Action version refresh

    • Upgraded actions/checkout from v3 to v4 in both build and package jobs.
  • Script execution consistency

    • Added explicit shell: pwsh to PowerShell-based script steps in the package job.
  • Build/package behavior preserved

    • Kept runs-on: windows-latest.
    • Kept matrix coverage unchanged: Release, Debug × x64, x86, ARM64.
    • Kept artifact packaging/publish flow intact.
- name: Add MSBuild to PATH
  uses: microsoft/setup-msbuild@v2
  # removed:
  # with:
  #   vs-version: '[18.0,19.0)'

Copilot AI changed the title [WIP] Update GitHub Actions workflow to use latest Windows runner and action versions CI: update NuGet publish workflow to current action majors and default MSBuild toolchain Jul 6, 2026
Copilot finished work on behalf of jaccz July 6, 2026 17:15
Copilot AI requested a review from jaccz July 6, 2026 17:15
@jaccz jaccz marked this pull request as ready for review July 6, 2026 17:17
@jaccz jaccz merged commit 7909f2d into main Jul 6, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants