Skip to content
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

LFT-1285 - Suppress sync generator in .NET Core build #366

Merged
merged 1 commit into from
Aug 1, 2024

Conversation

j3parker
Copy link
Member

@j3parker j3parker commented Aug 1, 2024

We don't need the sync implementations but we especially don't want the obligations to implement sync APIs in .NET Core. The spirit of the generator is to make migrating to sync in .NET Framework sustainable, the idea generally is that in .NET Core we won't rely on sync APIs.

We don't need the sync implementations but we especially don't want the obligations to implement sync APIs in .NET Core. The spirit of the generator is to make migrating to sync in .NET Framework sustainable, the idea generally is that in .NET Core we won't rely on sync APIs.
@j3parker j3parker force-pushed the no-sync-.net-core branch from 7b48a74 to eeebd4d Compare August 1, 2024 17:58
@j3parker
Copy link
Member Author

j3parker commented Aug 1, 2024

Here's ILSpy showing the net60 build (top) without sync overloads in IPublicKeyDataProvider, and the net472 build (below) with them.

image

@@ -10,6 +10,10 @@
<IncludeSymbols>true</IncludeSymbols>
</PropertyGroup>

<ItemGroup>
<CompilerVisibleProperty Include="SuppressSyncGenerator" />
</ItemGroup>
Copy link
Member Author

Choose a reason for hiding this comment

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

Hm, I'll read up on the docs, I was trying to make it so this was not necessary here. I'll probably need another bump of analyzers to get rid of this now.

@j3parker j3parker marked this pull request as ready for review August 1, 2024 18:00
@j3parker j3parker requested a review from omsmith as a code owner August 1, 2024 18:00
@j3parker j3parker changed the title Suppress sync generator in .NET Core build LFT-1285 - Suppress sync generator in .NET Core build Aug 1, 2024
@j3parker j3parker merged commit 2ed81b0 into master Aug 1, 2024
2 checks passed
@j3parker j3parker deleted the no-sync-.net-core branch August 1, 2024 18:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants