Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

How to find a ProjectItem by its name

$
0
0

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?


Viewing all articles
Browse latest Browse all 4410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>