I have just upgraded my Windows app to UWP with a .net standard 2.0 library. The app is finished and now I am trying to create a release build but the build takes forever and eventually crashes with 138 errors conaining the error below and many more (see screenshot). Debug builds and runs without issues. I am using VS 2017 15.8.7. Wasting my time on this for hours now does anybody have any suggestions on how to fix this?
Method 'DynamicObjectTypeBuilder.BuildFormatterToDynamicMethod(Type, bool, bool, bool)' will always throw an exception due to the missing method 'DynamicMethod..ctor(string, Type, Type[], Type, bool)' in assembly 'System.Reflection.Emit.Lightweight'. There may have been a missing assembly, or a dependency on a more recent Windows SDK release.
So I had 2 options to get rid of this issue:
Because I want to ship this app asap and I don't know how much work it will be to fix the 3rd party package, I chose option 2. So far for X-platform app development regarding UWP apps.