Can EnvDTE be imported into a VB application?

  • Thread starter Thread starter Dean Slindee
  • Start date Start date
D

Dean Slindee

I would like to count lines in a project using code in a VB form. Need
EnvDTE as an Imports statement. Can this be done?

If so, I would then recode the following into VB:
foreach (EnvDTE.Project project in applicationObject.Solution.Projects)

{

LocalLines=0;

foreach (EnvDTE.ProjectItem item in project.ProjectItems)

{

count(item);

}

report.AppendFormat("{0}: {1} lines\r\n", project.Name, LocalLines);

Lines+=LocalLines;

}



Thanks,

Dean Slindee
 
* "Dean Slindee said:
I would like to count lines in a project using code in a VB form. Need
EnvDTE as an Imports statement. Can this be done?

If so, I would then recode the following into VB:
foreach (EnvDTE.Project project in applicationObject.Solution.Projects)

Add a reference to "Microsoft Development Environment 7.0" ("dte.olb"),
then import the namespace/class.
 
Hi,

http://msdn.microsoft.com/library/d...s/vsintro7/html/vxconreferencingdteobject.asp

Ken
----------------------
I would like to count lines in a project using code in a VB form. Need
EnvDTE as an Imports statement. Can this be done?

If so, I would then recode the following into VB:
foreach (EnvDTE.Project project in applicationObject.Solution.Projects)

{

LocalLines=0;

foreach (EnvDTE.ProjectItem item in project.ProjectItems)

{

count(item);

}

report.AppendFormat("{0}: {1} lines\r\n", project.Name, LocalLines);

Lines+=LocalLines;

}



Thanks,

Dean Slindee
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top