Turn off AOT (Ahead of Time). If you check on AOT in your applicaion (.NET core) just forget about serialisation.