How to generate .sln files in Unity 5.2 ( no Sync MonoDevelop Project option anymore)

In the latest version of Unity ( 5.2) there is no “Assets > Sync MonoDevelop Project” in the menu like before, only “Open C# Project”.

I use Sublime Text and I need to be able to generate those .sln manually so that OmniSharp reads them and generate Auto-completion and other IntelliSense features for the project. How can I do that?

It is NOT working for me in Unity 2018 with Sublime Text 3. “Open C# Project” just opens empty file with no name and does not generate anything.

To RE-GENERATE solution (*.sln) and project files you have to:

  1. switch back external script editor to Visual Studio
  2. Assets → Open C# Project
  • at this stage .sln and .csproj should be generated
  1. switch back to sublime as external editor.

I use SublimeText too.

Assets > Open C# Project

I’ll just leave it here…

I made utility: SyncSolutionUtilities

Examples:

-Use from editor: Unity menu -> Assets -> Sync C# Solution

-Use from script: SyncSolutionUtilities.Sync(bool logsEnabled)

[154370-syncsolutionutilities.zip|154370]

I am sure this is outdated, but this needs to set in order for the OP solution to work