hi
I have a "Microsoft.VisualStudio.ProjectSystem.ConfiguredProject" and I want to read the "ProjectGuid" of this project.
How can I do this? I tried to get a "Microsoft.VisualStudio.VCProjectEngine.VCProject" or "Microsoft.Build.Evaluation.Project" to read data from it. But... how's this done? I've no idea how to do that.
Or is there an other way to do that? An easier one?
... you know, everyone tells me how easy it is to use .net ... but, you still have to know a lot... what I never understand is which type can be casted into which others? Or is this just something you find out by luck? Try to cast and if it works, fine... if not.. hey, let's try something else? Like in the good old days with the QueryInterface? ... sort of "well, it's a dog... why not asking this object if it provides the interfaces of a ship?" ... is it that stupid? Or is there more behind it?
How do you for example solve the problem I have now? What's the steps you use to get behind this secret?
And, by the way... using the "GetType()" on some objects is also highly confusing... e.g. the ConfiguredProject.Services.HostObject.GetType() returns a "VCConfigurationShim" ... what the hell is this class? Nobody has ever documented it and I don't find an assembly for that. How? What? Why? ... and ... last question: is this really "easier" than in the old days with C interfaces and COM ?? I don't understand this world.
Rudolf