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?
Today
dotnet --versionstopped 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.
Today's fails with the error in the title.
Now how do I check the version?