When a P/Invoke method has an [Obsolete] attribute on it, any code-gen overload methods should retain that attribute. They are currently dropped.
Also, when the code-gen'd methods call the original P/Invoke, they produce warnings due to calling an Obsolete method. This should be fixed by suppressing the warning around this code.
When a P/Invoke method has an
[Obsolete]
attribute on it, any code-gen overload methods should retain that attribute. They are currently dropped.Also, when the code-gen'd methods call the original P/Invoke, they produce warnings due to calling an Obsolete method. This should be fixed by suppressing the warning around this code.
As found in #247's
SHGetFolderPath
method.