I downloaded the binaries, and dropped Google.OrTools.dll and Google.Protobuf.dll to my Assets. In Visual Studio, when I add the DLLs using "Add reference", they seem to load correctly (I have auto completion). So I wrote some code. But back in Unity, I get compile errors (the faulty line is "Using Google.OrTools;") :
Assets/GameManagement/GameManager.cs(7,7): error CS0246: The type or namespace name `Google' could not be found. Are you missing an assembly reference?
I tried activating the experimental 4.6 .NET framework in the Player menu. It makes a difference, as it seems this time Google.Protobuf.dll is recognized, as now I get this error :
Assets/GameManagement/GameManager.cs(7,14): error CS0234: The type or namespace name `OrTools' does not exist in the namespace `Google'. Are you missing an assembly reference?
So it seems Google.Protobuf.dll is correctly loaded by Units3D, while OrTools.dll is not. Actually, in the Assets properties, I can see that Google.Protobuf.dll loads as a "managed"
plugin, while Google.OrTools.dll loads as a "native" plugin.
After reading a little bit, I think I understood that there are "mixed assembly" (native and managed) DLLs, and I think Google.OrTools.dll is such a DLL. Is there a way to get the DLL working as a regular managed DLL ?
Or any other idea about how I can make this work ?
Thank you very much !!
Olivier
--
You received this message because you are subscribed to the Google Groups "or-tools-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to or-tools-discuss+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "or-tools-discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/or-tools-discuss/pUkYG9pTxy4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to or-tools-discuss+unsubscribe@googlegroups.com.