How can I mark a type or member deprecated in an assembly that I do not control?

Example. My colleagues should no longer use it Microsoft.VisualBasic.Collection, and I would like the build process to point them to the type of replacement. This is similar to the case ObsoleteAttribute, except that I cannot set the attributes in Microsoft.VisualBasic.Collection. Is there a way to achieve something like this (exception / prohibition of the type of frame or member for some project) without resorting to ugly hacks.

If not, what hacks?

Update: Visual Studio 2017 CE

+4
source share
1 answer

This does not apply ObsoleteAttribute- it means that Microsoft intends to remove this class.

@ChrFin, (aka linter) , , .

0

Source: https://habr.com/ru/post/1694654/


All Articles