Search code examples
c#visual-studio-codeomnisharp

VSCode. OmniSharp do not load right solution


In my work project, navigation is not working.

Folder that I need to open in VSCode is: c:\repoSVN\prj_ai_prjs_rc\. Solution that I want to load is: c:\repoSVN\prj_ai_prjs_rc\implementation\KRN\KRN.sln

When I see OmniSharp logs, I see that it loads wrong solution:

Starting OmniSharp server at 2017-11-27 09:57:44
Target: c:\repoSVN\prj_ai_prjs_rc\.build\02_Aure.Product.sln

No errors. Just loading solution and its projects. And there is nothing about KRN.sln


Solution

  • From VSCode documentation: When omnisharp is loaded right click its icon in the status bar and choose change projects, from there you can manually select your solution file.