Hi guys,
I am having a similar question/problem: I am also writing code in C# which is supposed to run at least under FSX:Acceleration, FSX:Steam, P3Dv3 and P3Dv4. So, I also need to reference the different simconnect versions. Right now, I am referencing both, the LockheedMartin.Prepar3D.SimConnect.dll and Microsoft.FlightSimulator.SimConnect.dll and use a switch to determine which functions to call depending on the choosen fs version. This works without a problem for P3Dv3 and FSX:Steam, both of which I am using at my testing machine.
Now, I am planning to deploy my code on a different machine which is running FSX:Acceleration and I simply don't know what is necessary to make this work, as I cannot reference another Microsoft.FlightSimulator.SimConnect.dll in my project. Didn't try it out, yet but wanted to know what might be the best way to make this work in C#, beforehand.
In C++ it is possible to make some sort of conditonal referencing using compiler directives like shown by Farley above, but how to achieve this in C#?
Maybe you got a suggestion for that?
Greets, Benny