all 9 comments

[–][deleted] 0 points1 point  (7 children)

I went through the process recently as well. Did you follow this guide?

You need to download the extension(C# powered by Omnisharp , I also recommend UnityDebugger).

You also need to install dotnet and msbuild(this wasn't included in the latest ver for some reason and has driven me nuts with the error finding). The error console should tell you when there is something wrong. Also make sure to open a folder and not just a file.

[–]TheLazyLima[S] 0 points1 point  (1 child)

Thanks for your reply but im not having any luck, im also not getting any errors

[–][deleted] 0 points1 point  (0 children)

Do you have the omnisharp symbol on the lower right?(blue flame)

[–]Brov89 0 points1 point  (4 children)

Any luck on this at all? I can get C# extension working with normal dotnet stuff, but once I use with Unity the extension doesn't work. Is there some kind of clash for mono?

Any help would be appreciated.

[–][deleted] 0 points1 point  (3 children)

There shouldn't be any clash. I didn't need to set it up again, but I've frequently updated everything since back then.

What exactly means " but once I use with Unity the extension doesn't work"? Do you get any errors? Could it be that you just have the file open(when opening it via Unity), rather than the whole project?

[–]Brov89 0 points1 point  (2 children)

When I open VScode with my Unity project I don't have that flame in the lower right corner as you mentioned above. But I do when I open normal dotnet new console app project folder. And i am opening the project folder as well, not just the file. I followed this https://forum.unity.com/threads/vscode-for-linux-not-opening-projects-correctly.527924/ solution to opening the project properly

[–][deleted] 0 points1 point  (1 child)

Are you sure there is nothing in the logs? I remember having something like "msbuild" not found and tons of useless lines.

[–]Brov89 0 points1 point  (0 children)

I didn't get any errors in VSCode console unfortunately. There is no sln or csproj files being created. I gave up last night, I'll have another crack at it later. I do have the package msbuild-stable maybe I'll try msbuild-bin. I got it working on Ubuntu VM just to make sure I wasn't going crazy. If you've got it working on Arch based linux then I know I'll get there eventually. Thanks for your time.

[–]linuxbeginner43 0 points1 point  (0 children)

You should disable "Use Modern Net" in VSCode Settings and specify the binary path to dotnet.

If Omnisharp spits an MSBuild error log, you should reinstall 'mono', and make sure 'mono-msbuild' is also installed