Skip to content

OmniSharp.exe using Windows Subsystem for Linux #316

Open
@frondeus

Description

I wonder, if I could use emacs25 on WSL (Bash on Ubuntu on Windows) (it's working OOB after Creators Update) with OmniSharp-Roslyn.

I know that

net46 build requires mono (>=4.8.0) if it is run on a platform other than Windows.
And I want to avoid this by using native OmniSharp-Roslyn.

After Creators Update we gained

Windows <-> Linux Interop

So my question is - can I use it?

I tried to use scripts like:

#!/bin/sh
set -e
/mnt/c/omnisharp/OmniSharp.exe "$@"

and

#!/bin/sh
set -e # based on Cyngwin script.
/mnt/c/omnisharp/OmniSharpWrapper.exe "C:\omnisharp\OmniSharp.exe" "$@"

I also tried

(setq omnisharp-server-executable-path "/mnt/c/omnisharp/OmniSharp.exe")

I can start OmniSharp manually and it's listening on 2000, so maybe I could just attach emacs to it (but I'm not sure how, I have errors like Start it with 'omnisharp-start-omnisharp-server' first).

I know I can use cyngwin (and it's working) but ... WSL seems to be fun!

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions