Skip to content
This repository has been archived by the owner. It is now read-only.

RECS0154 is shown for generated code. #387

Open
SebastianStehle opened this issue Apr 26, 2021 · 0 comments
Open

RECS0154 is shown for generated code. #387

SebastianStehle opened this issue Apr 26, 2021 · 0 comments

Comments

@SebastianStehle
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant