-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Mark Assembly.CodeBase as obsolete #31127
Comments
Looks good. We should also mark it as namespace System.Reflection
{
public partial class Assembly
{
[Obsolete("Use Location instead.")]
public virtual string CodeBase { get; }
}
} |
Should we also consider obsoleting |
|
Just out of curiosity: Since those APIs are part of .NET Standard, what implications does marking APIs as obsolete have for .NET Standard? Since in .NET Standard, APIs cannot be removed, only added, does that mean you will only obsolete those APs but never remove them? Or will .NET Standard itself become obsolete due to the unification in .NET 5. |
Right, we do not have plans to remove any netstandard APIs. |
I started looking at this, but need a little clarification as I'm unfamiliar with the code structure. With my change, I'm getting the following errors where
Additionally, does this need something done per Better Obsoletions? How would I go about getting an |
@jeffhandley is working on the plan for better obsoletions IDs. You can leave the ID as TODO in the PR. |
@terrajobst Is marking it as cc @jeffhandley |
Per the non-goals of the better obsoletion spec, it is not expected that we'll mark I recommend we remove the |
Updated PR with the new Obsoletion stuff, and removed the |
Should we also look into
|
Was there an answer to this question?
|
Yes, @jkotas mentioned it above:
And the PR marked it. |
What about the |
Assembly.Location
andAssembly.CodeBase
are very similar, but not the same thing. To reduce confusion, we should mark it as obsolete.Reason
Having two things that are similar, but not identical always causes confusion. Here is an example.
As @jkotas said:
Proposed API
The text was updated successfully, but these errors were encountered: