Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use Omnisharp with Dotnet SDK 8? #859

Closed
VitorCioletti opened this issue Feb 21, 2024 · 2 comments
Closed

How to use Omnisharp with Dotnet SDK 8? #859

VitorCioletti opened this issue Feb 21, 2024 · 2 comments

Comments

@VitorCioletti
Copy link

System: Ubuntu 22.04.3 LTS (WLS on Windows 10)
VIM: 8.2 (2019 Dec 12, compiled Dec 05 2023 17:58:57)
Dotnet: 8.0.102 (which comes with MSBuild 17.8.5)
Mono installed: 6.12.0.200

This is my first time installing vim plugins to use it in development as a full editor (so I am not sure exactly what I am doing). I would like to make it work with dotnet SDK 8 but I can't find a solution to make a simple project to work.

My problem is that I get false compilation errors that does not appear when I run "dotnet build".

image

I downgraded my dotnet to 6.0 and this same project worked fine. I believe it has something to do with MSBuild version as stated in the line 19.

This is what basically my .vimrc looks like.

image

Is this even supposed to work?

Thanks.

@nickspoons
Copy link
Member

Try adding let g:OmniSharp_server_use_net6 = 1 to your .vimrc, it should really be the default these days but I'm nervous about breaking backwards compatibility.

I'm not sure if that warning about msbuild version will still be an issue. If there are still problems, please post the full log from :OmniSharpOpenLog, not a screenshot of part of it.

@VitorCioletti
Copy link
Author

It worked fine. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants