RefactoringEssentials icon indicating copy to clipboard operation
RefactoringEssentials copied to clipboard

RECS0154 is shown for generated code.

Open SebastianStehle opened this issue 3 years ago • 0 comments

Hi,

When using the analyzers in unit test project I get an error for the following code.

// <auto-generated> This file has been auto generated. </auto-generated>
using System;
[Microsoft.VisualStudio.TestPlatform.TestSDKAutoGeneratedCode]
class AutoGeneratedProgram {static void Main(string[] args){}}

The file comes from the TestSDK and is placed in the nuget folder. I have disabled the analyzer in the settings but it does not help.

SebastianStehle avatar Apr 26 '21 17:04 SebastianStehle