-
Notifications
You must be signed in to change notification settings - Fork 416
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
OmniSharp fails to load projects due to Microsoft.CodeAnalysis.CSharp.CodeStyle
analyzer reference
#2161
Comments
OmniSharp does not support |
I'm not referencing that version of |
I also have a project in the solution that uses But what's weird is that if I disable the use of I'm really not sure where the 4.x reference could be coming from. |
Good news. I have a relatively simple project that repros the issue: https://github.com/alexrp/system-terminal Just clone the master branch and open the folder in VS Code with the latest OmniSharp and .NET 6 Preview 4 installed. I assume this is happening (somehow) because this project uses |
Narrowed it down: I guess these analyzers are compiled against a newer Roslyn version. I've worked around this for now by doing: <EnforceCodeStyleInBuild Condition="'$(DesignTimeBuild)' != 'true'">true</EnforceCodeStyleInBuild> |
Resolved by #2175 |
Loading one of my larger solutions results in the OmniSharp log being flooded with the following:
Unfortunately, it's going to be very hard to reduce this solution to a reasonable repro that I can post here so I'm hoping the error might ring a bell to someone.
The text was updated successfully, but these errors were encountered: