-
-
Notifications
You must be signed in to change notification settings - Fork 49
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
What's the purpose of adding TypeForwardedTo
attributes?
#90
Comments
In case you generate attributes as |
Like if you publish lib A ver 1, but in ver 2 change PolySharp settings, so this type is no longer generated. |
Find a document about the type forwarding, hope it helps |
In #86 you said
Could you please elaborate a little bit more on this? What exact problem does it solve to add
TypeForwardedTo
attributes in target frameworks where the type exists?For example, when multi-targeting
net7.0;net6.0;netstandard2.0
the source generator produces this for .NET 6 and .NET 7 targets:If I add
<PolySharpExcludeTypeForwardedToDeclarations>true</PolySharpExcludeTypeForwardedToDeclarations>
they are not generated and everything seems to work fine. Am I missing something?The text was updated successfully, but these errors were encountered: