Is there a csproj target or property that I can use to differentiate the automatic compilation that Roslyn LSP runs to give me diagnostics on VSCode from actual explicit build compilation?
I need to have different csproj elements when running on IDE vs when building. But I don't want to change the build (e.g. by adding extra MSBuild properties via command-line).
Is there some MSBuild target like a "pre-lint" or a property like a "IDE=true" which is already automatically added/called by Roslyn or Omnisharp only when linting on the IDE (i.e. when getting errors/warnings squiggles automatically when typing, not when running a build task)?
csctask which invokes the C# compiler. Although it may be reading the project file, the editor is not running MSBuild to produce the "errors/warnings squiggles".noneitem group, instead of thecompileitem group, does that resolve the issue?