NuGet / NuGetGallery

NuGet Gallery is a package repository that powers https://www.nuget.org. Use this repo for reporting NuGet.org issues.
https://www.nuget.org/
Apache License 2.0
1.52k stars 643 forks source link

[Feature]: Show when a NuGet package supports Native AOT #9743

Open JonDouglas opened 8 months ago

JonDouglas commented 8 months ago

Related Problem

No response

The Elevator Pitch

It would be cool to provide some type of metadata associated with a .NET library that supports the Native AOT functionality.

https://devblogs.microsoft.com/dotnet/creating-aot-compatible-libraries/

We could show badges and provide filtering experiences for packages that are compatible with this functionality and consumers may want to use in their projects for the benefits they get from the feature.

Additional Context and Details

No response

JonDouglas commented 3 months ago

For what it is worth, I reached out to folks on the Native AOT team. There isn't an easy way to detect this today and would be fairly involved. In other words, there isn't a tool to validate/automate this today that could be used for badging purposes.

While we may be able to detect something like <IsAotCompatible>, an author could ignore and publish a package anyway.

Mrxx99 commented 3 months ago

I think labeling by the author would be enough, it may not be a validated promise, but maybe that flag could produce the same warnings as PublishAot for the author. And if the library is not compatible even though the flag/badge says so it is just a bug in the library like any other.