Skip to content

Can't use out-of-box because of MSBuild #834

@timsu92

Description

@timsu92

Summary

In README.md, it's suggested to install with a plugin manager and answering y when prompt. However, this is likely to stock (at least) in Ubuntu 22.04 in WSL2 because omnisharp-roslyn has stopped shipping mono and MSBuild. Both methods for installing in Linux and WSL will fail.

Environment

  • Ubuntu 22.04 (WSL 2)
  • Vim 8.2
  • most recent omnisharp-vim: 3799c45

Method to work

Since I use WSL2 and readme points out that having a .NET in Windows and modifying g:OmniSharp_translate_cygwin_wsl will result in a better performance, let's focus on it!

  1. Put in .vimrc:
    let g:OmniSharp_translate_cygwin_wsl = 1
  2. Run :OmniSharpInstall
  3. In Windows, install MSBuild by installing Build Tools for Visual Studio without any workload. (p.s this is suggested in issue of omnisharp-vscode

Althought I've solved the problem, I hope these can be done in the install script or by modifying readme.
What do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions