Skip to content

The application '--version' does not exist #16438

Description

@iainelder

Today dotnet --version stopped working for me.

I use a Github Actions workflow to test my script to install dotnet-sdk-7.0 on Ubuntu 22.

My script copies the documented steps to Register the Microsoft package repository.

At the end I test the installation using dotnet --version.

Yesterday's CI run worked like this.

+ dotnet --version
7.0.302

Today's fails with the error in the title.

+ dotnet --version
The command could not be loaded, possibly because:
  * You intended to execute a .NET application:
      The application '--version' does not exist.
  * You intended to execute a .NET SDK command:
      No .NET SDKs were found.

Download a .NET SDK:
https://aka.ms/dotnet/download

Learn about SDK resolution:
https://aka.ms/dotnet/sdk-not-found

Now how do I check the version?

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions