microsoft / Microsoft.Unity.Analyzers

Roslyn analyzers for Unity game developers
MIT License
689 stars 74 forks source link

Suppression of IDE0029, IDE0031, IDE0051 does not work anymore in Visual Studio 17.12.1 #364

Closed JorisCleVR closed 2 days ago

JorisCleVR commented 2 days ago

Bug description

In the Error List of visual studio the following warning are available on Unity objects: IDE0029, IDE0031, IDE0051

To Reproduce

Steps or code to reproduce the behavior:

  1. Install Visual Studio 17.12.1 (Including Game development with Unity)
  2. Create IDE0029, IDE0031 on a Unity object
  3. Create IDE0051 by adding Start method to a MonoBehaviour

Expected behavior

These warnings are suppressed for Unity objects and inside of the MonoBehaviour

sailro commented 2 days ago

Hello @JorisCleVR

This issue is tracked here: https://developercommunity.visualstudio.com/t/Private-Unity-messages-incorrectly-marke/10779025

The root issue is in Roslyn, a component our analyzers depends on.

Regards