- Home /
Is it possible to use C# withUnity the same way it is on Windows?
I've just installed Ubuntu and planned to use it for programming - specifically for Unity + C# scripting. While there is a linux version of Unity, it seems that there isn't linux version for .Net framework(although there is a version of .Net Core - but it isn't the same right?)
So, can ubuntu users use Unity with the same possibilities as windows users? What i intend to do is use VS Code for scripting - it is available, but again - i can't get it to recognize my existing Unity project, as it says "The reference assemblies for framework ".NETFramework,Version=v3.5" were not found."
Unity uses the $$anonymous$$ono framework, which is an implementation of the .NET specification. It is currently a fairly old version of $$anonymous$$ono, but they're working on upgrading it to the latest. $$anonymous$$ono should be installed along with Unity so you shouldn't have any issues with references, so it seems perhaps something went wrong.
Someone here might answer (I don't know the answer), but you might try posting in the Linux Forum as well.
Answer by cgarossi · Jun 14, 2017 at 12:50 PM
Unity uses Mono, which is C# designed to run on multiple platforms.
It uses a subset of the .NET 3.5 runtime but is not actually .NET Framework. Some parts are not available simply because those parts are specific to a platform.
If you want to use platform specific code you would have to use compiler directives in order to include/exclude parts of the code when you target certain platforms.
In order for your project to compile under Ubuntu you'll need to find the parts that are Windows specific and change them.
http://www.mono-project.com/docs/about-mono/languages/csharp/
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
Flip over an object (smooth transition) 3 Answers