close

[Solved] You intended to execute a .NET SDK command: No .NET SDKs were found

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?

  1. 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.

  2. 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

Leave a Comment