ghostnguyen / HttpClientFillerIssue

MIT License
10 stars 1 forks source link

IsAotCompatible flag missing? #3

Open michael-hawker opened 2 weeks ago

michael-hawker commented 2 weeks ago

Your readme mentions AOT compatibility, but then the project doesn't enable the analysis flag, see the docs here: https://learn.microsoft.com/dotnet/core/deploying/native-aot/#aot-compatibility-analyzers

And a helpful article on resolving any warnings: https://devblogs.microsoft.com/dotnet/creating-aot-compatible-libraries/

ghostnguyen commented 2 weeks ago

I will enable the flag in the next release. Currently, the code still works for AOT. I also push the test aot project in repo.

<PropertyGroup>
  <IsAotCompatible Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net7.0'))">true</IsAotCompatible>
</PropertyGroup>