Skip to content

Conversation

kouvel
Copy link
Contributor

@kouvel kouvel commented Nov 1, 2023

  • 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 Expose a Lock type in preview mode #87672

- 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
@kouvel kouvel added this to the 9.0.0 milestone Nov 1, 2023
@kouvel kouvel requested a review from marek-safar as a code owner November 1, 2023 20:09
@ghost ghost assigned kouvel Nov 1, 2023

<EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles>

<!-- CA2252: Opt in to preview features before using them (Lock) -->
Copy link
Member

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?

Copy link
Contributor Author

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) -->
Copy link
Member

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

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kouvel kouvel merged commit 13b4315 into dotnet:main Nov 2, 2023
@kouvel kouvel deleted the MonoLockFix branch November 2, 2023 18:31
@ghost ghost locked as resolved and limited conversation to collaborators Dec 2, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants