-
Notifications
You must be signed in to change notification settings - Fork 10
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
ObsoleteAttribute inheritance #18
Comments
As I understood the real cause of the problem, the ObsoleteAttribute has Inherited=false and a copy of that attribute should be added to the generated source so compiler would not generate warning. I don't have enough free time at the moment and will try to solve this and another issue by the end of this year. |
I've made nuget prerelease package 1.0.30-pre that should fix this issue. |
thanks. It work for me. |
Nice source generator. Thanks.
If i want delegate implementation to interface with Obsolete methods, i have compilation warnings CS0618.
https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-messages/cs0618?f1url=%3FappId%3Droslyn%26k%3Dk(CS0618)
For example, i want delegate Nlog.ILogger implmentation.
NLog source coge:
Generated code:
I think, we want nesting Obsolete attribute.
The text was updated successfully, but these errors were encountered: