Skip to content

Suppressions are sometimes not applied correctly #5186

Open
@georgii-borovinskikh-sonarsource

Description

This happened on slvs-vs2019-pro-16-7 first in file
Taint_CSharp_NetCore_WebAppReact/Suppressions_CSharp.cs when I was testing 7.6.0.82886 release candidate

None of the suppressions were applied.

I tried to repro it on my machine and I could in vs22 with a local build.
After I debugged it I figured a few things out.

  • The file in AppData\Local\Temp\SLVS\Roslyn was generated correctly
  • I could not debug the roslyn diagnostic suppressor

After that I deleted the generated file and updated the binding. That shouldn't have changed anything, but the suppressions were now applied correctly. I tried doing the same on the VM, but it didn't help. I tried a few things (downgrade to 7.5 release, update binding, restart the VM), but the issue still persisted. When I confirmed that it's not a regression and it happens on 7.5, I continued with the release.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions