I am trying to use dotnet run but I am facing the following error: You intended to execute a .NET SDK command: No .NET SDKs were found. In this Exerror article, We are going to learn about How to reproduce this error and we will discuss All Possible Solutions Lets Get Start With This Article.
How You intended to execute a .NET SDK command: No .NET SDKs were found Error Occurs?
I am trying to use dotnet run but I am facing the following error.
* You intended to execute a .NET application:
The application 'watch' does not exist.
* You intended to execute a .NET SDK command:
No .NET SDKs were found.
So here I am writing all the possible solutions that I have tried to resolve this error.
How To Solve You intended to execute a .NET SDK command: No .NET SDKs were found Error?
How To Solve You intended to execute a .NET SDK command: No .NET SDKs were found Error?
To Solve You intended to execute a .NET SDK command: No .NET SDKs were found Error You just need to Completly Uninstall dotnet and then reinstall your dotnet SDK in your system. First of all, you need to uninstall Dotnet and aspnetcore by running this command in your terminal: sudo apt remove dotnet* and then remove aspnetcore: sudo apt remove aspnetcore* Now, You need to delete PMC Repo by running this command: sudo rm /etc/apt/sources.list.d/microsoft-prod.list Now, Your dotnet and aspnetcore are completely removed from your system. Then run sudo apt update. Then, You need to install .NET 6.0 by running this command: sudo apt install dotnet-sdk-6.0 You can find more instructions about this at github and your error is solved now, Thanks.
You intended to execute a .NET SDK command: No .NET SDKs were found
To Solve You intended to execute a .NET SDK command: No .NET SDKs were found Error You just need to Completly Uninstall dotnet and then reinstall your dotnet SDK in your system. First of all, you need to uninstall Dotnet and aspnetcore by running this command in your terminal: sudo apt remove dotnet* and then remove aspnetcore: sudo apt remove aspnetcore* Now, You need to delete PMC Repo by running this command: sudo rm /etc/apt/sources.list.d/microsoft-prod.list Now, Your dotnet and aspnetcore are completely removed from your system. Then run sudo apt update. Then, You need to install .NET 6.0 by running this command: sudo apt install dotnet-sdk-6.0 You can find more instructions about this at github and your error is solved now, Thanks.
Solution 1: Reinstall dotnet
You just need to Completly Uninstall dotnet and then reinstall your dotnet SDK in your system. First of all, you need to uninstall Dotnet and aspnetcore by running this command in your terminal.
sudo apt remove dotnet*
and then remove aspnetcore.
sudo apt remove aspnetcore*
Now, You need to delete PMC Repo by running this command.
sudo rm /etc/apt/sources.list.d/microsoft-prod.list
Now, Your dotnet and aspnetcore are completely removed from your system. Then run sudo apt update.
sudo apt update
Then, You need to install .NET 6.0 by running this command.
sudo apt install dotnet-sdk-6.0
You can find more instructions about this at github and your error is solved now, thanks.
Conclusion
It’s all About this error. I hope We Have solved Your error. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you.
Also, Read
- ZoneInfoNotFoundError: No time zone found with key
- Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.16
- Caused by: org.gradle.api.InvalidUserCodeException: Build was configured to prefer settings repositories over project repositories but repository ‘maven’ was added by build file ‘build.gradle’
- Caused by: org.gradle.api.InvalidUserCodeException: Build was configured to prefer settings repositories over project repositories but repository ‘maven’ was added by build file ‘build.gradle’
- Error: error:0308010C:digital envelope routines::unsupported