I have installed .NET 7 and I don't have .NET 6 anymore. When installing the latest GitVersion and trying to run it with dotnet gitversion I get the following error
You must install .NET to run this application.
App: /home/diegosasw/.dotnet/tools/dotnet-gitversion
Architecture: x64
App host version: 7.0.0
.NET location: Not found
Learn about runtime installation:
https://aka.ms/dotnet/app-launch-failed
Download the .NET runtime:
https://aka.ms/dotnet-core-applaunch?missing_runtime=true&arch=x64&rid=ubuntu.22.04-x64&apphost_version=7.0.0
Expected Behavior
It should display the gitversion output
Actual Behavior
It's displaying the error stating that .NET location is Not found
Steps to Reproduce
Install .NET 7
sudo apt install curl
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor | sudo dd of=/usr/share/keyrings/microsoft.gpg
For 22.04
echo 'deb [arch=amd64 signed-by=/usr/share/keyrings/microsoft.gpg] https://packages.microsoft.com/ubuntu/22.04/prod jammy main' | sudo tee /etc/apt/sources.list.d/microsoft.list >/dev/null
Install SDK and runtimes for .NET 7
sudo apt update
sudo apt install dotnet-sdk-7.0
sudo apt install dotnet-runtime-7.0
sudo apt install aspnetcore-runtime-7.0
Validate dotnet is there
Install GitVersion
dotnet tool install --global GitVersion.tool --version 5.11.1
Tool 'gitversion.tool' is already installed.
Now try to use it
dotnet gitversion
You must install .NET to run this application.
App: /home/diegosasw/.dotnet/tools/dotnet-gitversion
Architecture: x64
App host version: 7.0.0
.NET location: Not found
Learn about runtime installation:
https://aka.ms/dotnet/app-launch-failed
Download the .NET runtime:
https://aka.ms/dotnet-core-applaunch?missing_runtime=true&arch=x64&rid=ubuntu.22.04-x64&apphost_version=7.0.0
Context
Your Environment
- Version Used: 5.11.1
- Operating System and version (Windows 10, Ubuntu 18.04): Ubuntu 22.04
I have installed .NET 7 and I don't have .NET 6 anymore. When installing the latest GitVersion and trying to run it with
dotnet gitversionI get the following errorExpected Behavior
It should display the gitversion output
Actual Behavior
It's displaying the error stating that .NET location is Not found
Steps to Reproduce
Install .NET 7
For 22.04
Install SDK and runtimes for .NET 7
Validate dotnet is there
Install GitVersion
Now try to use it
Context
Your Environment