-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Libraries are missing Unsupported platforms annotations when implementation exists for multiple RIDs #49278
Comments
Tagging subscribers to this area: @safern, @ViktorHofer, @Anipik Issue DetailsUnsupported ref libraries are not correctly annotated or not annotated at all when complex build conditions exist. I don't know what's the underlying condition but it seems to happen for at least a few in the current build
This is caused #49201 problem and I checked only a few libraries so not sure how widespread the problem is.
|
This is .NET6 P1 issue not 5.0. |
It does have several targets including Android, doesn't have a cross-platform target, for now, i could suggest only add
Could add assembly level SupportedOSPlaform("windows"), SupportedOSPlaform("Linux"), SupportedOSPlaform("OSX"), SupportedOSPlaform("FreeBSD") attributes
Could add assembly level SupportedOSPlaform("windows"), SupportedOSPlaform("Linux"), SupportedOSPlaform("OSX"), SupportedOSPlaform("FreeBSD") attributs |
I'm not following the suggestion. Are you saying we can no longer rely on UnsupportedOSPlatform/SupportedOSPlatform attribute to be automatically generated from implementation libraries and we have to add them manually for each library? How are we going to keep them in-sync? |
It will not generated in the Cross-platform target for example for Quic |
As far as i know, we have added assembly-level Supported attribute only for runtime/eng/versioning.targets Lines 28 to 33 in c1b3d56
and for Unsupported attribute only for Browser unsupport:runtime/eng/versioning.targets Lines 69 to 76 in c1b3d56
well here unsupported attribute not only for Browser but we used it only for browser (only one windows case), those are still working as expected |
Got it, so the information needs to be added to both .props and .csproj files for each project |
Not sure how exactly we would add them, could do as you mentioned add the attributes for each project, probably that is better for now as we don't have so many projects to cover. Or we could add a general rule as we did for Unsupported attributes and add corresponding property into .props for each project runtime/eng/versioning.targets Lines 69 to 76 in c1b3d56
|
I added them manually and there are not that many but we should think about how to keep them in sync. |
Unsupported ref libraries are not correctly annotated or not annotated at all when complex build conditions exist.
I don't know what's the underlying condition but it seems to happen for at least a few in the current build
This also caused #49201 problem and I checked only a few libraries so not sure how widespread the problem is.
@jeffhandley @buyaa-n
The text was updated successfully, but these errors were encountered: