C
C#2mo 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
Angius2mo 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
QualyOP2mo ago
do u need a restart after installation
Angius
Angius2mo ago
No need, but it wouldn't hurt
Qualy
QualyOP2mo 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
Angius2mo ago
dotnet --list-sdks will show you which SDKs you have
Qualy
QualyOP2mo ago
in what powershell?
Angius
Angius2mo ago
Sure
Qualy
QualyOP2mo ago
No description
Angius
Angius2mo ago
You have no SDKs installed, then dotnet --info My bet is you installed runtimes, not SDKs
Qualy
QualyOP2mo ago
I pressed on sdk
Angius
Angius2mo ago
Humor me, dotnet --info
Qualy
QualyOP2mo ago
No description
Qualy
QualyOP2mo ago
No description
Qualy
QualyOP2mo ago
smth mustve went wrong
Angius
Angius2mo ago
No SDKs installed
Sehra
Sehra2mo ago
wrong arch, it uses 32 bit
Qualy
QualyOP2mo ago
I installed x64
Sehra
Sehra2mo ago
the 32 bit is earlier in the path, there was a modix command for it
Angius
Angius2mo ago
$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
'ere This should fix it
Qualy
QualyOP2mo ago
No description
Angius
Angius2mo ago
Ye Press enter
Qualy
QualyOP2mo ago
should work now or do I need to reinstall
Angius
Angius2mo ago
Should work now
Qualy
QualyOP2mo ago
No description
Angius
Angius2mo ago
Reopen Powershell and try again
Qualy
QualyOP2mo ago
o
No description
Qualy
QualyOP2mo ago
worked, gonna try open
Angius
Angius2mo ago
Nice
Qualy
QualyOP2mo 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 User2mo ago
Message Not Public
Sign In & Join Server To View

Did you find this page helpful?