I feel like I’m doing something obviously wrong but I can’t figure it out. I’m trying to get the AWS SDK working with unity to use DynamoDB.
I’ve grabbed the AWSSDK.dll (net35, from the .msi installer) and throw it into my assets folder, but I get this error:
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
Ok, well that doesn’t work. I delete the dll from the assets folder. What if I try to simply add a reference to the dll in my VS project? I can add the dll with no problems, and even code completion on the Amazon classes, but as soon as I add any code (using Amazon.DynamoDBv2) and jump back to unity I get this:
Assets/Scripts/DBManager.cs(3,7): error CS0246: The type or namespace name `Amazon' could not be found. Are you missing a using directive or an assembly reference?
I don’t understand. I’m I doing something wrong? It seems like it should be an easy solution that I’m just not getting.
Thanks!