✅ ✅ Problem with .NET SDK / C# in general

If I remember right the problems started after I installed Eclipse for Java. The main problem is, that when I write the command __dotnet --version__ in cmd (both in Windows or VS Code command prompt) appears the following [img. 2]. When I tried to create a project in VS Code using its new features I said that .NET SDK cannot be located [img. 1] And finally, my visual studio 2022 17.6 is crushed absolutely I cannot even run a Hello world command. In the end I ve remembered that this can be also because of unity cuz I changed there something while coding. If anybody can pls help cuz I have alr reinstalled both VS and VS Code also the .NET SDK but nothing helped.
44 Replies
Buddy
Buddy2y ago
C# is a project based language, which means you need to create a new project, then also open the project file. You cannot simply open the folder. You also do not have the dotnet SDK. https://dotnet.microsoft.com/en-us/download You would want to download .NET 7.0 SDK
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Axel de En Guardis
I ve done it several times
Buddy
Buddy2y ago
Are you sure the installation is successful?
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
ZacharyPatten
ZacharyPatten2y ago
also he has no SDKs. only runtime
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
ZacharyPatten
ZacharyPatten2y ago
o right
Axel de En Guardis
what next ?
ZacharyPatten
ZacharyPatten2y ago
"Environment Variables..."
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Axel de En Guardis
so now is it okay ?
ZacharyPatten
ZacharyPatten2y ago
yes but you have to restart your other apps as @TeBeClone mentioned
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Axel de En Guardis
don't I need to refresh my PC ?
ZacharyPatten
ZacharyPatten2y ago
usually no
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Axel de En Guardis
👍
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
ZacharyPatten
ZacharyPatten2y ago
@TeBeClone how many people... have you had to fix this issue on? I have helped at least 50...
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
ZacharyPatten
ZacharyPatten2y ago
it should be part of the install process to have the currently installing dotnet path be preferred over any existing one... then if people just reinstalled dotnet it would self fix
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Axel de En Guardis
vs code is okay I think there won't be problems with it
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
ZacharyPatten
ZacharyPatten2y ago
if you are new to C# you should really stick to Visual Studio. there are some things about VSCode that don't make it very user friendly for beginners
Axel de En Guardis
last check vor VS luckily the UI is okay Working ! thank you guys for the help )
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Axel de En Guardis
I just needed the vs code cuz it eats less resources Also how can I prevent such problems in future ?
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Axel de En Guardis
the whole corruption of .net
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Axel de En Guardis
no matches
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Axel de En Guardis
nope
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Axel de En Guardis
x64 for Windows this is what I installed
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Axel de En Guardis
hah.. okay then Thank you once more, good luck
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Axel de En Guardis
never used before
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server