Now I need to compile on .NET 2.0 and use the same functionality automating
VS 2010.
When I replace c->AddPropertySheet(prop) with
c->GetType()->InvokeMember("AddPropertySheet", BindingFlags::InvokeMethod,
nullptr, c, gcnew cli::array<Object^> { prop });
I receive TargetInvocationException thrown by the target of invocation.
How can I use AddPropertySheet from a program that is built on 2.0 but is
used for automation of VS 2010?