Due to a missing description of the problem, I am guessing here. That you run into the problem, that reflection is used for setting up the providers. You have to specify what should be kept during trimming by AOT.
A solution can be to add a rd.xml file to your project with the following content:
Due to a missing description of the problem, I am guessing here. That you run into the problem, that reflection is used for setting up the providers. You have to specify what should be kept during trimming by AOT.
A solution can be to add a
rd.xml
file to your project with the following content:Then edit your
.csproj
file and addto any
ItemGroup