-
Notifications
You must be signed in to change notification settings - Fork 470
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Port FxCop rule CA2232: MarkWindowsFormsEntryPointsWithStaThread #545
Comments
@mavasani Is it worth moving/opening a ticket un dotnet/runtime regarding all the CA rules that are still awaiting for port? Some might no longer be relevant or context/recommendation might have changed sightly. |
@Evangelink That seems reasonable to do for all .NET API related rules. |
Are you considering guidelines related ones (like implement serializable correctly, do this when doing a serialization method....) to also be part of the .NET API? |
Yes |
Best to implement this in https://github.com/dotnet/winforms/tree/main/src/System.Windows.Forms.Analyzers See dotnet/runtime#79602 (comment) I'll open an issue on dotnet/winforms and close this one. |
Duplicate of dotnet/winforms#8384 |
@mavasani winforms decided to not implement this analyzer: dotnet/winforms#8384 Do we still want to implement it here? |
Title: Mark Windows Forms entry points with STAThread
Description:
STAThreadAttribute indicates that the COM threading model for the application is a single-threaded apartment. This attribute must be present on the entry point of any application that uses Windows Forms; if it is omitted, the Windows components might not work correctly.
Dependency: None
Notes:
The text was updated successfully, but these errors were encountered: