I use VS Code to code Unity. I’m just a newbie so I watched some posts on the Internet, and they said I have to install an external .NET SDK to code by VSCode. Now my computer is out of memory and I want to remove the external .NET. So should I do it? Please help me!!!
In that case: stay away from VS Code!
VS Code is not officially supported by Unity. Support is entirely on Microsoft, and several plugins from various developers. You will not easily get a stable development experience with VS Code unless you are able and willing to deal with issues such as the one you are having. Namely installing, updating, configuring and troubleshooting external frameworks and plugins.
Use the provided Visual Studio Community edition and get started. Unless of course you are on Linux, in that case your only choices are VS Code and Jetbrains Rider. On Mac, you can still use Visual Studio despite its deprecation.
You mean disk space?
Keep in mind that Unity editor, packages and projects easily amount to dozens of Gigabytes. You ought to have at least 20 GiB of free disk space on both the OS and project drives - that is after you installed Unity and created a project. You will need to free up more than just the .NET framework.
That’s really no different from Visual Studio. They share the same Microsoft-developed package on the Unity side, and use Microsoft-published packages on the IDE side. With that said, yeah. Visual Studio and Rider are in my experience far more stable out of the box.
It’s honestly not a good experience. It’s rooted in Xamarin Studio, which was based on MonoDevelop. It didn’t have feature parity with Visual Studio and felt clunky, and I would rather use VSC with its extension ecosystem.
To my knowledge, the SDK is needed for access to modern IDE features like code completion and analyzers/source generators. If you continue to use Visual Studio Code, you’ll need to have an installed SDK. I believe the same is true for Visual Studio, which will install one or several different .NET SDK versions for C#/Unity related workloads, and Rider which needs a compatible SDK. I don’t think you can avoid it if you want a usable code editor that’s better than typing into Notepad.
This is the first time I got into Unity since I deleted the .NET SDK. It is no longer coloring my variable types (Vector3) and giving me clues too. Should I reinstall .NET?
Yes. This was answered in the previous post.
So how can I download a lightweight .NET SDK? Though I deleted the previous one, I still get oom error while coding. T_T
The SDK comes as a single install. Features like support for ASP.NET Core and Windows Desktop may be uninstallable, but “lightweight” isn’t a real option. You’re encouraged to find other ways to clean up disk space.
I got it. Thank u.