-
I have a quite complex setup now. I have one class library containing a Service-class, that calls into a Refit-generated endpoint. Everything works as expected locally. But after deploying in Release-Mode I get the error "IMyApi doesn't look like a Refit interface". If I set the So I tried to add a Does anyone have an idea how exactly I would have to define my linker-config to allow it to work in this setup? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Maybe some helpful tips here? reactiveui/refit#1389 |
Beta Was this translation helpful? Give feedback.
-
I had the same problems with Refit. Debug mode was all fine, Release mode didn't work... I had to add in the LinkerConfig.xml the following lines:
Because Refit uses Json, i also uncommented/added this lines:
Hope this helps |
Beta Was this translation helpful? Give feedback.
Thanks, Francosi!
I decided to switch over to Flurl, which provides a similar experience in my case. Refit does not seem to support Trimming in the near future. There seems to be not way to overcome the trimming-issues - at least I could not find any.