A have a solution in which i have added 21 Projects. one of the project is a windows form that contains a form in which i have placed a combobox. the items in combobox are the names of other projects. now i want to run each project by selecting it from combobox. in order to do this i have used the following codes.
private void GetProjects()
{
Projects projects = GetActiveIDE().Solution.Projects;
}
private DTE2 GetActiveIDE()
{
return Package.GetGlobalService(typeof(DTE)) as DTE2;
}
the problem is that DTE2 is alwayes null?
how can i fix it?