Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
tools
vsnet.act
vsnet.debugging
vsnet.documentation
vsnet.enterprise.tools
vsnet.general
vsnet.ide
vsnet.jlca
vsnet.servicepacks
vsnet.setup
vsnet.vsip
vsnet.vss
vsnet.vstools.office
vstudio.development
vstudio.extensibility
vstudio.general
vstudio.helpauthoring
vstudio.setup
vstudio.sourcesafe
  
 
date: Tue, 15 Jan 2008 11:38:15 +0800,    group: microsoft.public.vstudio.extensibility        back       


How do I get project compile settings from IVsHierarchy?   
Hi,

I'm quite new to Visual Studio extensibility development. I'm working on a 
VSPackage project in C#. What I wanted to do is to traverse the structure of 
solution and look for projects to be compiled as DLL, and apply my own 
settings.

I've been able to understand the SolutionHierarchyTraversal sample in C#. 
I've been able to get information such as project directory and source file 
name. But I have no idea how I could get the compile settings (project 
configuration) from the project node. I think this has something to do with 
IVsCfgProvider and IVsProjectCfg2. But I don't know how to obtain these 
interfaces from IVsHierarchy.

Could someone give me some hints?

-- 
Thanks in advance,
He Shiming
date: Tue, 15 Jan 2008 11:38:15 +0800   author:   He Shiming mailbill(NOSPAM)@21cn.com.nospam

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us