Skip to content

Support explicit architecture for dotnet #524

Closed

Description

@ww898

Description:
I need to install both arm64 and x64 architectures for .NET 8.0 on macOS M1 for execute tests on different platforms. Now it checks only arm64 version and say that everything was already installed.

Justification:
Example of the new symtax:

        uses: actions/setup-dotnet@v4
        with:
          dotnet:
            - version: 8.0.x
               arch: x64
            - version: 8.0.x
               arch: arm64

Activity

  1. added
    feature request
    on May 7, 2024
  2. v-aparnajyothi-y commented on May 7, 2024

    @v-aparnajyothi-y
    Contributor

    Hello @ww898, Thank you for creating the feature request and we will get back to you once we have some feedback on this :)

  3. self-assigned this
    on Dec 29, 2025
  4. v-priya-kinthali commented on Feb 25, 2026

    @v-priya-kinthali
    Contributor

    Hello @ww898👋,
    Thanks for raising this feature request! We've opened PR#700 that adds an optional architecture input to support cross-architecture .NET installs. Please feel free to check out the PR for more details. Thank you!

  5. v-priya-kinthali commented on Mar 3, 2026

    @v-priya-kinthali
    Contributor

    Hello everyone👋,
    Support for explicit architecture has been added and PR#700 is now merged. You can now explicitly specify the architecture (e.g., x64, arm64) when installing .NET, enabling cross-architecture installs on the same runner. The changes are available on actions/setup-dotnet@main and will be included in the next release.
    We are now proceeding to close this feature request. If you have any further questions or concerns, or if you encounter related issues after updating, please feel free to reach out to us. Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

feature request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions