Skip to content

How to specify dotnet version used by .csproj? #754

Description

@elibroftw

Description:

I have a csproj that already explicitly has

<TargetFramework>net10.0-windows10.0.19041.0</TargetFramework>

Currently I need to specify that I am using dotnet version 10 from the action.

- name: Setup .NET
        uses: actions/setup-dotnet@v5
        with:
          dotnet-version: '10.0.x'

In about 2 years in November 2028, there is a high probability that this action of ours will not be updated. It requires adding more infromation to the readme on how to update the .net version. This is unfavourable.

Justification:

Avoids needing to write instructions on to update the action when updating the .net version used for projects.

Are you willing to submit a PR?

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestNew feature or request to improve the current logic

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions