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

			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);
		}
Esempio n. 4
0
        public ConfigProjectProperties(ProjectNode project, string configName)
        {
            this.project    = project;
            this.configName = configName;
            this.vsBuild    = project.HierarchyNode.VsHierarchy as IVsBuildPropertyStorage;
            if (this.vsBuild == null)
            {
                tracer.Warn(Strings.ConfigProjectProperties.NonMsBuildProject(project.DisplayName));
            }

            accessor = new DynamicPropertyAccessor(this);
        }