Hi there,
I'm trying to iterate and retrieve all C# and VB projects in a solution. The
solution has enterprise template projects, so I need to know the constant to
use to compare with teh Project.Kind property, or something like that.
Any help is much appretiated, thanks!

Signature
Daniel Cazzulino [MVP XML]
Clarius Consulting SA
http://weblogs.asp.net/cazzu
http://aspnet2.com
Daniel Cazzulino [MVP XML] - 29 Apr 2004 23:29 GMT
Working:
DTE vs = (DTE) context.GetService( typeof(DTE) );
if ( vs == null ) throw new InvalidOperationException(
SR.Gral_ServiceUnavailable( typeof(DTE) ) );
ArrayList list = new ArrayList();
Projects ps = (Projects) vs.GetObject("CSharpProjects");
if ( ps != null )
{
foreach ( Project p in ps )
{
list.Add( p.Name );
}
}
ps = (Projects) vs.GetObject("VBProjects");
if ( ps != null )
{
foreach ( Project p in ps )
{
list.Add( p.Name );
}
}
:D

Signature
Daniel Cazzulino [MVP XML]
Clarius Consulting SA
http://weblogs.asp.net/cazzu
http://aspnet2.com
> Hi there,
> I'm trying to iterate and retrieve all C# and VB projects in a solution. The
> solution has enterprise template projects, so I need to know the constant to
> use to compare with teh Project.Kind property, or something like that.
> Any help is much appretiated, thanks!