-
Notifications
You must be signed in to change notification settings - Fork 1k
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 #8384
Comments
If it was decided not to implement this analyzer in dotnet/winforms, please make sure dotnet/roslyn-analyzers#545 is reopened. |
It looks like you've copy-pasted the wrong wording ;) |
Fixed now. Thanks for noting! |
@merriemcgaw Why this was closed? |
Sorry the justification got missed. As our templates have this already and the runtime error you get is pretty clear we don't feel it has enough value. |
It's worth noting that some developers are trying to run |
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.
https://learn.microsoft.com/en-us/visualstudio/code-quality/ca2232
The text was updated successfully, but these errors were encountered: