-
Notifications
You must be signed in to change notification settings - Fork 127
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
AssemblyName.xml descriptors are not processed from copyused assemblies #1410
Comments
I don't think we can process them on demand. Most XML formats allow specifying any assembly in their XML so we need to read them and process them. It'd also complicate the scenario when doing on-demand processing we need to load a new assembly and process it again. I think that switch is missing |
@marek-safar Could we get rid of the support for |
I think we'd need to phase it. This has been the original way to add descriptors and there is a decent chance that some of Xamarin libs will use it. We should add a warning first. |
|
@sbomer - given that we now process descriptors on demand (effectively) can this be fixed? That is should we add |
We could, but I'm not sure it's worth it. I'm slightly worried that it could somehow regress .NET5 scenarios either in terms of size or by activating latent XML errors. Probably rare, but possible. This issue only exists for the combination of If we do fix it we should do a sanity check by publishing a .NET5 or .netcoreapp3 WPF app. What do you think? |
If you think this should be very rare I would probably be OK taking the change. |
Let's "not fix this", we haven't run into this for more than a year, so it's not a problem. |
dotnet/runtime#40336 mentions warnings generated by invalid XML files in System.PrivateCoreLib. Such warnings show up with
<TrimMode>link</TrimMode>
but not<TrimMode>copyused</TrimMode>
. The difference is due to the checkhttps://github.com/mono/linker/blob/8f32ed57a05eeb0bae3790c4db75b316c3da76c7/src/linker/Linker.Steps/BlacklistStep.cs#L126
which prevents processing of XMLs for
copyused
assemblies - hiding the invalid XML (which was pointing to COM members only present on Windows, for example).I think the XML files should be processed on-demand (similar to #1164) only when an assembly is marked.
The text was updated successfully, but these errors were encountered: