jasontaylordev / CleanArchitecture

Clean Architecture Solution Template for ASP.NET Core
MIT License
16.62k stars 3.57k forks source link

Unable to move to NativeAOT #1002

Closed olegtar83 closed 11 months ago

olegtar83 commented 11 months ago

After i add nativeAot properties to .csproj

 <PublishAot>true</PublishAot>
 <StripSymbols>false</StripSymbols>

I got the following error

Error RDG002 Unable to statically resolve endpoint handler method. Only method groups, lambda expressions or readonly fields/variables are allowed. Compile-time endpoint generation will skip this endpoint and the endpoint will be generated at runtime. For more information, please see aka.ms/aot-known-issues

Do you have any other comptabile implementation for endpoints, that make this error go away?

pbn4 commented 4 months ago

Same problem here, how did you solve?

olegtar83 commented 4 months ago

No, i didn't find any example for this.