Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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?

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?