OmniSharp / omnisharp-roslyn

OmniSharp server (HTTP, STDIO) based on Roslyn workspaces
MIT License
1.78k stars 419 forks source link

Feature: Resolve Windows path for project assemblies inside wsl #2561

Open reaz1995 opened 1 year ago

reaz1995 commented 1 year ago

Hello, It's possible to add support for Windows assemblies paths inside wsl? I use nvim in wsl for Unity, Unity generate .csproj files with Windows paths, since Unity and all its assemblies are installed on Windows. Windows paths cause omnisharp-roslyn to fail, i have script to watch for file changes and auto change paths in all .csproj to linux format then after restarting lsp it working fine. It would be great to make it work without any additional scripts an it would fix issues for VScode and nvim users.

DrPumpKing1 commented 3 days ago

Hi, is this resolved? I have the same issue

reaz1995 commented 3 days ago

@DrPumpKing1 Yes, i solved this issue with Unity only. Im doing a project in Unity currently so i got some time to mess around with Unity. Here my repo, how i made it work. https://github.com/reaz1995/UnityNvimSupport

If you want solution which works outside unity, just write a script which will translate paths from win to wsl/linux in .csproj.

DrPumpKing1 commented 3 days ago

Wow, I just try it. It solved my problem. Thank you so much.