Cant do the exercise due to an incoorrect installed .net version

Karl Schilla 20 Reputation points
2024-08-15T13:12:26.43+00:00

I'm trying to do the first exercise in the training, but it say wrong version of .net installed need 7.0.400 but version 8.0.303 has been installed. I tried to install 7.0.400 myself, but althogh the installation suceeded, the command to build the application still says the wrong version of .net is installed:

dotnet run

The command could not be loaded, possibly because:

  • You intended to execute a .NET application: The application 'run' does not exist.
  • You intended to execute a .NET SDK command: A compatible .NET SDK was not found.

Requested SDK version: 7.0.400

global.json file: /home/karl/sas/global.json

Installed SDKs:

8.0.303 [/usr/share/dotnet/sdk]

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,086 questions
Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
3,352 questions
0 comments No comments
{count} votes

Accepted answer
  1. Bruce (SqlWork.com) 70,686 Reputation points
    2024-08-15T16:06:27.8+00:00

    .net 7 is no longer supported. I would recommend, changing the project to .net 8, or find a more current training module. you can install .net 7 sdk and it will run side by side .net 8:

    https://dotnet.microsoft.com/en-us/download/dotnet/7.0


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.