vscode-csharp: Add option to disable "some projects had problem opening" warning popup

In the latest version of VS Code, where the alerts are shown in the bottom right, I seem to get a stupid amount of these during a re-build.

“Some projects have trouble loading. Please review the output for more details.” “Some projects have trouble loading. Please review the output for more details.” “Some projects have trouble loading. Please review the output for more details.” . . . . Did we have a way of disabling this message? It’s showing 10 times during a build, and it’s annoying the life out of me.

It’s trying to warn me about using 4.6.1 references in a netcoreapp2 project (which I know might blow up, but I’m aware of the consequences and what I’m doing here).

[warn]: OmniSharp.MSBuild.ProjectLoader
        Package 'FluentMigrator.Runner 1.6.2' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETCoreApp,Version=v2.0'. This package may not be fully compatible with your project.

Any way I can either disable all omnisharp popups or this ProjectLoader WARN in particular?

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 8
  • Comments: 15 (3 by maintainers)

Commits related to this issue

Most upvoted comments

For whoever lands here looking for an answer, add the following to user settings

"omnisharp.disableMSBuildDiagnosticWarning": true

@rchande Sorry if this was unclear in my OP, but this issue is not with the location of the pop-up. It’s with the pop-ups presence in the first place. I don´t care it was moved from top center to bottom right. I care with the frequence of which I have to hit ESC to get rid of pop-ups that really are build/restore WARNs. This WARN msg could easily have been put into the build log instead of a pop-up, similarly to what VS does.

@DustinCampbell Yeah, I’m aware of ESC closing pop-ups. I just don’t get why OmniSharp has to push this in my face. Or why I need to hit ESC this often at all.

This is the second issue I’ve raised with OmniSharp pushing pop-ups in VS Code for no real good reason (imo). Am I really the only one finding pop-ups as a concept of feedback really intrusive? A pop-up should be last resort imo (ERROR/FATAL).

Can I ask in general - why are many of these OmniSharp WARNs turning into a pop-up? Pop-ups are so intrusive in the UI. In full blown Visual Studio they are kept in the debug log/ error log, which one can look into if one wants.

Thanks @tewarid this was driving me nuts with ~40 projects.

@johnkors: A big part of the problem here is that there’s no way to really tell whether a warning or error that occurs during project load is fatal or not. I agree that it’s probably OK to provide an option to disable this particular popup. However, setting that can hide the popup in cases where it’s more meaningful for you. In that scenario, you might find (for example) that IntelliSense simply stops working, leaving you scratching your head.

@JohnAnthony : It’s not about blame – it’s about bugs getting to the right people. The issue you linked is clearly a situation where an issue was filed on the main VS Code repo that was clearly meant for the C# extension for VS Code.

@johnkors : In the meantime, did you know that a single ESC key press can dismiss all of the popups?

@johnkors There were no changes in the extension. VS Code changed how they display notifications (https://code.visualstudio.com/updates/v1_21#_new-notifications-ui). I would recommend filing bugs in their repo with feedback.

@johnkors This is a good feature request–thanks for filing.