-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Small cleanup for Lock in Mono #94275
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
Conversation
- Used the project property instead of disabling the compiler warning. Probably a bit cleaner, and would enable using Lock in other libraries to try it out. - Undid an unnecessary change from #87672
|
||
<EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles> | ||
|
||
<!-- CA2252: Opt in to preview features before using them (Lock) --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should it rather be in the shared src\libraries\System.Private.CoreLib\src\System.Private.CoreLib.Shared.projitems
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That would work better, updated
<StringResourcesName Condition="'$(StringResourcesName)' == ''">System.Private.CoreLib.Strings</StringResourcesName> | ||
<GenerateResourcesSubstitutions>true</GenerateResourcesSubstitutions> | ||
|
||
<!-- CA2252: Opt in to preview features before using them (for System.Threading.Lock) --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can also delete CA2252 pragmas from under src/libraries/System.Private.CoreLib
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lock
type in preview mode #87672