[9.0-preview.5] Endpoint with nullable parameter no longer generates code with Request Delegate Generator #55840
Labels
area-minimal
Includes minimal APIs, endpoint filters, parameter binding, request delegate generator etc
feature-rdg
NativeAOT
Is there an existing issue for this?
Describe the bug
Using version
9.0.100-preview.5.24272.3
of the .NET SDK from daily builds, an endpoint associated with a method that has astring[]?
parameter is no longer having an endpoint generated an produces a RDG003 warning.Error: /home/runner/work/adventofcode/adventofcode/src/AdventOfCode.Site/Program.cs(135,1): error RDG003: Unable to statically resolve parameter named 'arguments' for endpoint. Compile-time endpoint generation will skip this endpoint and the endpoint will be generated at runtime. For more information, please see https://aka.ms/aspnet/rdg-known-issues (https://learn.microsoft.com/aspnet/core/fundamentals/aot/request-delegate-generator/diagnostics/RDG003) [/home/runner/work/adventofcode/adventofcode/src/AdventOfCode.Site/AdventOfCode.Site.csproj]
The error is not generated with .NET 8 or .NET 9 preview 4.
The signature of the endpoint is the following (code):
Expected Behavior
Request Delegate Generator successfully generates code for this endpoint.
Steps To Reproduce
build.ps1
in the root of the repository.Exceptions (if any)
No response
.NET Version
9.0.100-preview.5.24272.3
Anything else?
No response
The text was updated successfully, but these errors were encountered: