public GlobalProjectProperties(ProjectNode project) { msBuildProject = project.As <Project>(); dteProject = project.As <EnvDTE.Project>(); vsBuild = project.HierarchyNode.VsHierarchy as IVsBuildPropertyStorage; accessor = new DynamicPropertyAccessor(this); }
public GlobalProjectProperties(ProjectNode project) { msBuildProject = project.As<Project>(); dteProject = project.As<EnvDTE.Project>(); vsBuild = project.HierarchyNode.HierarchyIdentity.Hierarchy as IVsBuildPropertyStorage; accessor = new DynamicPropertyAccessor(this); }
public UserProjectProperties(ProjectNode project) { this.project = project; msBuildProject = project.As<Project>(); dteProject = project.As<EnvDTE.Project>(); vsBuild = project.HierarchyNode.VsHierarchy as IVsBuildPropertyStorage; if (msBuildProject == null || vsBuild == null) tracer.Warn(Strings.UserProjectProperties.NonMsBuildProject(project.DisplayName)); accessor = new DynamicPropertyAccessor(this); }