Beispiel #1
0
 //Constructor for EnvDte project
 public ProjectWrapper(EnvDTE.Project project)
 {
     Name = project.Name;
     try
     {
         Path = project.FullName;
         Items = new Lazy<IEnumerable<string>>
             (() => project.GetAllProjectItems().Select(x => x.FileNames[0]));
     }catch (Exception) //TODO: Handle
     {
         isLoaded = false;
         // Ignored, happens when trying to access the full name of an unloaded project
     }
     // Unsupported
     //ProjectId = null;
 }