Contents
What happens when a package is deprecated on NuGet?
Currently, clients such as dotnet.exe and the NuGet Package Manager do not show the custom message. Once a package has been deprecated, its consumers are notified about it in the following ways (depending upon the client used). Available starting in Visual Studio 2019 version 16.3
What happens when you deprecate a method in Java?
Additionally, you can use the @deprecated Javadoc tag tell developers what to use instead. Using the annotation causes the Java compiler to generate warnings when the deprecated class, method, or field is used.
What does it mean to be deprecated in JDK?
Deprecation in the JDK. Deprecation is a notification to library consumers that they should migrate code from a deprecated API. In the JDK, APIs have been deprecated for widely varying reasons, such as: The API is dangerous (for example, the Thread.stop method).
When to use the @ deprecated tag in Javadoc?
Using the @deprecated Javadoc Tag. You can use the @deprecated tag to make Javadoc show a program element as deprecated. The @deprecated tag must be followed by a space or newline. In the paragraph following the @deprecated tag, explain why the item has been deprecated and suggest what to use instead.
Are there any deprecated packages in Visual Studio?
Available starting in Visual Studio 2019 version 16.3 Visual Studio warns about a deprecated package’s usage on the Installed tab. It will show a warning for the package and its deprecation information (including the reason it was deprecated and the alternate package to use instead, if present).
What’s the difference between deprecating and unlisting a package?
You can deprecate a package if you no longer maintain a package or if would like to encourage your package’s consumers to move to another package. Package deprecation is different than unlisting your package as explained below: Unlisting a package prevents its discovery because it is hidden in search results.
What to do if a package is no longer maintained?
If the package is no longer maintained, choose the Legacy option. If the specific version has a critical bug, choose the has critical bugs option. For any other reason, select Other. You can always specify an alternate recommended package (and version) and a custom message to the owners.