First time here? Check out the Help page!
1 | initial version |
The best way to get started in C# is to copy one of the example C# projects in your OpenStudio install (e.g. "C:\Program Files\OpenStudio 1.12.0\CSharp\examples\RunManagerExample") to somewhere on your hard drive where you have write access. Then you will want to delete the reference to OpenStudio.dll and re-add it, pointing to the OpenStudio.dll in your install (e.g. "C:\Program Files\OpenStudio 1.12.0\CSharp\openstudio\OpenStudio.dll"). Finally, in order to run your application, you will need to be able to load all of OpenStudio.dll's dependencies (including the Qt plugins). The easiest way to do this is to copy all of the files from "C:\Program Files\OpenStudio 1.12.0\CSharp\openstudio\" into the directory containing the application you are building. You may also have to copy the plugin folders (e.g. 'platforms', 'sqldrivers') from "C:\Program Files\OpenStudio 1.12.0\bin" as well.
This question is most relevant to what you are asking about.
OpenStudio 2.0 will have Qt libraries and plugins statically linked in so there will be less stuff to deploy alongside your application.