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

C# 1.25.0 causing code editing issues #5245

Closed
rkb-ravi opened this issue May 30, 2022 · 5 comments
Closed

C# 1.25.0 causing code editing issues #5245

rkb-ravi opened this issue May 30, 2022 · 5 comments

Comments

@rkb-ravi
Copy link

Finally found the solution.
Downgrading C# extension to 1.24.4 worked.
Its a problem with C# 1.25.0 update that caused problems with outlines; which also caused problem with C# editing support, including Syntax Highlighting, IntelliSense, Go to Definition, Find All References, etc. Downgrading to previous version, solved these issues :)

Originally posted by @rkb-ravi in microsoft/vscode#150406 (comment)

@2151891911
Copy link

The solution that actually works with no downgrade is a workaround. Install Visual Studio Build Tools 2022 ( and choose the specific MSBuild instances that you need.

Of course, setting the setting into false ("omnisharp.useModernNet" : false) will not bring an MSBuild into your computer.

@gfigueras-sage
Copy link

Having the same issue. Also, tests can't be run or debugged individually.

@filipw
Copy link
Contributor

filipw commented May 31, 2022

Please see the announcement https://github.com/OmniSharp/omnisharp-vscode#the-c-extension-no-longer-ships-with-an-included-mono--msbuild-tools

and the related issue #5120

TL;DR

  • ensure .NET SDK 6 is installed
  • for .NET Core (and newer) development this should be enough
  • for Unity / .NET Framework development, set "omnisharp.useModernNet" : false and ensure global MSBuild is installed on your machine - either using VS 2022 Build Tools (Windows) or using latest Mono Preview (*nix)

@filipw filipw closed this as completed May 31, 2022
@mzvast
Copy link

mzvast commented Feb 17, 2023

Having the same issue. Downgrade to 1.24.4 worked

@itatharopanthayanantham

Using 2.0.376, recently updated. Having the same issue.

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

6 participants