For VC ++ projects, you need to access the VCConfiguration object, which you should get from the EnvDTE.Project Object property, for example:
EnvDTE.Project project = ... VCProject vcProj = (VCProject)project.Object; IVCCollection configs = (IVCCollection)vcProj.Configurations; VCConfiguration config = (VCConfiguration)configs.Item(configName);
At this point with VCConfiguration exactly how to get the right properties depends on your setup. You can access the VCLinkerTool from the Tools property and go to the OutputFile and other properties. Or, if you use new inherited property sheets, you can access them through the Rules property.
IVCCollection tools = (IVCCollection)config.Tools; VCLinkerTool linkTool = (VCLinkerTool)tools.Item("Linker Tool"); string outputFile = linkTool.OutputFile;
source share