[AOT] Add safe route value overloads to Results
and TypeResults
#46229
Labels
area-web-frameworks
*DEPRECATED* This label is deprecated in favor of the area-mvc and area-minimal labels
linker-friendliness
Tracking linker friendliness
NativeAOT
Milestone
Is there an existing issue for this?
Is your feature request related to a problem? Please describe the problem.
#46082 annotates
Microsoft.AspNetCore.Http.Results
for trimming and AOT.The route result methods have
object
parameters that are turned intoRouteValuesDictionary
. This is done with reflection and isn't safe with trimming.Describe the solution you'd like
A couple of options:
RouteValuesDictionary
. This is what we do withLinkGenerator
and in other places.Person
instance could be passed to the method asobject
, soPerson
properties aren't preserved.Additional context
No response
The text was updated successfully, but these errors were encountered: