C
C#3w 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
hime3w ago
in the terminal if you type dotnet --list-sdks what you get
Tiko
TikoOP3w ago
No description
Sehra
Sehra3w ago
what does dotnet --info say?
Tiko
TikoOP3w ago
No description
Tiko
TikoOP3w ago
No description
Sehra
Sehra3w ago
your path order is wrong, it's finding x86 before x64
Tiko
TikoOP3w ago
how i repair
Sehra
Sehra3w 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
TikoOP3w ago
No description
Sehra
Sehra3w ago
those instructions were for you, not powershell
hime
hime3w ago
Just try running winget install Microsoft.Dotnet.SDK.9
Sehra
Sehra3w ago
from the images yesterday it was already installed, but path is wrong so it picks x86 version
Tiko
TikoOP3w ago
No description
Sehra
Sehra3w 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
TikoOP3w ago
No description
Tiko
TikoOP3w ago
which
Sehra
Sehra3w ago
C:\Program Files (x86)\dotnet\
Tiko
TikoOP3w ago
it is good i delete it
Sehra
Sehra3w ago
good? as in it works now?
Tiko
TikoOP3w ago
YESSSSSSSSSSSSSSSSSSSSSSSSS TY I LOVE U
Unknown User
Unknown User3w ago
Message Not Public
Sign In & Join Server To View
MODiX
MODiX3w 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 User3w ago
Message Not Public
Sign In & Join Server To View
Sehra
Sehra3w 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 User3w ago
Message Not Public
Sign In & Join Server To View
Tiko
TikoOP3w ago
how i see that
Unknown User
Unknown User3w ago
Message Not Public
Sign In & Join Server To View
Tiko
TikoOP3w ago
i dont remenber sor
Unknown User
Unknown User3w ago
Message Not Public
Sign In & Join Server To View

Did you find this page helpful?