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

[Mono.Android] [Preserve] now has [Obsolete(error:true)] #9109

Conversation

jonathanpeppers
Copy link
Member

Context: TobiasBuchholz/Plugin.Firebase#144 (comment)

Even since .NET 6 (in e604833), we have marked [Preserve] as [Obsolete]. However, you could still use the attribute thinking it might do something, while it actually does nothing.

Let's add in .NET 9:

  • error: true so you get a build error

  • An actual docs link (the best one I could find)

Context: TobiasBuchholz/Plugin.Firebase#144 (comment)

Even since .NET 6 (in e604833), we have marked `[Preserve]` as
`[Obsolete]`. However, you could still use the attribute *thinking* it
might do something, while it actually does nothing.

Let's add in .NET 9:

* `error: true` so you get a build error

* An actual docs link (the best one I could find)
@jonathanpeppers jonathanpeppers marked this pull request as draft July 15, 2024 21:36
@jonathanpeppers
Copy link
Member Author

Apparently, there are some cases where [Preserve] actually does something?!?

@jonathanpeppers
Copy link
Member Author

I'm going to rework this to:

  1. First, stop using [Preserve] in our code
  2. Figure out how to more effectively [Obsolete(error:true)]

@github-actions github-actions bot locked and limited conversation to collaborators Aug 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant