C
C#2mo ago
Tiko

✅ my visual studio dont find "Microsoft.NET.Sdk"

on the image it is marked: One or more errors occurred while creating the project cour. The generated project content may be incomplete. The specified SDK 'Microsoft.NET.Sdk' was not found. C:\Users\User\Desktop\base\cour\cour.csproj I have a problem when I create a project in visual studio. I have already tested as a solution: -restarted my pc -delete visual studio, redownload it -repair it -download .Net SDK 9 and restart my pc
No description
29 Replies
hime
hime2mo ago
in the terminal if you type dotnet --list-sdks what you get
Tiko
TikoOP2mo ago
No description
Sehra
Sehra2mo ago
what does dotnet --info say?
Tiko
TikoOP2mo ago
No description
Tiko
TikoOP2mo ago
No description
Sehra
Sehra2mo ago
your path order is wrong, it's finding x86 before x64
Tiko
TikoOP2mo ago
how i repair
Sehra
Sehra2mo ago
either uninstall the x86 versions, or start - edit the system env variables system variables - path, remove the entry pointing to c:\program files (x86)\dotnet
Tiko
TikoOP2mo ago
No description
Sehra
Sehra2mo ago
those instructions were for you, not powershell
hime
hime2mo ago
Just try running winget install Microsoft.Dotnet.SDK.9
Sehra
Sehra2mo ago
from the images yesterday it was already installed, but path is wrong so it picks x86 version
Tiko
TikoOP2mo ago
No description
Sehra
Sehra2mo ago
as i said, you need to remove the C:\Program Files (x86)\dotnet entry from your system path. i have no idea what that would be in french
Tiko
TikoOP2mo ago
No description
Tiko
TikoOP2mo ago
which
Sehra
Sehra2mo ago
C:\Program Files (x86)\dotnet\
Tiko
TikoOP2mo ago
it is good i delete it
Sehra
Sehra2mo ago
good? as in it works now?
Tiko
TikoOP2mo ago
YESSSSSSSSSSSSSSSSSSSSSSSSS TY I LOVE U
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
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
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
Sehra
Sehra2mo ago
looks like x86 .net 5 desktop was installed, and those old ones add x86 path on x64. the newer installers does not
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
Tiko
TikoOP2mo ago
how i see that
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
Tiko
TikoOP2mo ago
i dont remenber sor
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View

Did you find this page helpful?