-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
[Feature Request]: .NET 6 Target with Trimming #2882
Comments
MEF and NativeAot? Don't know if that will work. |
Is this referring to the Managed Extensibility Framework? Edit: Yes it is. |
Even if trimming isn't feasible, do you mind if I do a pull request for PolySharp and .NET 6? |
I don't see a need to introduce PolySharp here. We should be able to use ReferenceAssemblyAnnotator for .NET Core 2; and we shouldn't need anything extra at all for .NET 6? |
If nothing else, you'll be able to use However, PolySharp also inserts numerous other classes, such as |
Unless a customer specifically asks for that we won't do it. Just because is not a valid justification. |
It sounds like I am not welcome here. |
Context
A .NET 6 target for the decompiler project with trimming would allow this to be used in trimmed or NativeAOT-compiled applications. This allows for applications to be smaller, faster, and more independent of user software installations.
Issues to be handled
Linq
polyfills need excluded on .NET 6 with preprocessor directives.ResXResourceWriter.cs
usesTypeDescriptor.GetConverter
andBinaryFormatter.Serialize
.UniversalAssemblyResolver.cs
callsType.GetType("Mono.Runtime")
which I think can be safely excluded with a preprocessor directive on .NET 6.Nullable Attributes
The issue mentioned in the last bullet point still hasn't been resolved. However, I have some alternatives:
Both of these are more actively maintained, and neither of them exhibit the issue that prevents multi-targeting.
On a more practical note, PolySharp has support for
MemberNotNullAttribute
andMemberNotNullWhenAttribute
, which ReferenceAssemblyAnnotator does not.The text was updated successfully, but these errors were encountered: