Closed sunary closed 6 years ago
Hmm, there was an old version of dynamitey that had this problem, but the current version can't throw an exception in it's class constructor. https://github.com/ekonbenefits/dynamitey/blob/60ffece7d5104d7acf759062cc21883b19c1da54/Dynamitey/Dynamic.cs#L54-L66 On mac it doesn't do strong naming, is there something else pulling in a dynamitey dependency. Check the version of Dynamitey.dll
how can I update Dynamitey?
this is my package:
2.0.6-beta111 is the latest. Doesn't crash on CI .net core Mac unit tests. If you can find out how to reproduce this it would be appreciated. All tests pass: https://travis-ci.org/ekonbenefits/impromptu-interface/jobs/266179915
Nevermind, while I can't reproduce it, I found where the type initializer is probably throwing. https://github.com/ekonbenefits/dynamitey/blob/60ffece7d5104d7acf759062cc21883b19c1da54/Dynamitey/Dynamic.cs#L805
So try to update dynamitey to 2.0.6-beta114
. I think that should work with semantic versioning and .net core. But let me know if you run in to trouble. Also let me know if this solves your crash. Thanks!!
Its worked after upgrade to Dynamitey 2.0.6-beta114. Thanks for your support!
Trying wrap my service using
impromptu-interface version 7.0.1-beta40
. This my code:but throw exception on Mac:
Working fine on Window, didn't test on Linux.