C
C#2mo ago
MotoPapi

Why can I not see .NET SDKs'?

I installed C#, C# Dev Kit, and .NET Install Tool but whenever I try to run pnpm install in my project I get an error saying that no .NET SDK was found. I have no clue why it's not listing any SDK.
No description
No description
7 Replies
Jimmacle
Jimmacle2mo ago
did you download and install a SDK from here? https://dotnet.microsoft.com/en-us/download
Microsoft
Download .NET (Linux, macOS, and Windows)
Free downloads for building and running .NET apps on Linux, macOS, and Windows. Runtimes, SDKs, and developer packs for .NET Framework, .NET, and ASP.NET.
MotoPapi
MotoPapiOP2mo ago
I have
No description
Angius
Angius2mo ago
How did you install it?
MotoPapi
MotoPapiOP2mo ago
Ok I found the issue, For some reason there were two dotnet folders. One in Program Files(x86) and another in Program Files. The dotnet folder in Program Files(x86) did not have a sdk file. I just deleted the dotnet folder in Program Files(x86) and the issue was resolved.
Angius
Angius2mo ago
Ah, so an issue adjacent to $dotnetpath
MODiX
MODiX2mo ago
* Open powershell in a terminal in admin mode as in the following video: https://cdn.discordapp.com/attachments/569261465463160900/1157744344183341156/20230930-1822-10.7436061.mp4 * copy/paste the following script:
iex "& { $(irm https://gist.githubusercontent.com/tebeco/5c6cc0eee8c28fad3523008d58f83914/raw/d14890f540ae74ad72d950c48f6a242e9401d31e/fix-dotnet-path.ps1) }"
iex "& { $(irm https://gist.githubusercontent.com/tebeco/5c6cc0eee8c28fad3523008d58f83914/raw/d14890f540ae74ad72d950c48f6a242e9401d31e/fix-dotnet-path.ps1) }"
in case of an invalid setup detected, it will: * tell you that it did (or not) detected an invalid Path setup * in case some action are require it will ask you to Press Enter to confirm
Angius
Angius2mo ago
Sometimes Windows randomly decides to place the 32-bit .NET higher on the path than 64-bit

Did you find this page helpful?