views:

15

answers:

0

Hi

Im using this code, inside a project template wizard.

DTE dte = project.DTE;
VSProject vsProj = (VSProject)project.Object;

Array projects = (Array)dte.ActiveSolutionProjects;
Project activeProject = (Project)projects.GetValue(0);

But im curious in what order the projects are returned? The code above is running just after the project is created, in the

public void ProjectFinishedGenerating(Project project)

In what order does the projects get returned? My goal is to get the newest project, will GetValue(0) do that?

Thanks in advance!