✅ ✅ 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
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•2y ago
Message Not Public
Sign In & Join Server To View
I ve done it several times
Are you sure the installation is successful?
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
also he has no SDKs. only runtime
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
o right
what next ?
"Environment Variables..."
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
so now is it okay ?
yes but you have to restart your other apps as @TeBeClone mentioned
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
don't I need to refresh my PC ?
usually no
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
👍
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
@TeBeClone how many people... have you had to fix this issue on? I have helped at least 50...
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
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 fixUnknown User•2y ago
Message Not Public
Sign In & Join Server To View
vs code is okay I think there won't be problems with it
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
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
last check vor VS
luckily the UI is okay
Working !
thank you guys for the help )
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
I just needed the vs code cuz it eats less resources
Also how can I prevent such problems in future ?
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
the whole corruption of .net
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
no matches
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
nope
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
x64 for Windows this is what I installed
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
hah.. okay then
Thank you once more, good luck
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
never used before
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.