ASP0027: Unnecessary
Value | |
---|---|
Rule ID | ASP0027 |
Category | Usage |
Fix is breaking or non-breaking | Non-breaking |
Cause
An unnecessary public Program
class declaration within the Program.cs
file.
Rule description
Suggests to remove the unnecessary public Program
class declaration as this is no longer required to make the generated Program
class public in ASP.NET Core apps.
How to fix violations
To fix a violation of this rule, remove the public Program
class declaration within the Program.cs
file.
When to suppress warnings
The severity level of this diagnostic is Information. While the warning can be suppressed if necessary, it is recommended to remove the declaration as it is no longer required.
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
ASP.NET Core