Exemplo n.º 1
0
 public GlobalProjectProperties(ProjectNode project)
 {
     msBuildProject = project.As <Project>();
     dteProject     = project.As <EnvDTE.Project>();
     vsBuild        = project.HierarchyNode.VsHierarchy as IVsBuildPropertyStorage;
     accessor       = new DynamicPropertyAccessor(this);
 }
Exemplo n.º 2
0
		public GlobalProjectProperties(ProjectNode project)
		{
			msBuildProject = project.As<Project>();
			dteProject = project.As<EnvDTE.Project>();
			vsBuild = project.HierarchyNode.HierarchyIdentity.Hierarchy as IVsBuildPropertyStorage;
			accessor = new DynamicPropertyAccessor(this);
		}
Exemplo n.º 3
0
		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);
		}