When building on release mode it errors . This is mainly a compiler problem. To workaround, this don't use native mode, until it is fixed. Keeping here for reference.
System.Runtime.InteropServices.SpinWaitExtensions' was not found.
For info:
http://mag.autumn.org/Content.modf?id=20180214111420
A workaround to try is to create a complete new project. and port everything