C
C#3mo ago
Qualy

project failed to load

I created a solution and projects on my laptop and am now trying to open them on my pc. However they are not loading correctly. C:\Users\qualy\OneDrive.Howest graduaat programmeren.Programming Basics\PRB-02-Variabelen\Prb.Variables.Operators\Prb.Variables.Operators.Wpf\Prb.Variables.Operators.Wpf.csproj : error : The SDK 'Microsoft.NET.Sdk' specified could not be found. C:\Users\qualy\OneDrive.Howest graduaat programmeren.Programming Basics\PRB-02-Variabelen\Prb.Variables.Operators\Prb.Variables.Operators.Wpf\Prb.Variables.Operators.Wpf.csproj
No description
32 Replies
Angius
Angius3mo ago
The SDK 'Microsoft.NET.Sdk' specified could not be found. Looks like you don't have the appropriate version of .NET SDK installed Check what version the project requires and install it
Qualy
QualyOP3mo ago
do u need a restart after installation
Angius
Angius3mo ago
No need, but it wouldn't hurt
Qualy
QualyOP3mo ago
might be cuz I didnt download .net 8.0 allthough I can create projects with it Imma install it now tho nope same thing
Angius
Angius3mo ago
dotnet --list-sdks will show you which SDKs you have
Qualy
QualyOP3mo ago
in what powershell?
Angius
Angius3mo ago
Sure
Qualy
QualyOP3mo ago
No description
Angius
Angius3mo ago
You have no SDKs installed, then dotnet --info My bet is you installed runtimes, not SDKs
Qualy
QualyOP3mo ago
I pressed on sdk
Angius
Angius3mo ago
Humor me, dotnet --info
Qualy
QualyOP3mo ago
No description
Qualy
QualyOP3mo ago
No description
Qualy
QualyOP3mo ago
smth mustve went wrong
Angius
Angius3mo ago
No SDKs installed
Sehra
Sehra3mo ago
wrong arch, it uses 32 bit
Qualy
QualyOP3mo ago
I installed x64
Sehra
Sehra3mo ago
the 32 bit is earlier in the path, there was a modix command for it
Angius
Angius3mo ago
$dotnetpath
MODiX
MODiX3mo 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
Angius3mo ago
'ere This should fix it
Qualy
QualyOP3mo ago
No description
Angius
Angius3mo ago
Ye Press enter
Qualy
QualyOP3mo ago
should work now or do I need to reinstall
Angius
Angius3mo ago
Should work now
Qualy
QualyOP3mo ago
No description
Angius
Angius3mo ago
Reopen Powershell and try again
Qualy
QualyOP3mo ago
o
No description
Qualy
QualyOP3mo ago
worked, gonna try open
Angius
Angius3mo ago
Nice
Qualy
QualyOP3mo ago
yess it loaded Imma try debug it works now thanks man lifesaver Im stressed asf I just made my first website check it out: http://localhost:5183/ (Im kidding btw)
Unknown User
Unknown User3mo ago
Message Not Public
Sign In & Join Server To View

Did you find this page helpful?