You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
VerbAttribute current accepts a string array for aliases, making it non-compliant with CLS standards.
To Reproduce
Create a solution targeting .NET Framework 4.8
Create a project which targets .NET Framework 4.8 AND .NET Standard 2.1: <TargetFrameworks>net48;netstandard2.1</TargetFrameworks>
Create a class which uses a Verb attribute (in either project) such as:
[Verb("MyVerb", HelpText = "MyVerb HelpText")]
public class MyClassWithVerb { }
Expected behavior
No code analysis/compiler warnings.
Additional context
The following code analysis compiler warning is received when using VerbAttribute:
Severity Code Description Project File Line Suppression State
Warning CS3016 Arrays as attribute arguments is not CLS-compliant MyProject C:\Path\To\Source\MyClass.cs 14 Active
The text was updated successfully, but these errors were encountered:
Describe the bug
VerbAttribute current accepts a string array for aliases, making it non-compliant with CLS standards.
To Reproduce
<TargetFrameworks>net48;netstandard2.1</TargetFrameworks>
Expected behavior
No code analysis/compiler warnings.
Additional context
The following code analysis compiler warning is received when using
VerbAttribute
:The text was updated successfully, but these errors were encountered: