How to set up Visual Studio to use C# bindings
I'm using Visual Studio 2015 and OpenStudio 1.9.0, but can't seem to get any of the example c# files or my own to run. I've followed this answer setting my path correctly and build configuration for a 64-bit machine, but I keep getting a System.TypeInitializationException occuring in OpenStudio.dll. The exception is thrown at OpenStudio.OpenStudioUtilitiesCorePINVOKE and the inner exception states that it's unable to load openstudio_OpenStudioUtilitiesCore_csharp.dll. Any thoughts?
@MarkAdams, I just saw this post here, is using Visual Studio 2015 an issue on OpenStudio 1.9.0 or 1.9.3?
@pflaumingo Visual Studio 2015 should be okay when using the C# bindings, but it does not work when compiling OpenStudio itself. I just tested with OpenStudio 1.9.0, Visual Studio 2015 Enterprise, and the code (and instructions) from here, and it all works. I don't know what to say other than follow my instructions in that other post and if that still fails to maybe post example code.
Hmm, very odd as I've just copied your sample code (and changed the path). I'll figure it out.