views:

40

answers:

1

I'm writing a Visual Studio extension/add-in and I want to find the names of all of the assemblies created from the projects in the current solution.

I don't have any technological limitation - I can use DTE, MEF or whatever else that gets the job done.

+3  A: 

I managed to find an answer - using DTE:

var projects = dte.Solution.Projects;
foreach (Project project in projects)
{
    if (project.Properties != null)
    {
        var assemblyName = project.Properties.Item("AssemblyName").Value.ToString();
    }
}
Dror Helper