I am trying to create a REST server as part of a Unity project, and at first thought that Nancy seemed an obvious choice. However, many headaches are later, and I still cannot get Nancy to work in the Unity Mono runtime - I can compile and run with Xamarin, but Unity gives me a pretty useless result, and I'm trying to use this asset:
Internal compiler error. See the console log for more information. output was: Unhandled Exception: System.Reflection.ReflectionTypeLoadException: The classes in the module cannot be loaded. at (wrapper managed-to-native) System.Reflection.Assembly:GetTypes (bool) at System.Reflection.Assembly.GetTypes () [0x00000] in <filename unknown>:0 at Mono.CSharp.RootNamespace.ComputeNamespaces (System.Reflection.Assembly assembly, System.Type extensionType) [0x00000] in <filename unknown>:0 at Mono.CSharp.RootNamespace.ComputeNamespace (Mono.CSharp.CompilerContext ctx, System.Type extensionType) [0x00000] in <filename unknown>:0 at Mono.CSharp.GlobalRootNamespace.ComputeNamespaces (Mono.CSharp.CompilerContext ctx) [0x00000] in <filename unknown>:0 at Mono.CSharp.Driver.LoadReferences () [0x00000] in <filename unknown>:0 at Mono.CSharp.Driver.Compile () [0x00000] in <filename unknown>:0 at Mono.CSharp.Driver.Main (System.String[] args) [0x00000] in <filename unknown>:0
I canβt be the only person who has tried something like this, and I want to use it in several projects, so having something reusable has high priority - someone has successfully implemented something like that, and if so you can Do you give me any directions?
I would really like Nancy to work, but another way to easily embed a REST server would be just as valuable.
rest unity3d nancy
theheadofabroom
source share