Beispiel #1
0
        public List <ProjectPropertyValue> ValidPropertyValues(string property)
        {
            List <ProjectPropertyValue> projectPropertyValues = new List <ProjectPropertyValue>();

            if (property == "TargetFrameworkVersion")
            {
                string projectSubType = base.ProjectSubType;
                if (projectSubType == null || !(projectSubType == "Silverlight"))
                {
                    if (base.MinimumFrameworkVersion != "4.0")
                    {
                        projectPropertyValues.Add(ProjectPropertyInfo.CreatePropertyValue(property, "3.5"));
                    }
                    if (base.MaximumFrameworkVersion == "4.0" || projectPropertyValues.Count == 0)
                    {
                        projectPropertyValues.Add(ProjectPropertyInfo.CreatePropertyValue(property, "4.0"));
                    }
                }
                else
                {
                    if (base.MinimumFrameworkVersion != "4.0" && base.MaximumFrameworkVersion != "2.0")
                    {
                        projectPropertyValues.Add(ProjectPropertyInfo.CreatePropertyValue(property, "3.0"));
                    }
                    if (base.MaximumFrameworkVersion == "4.0" || projectPropertyValues.Count == 0)
                    {
                        projectPropertyValues.Add(ProjectPropertyInfo.CreatePropertyValue(property, "4.0"));
                    }
                }
            }
            return(projectPropertyValues);
        }
Beispiel #2
0
 public ProjectPropertyValue(string value, string displayValue, ProjectPropertyInfo parentProperty)
 {
     this.@value         = value;
     this.displayValue   = displayValue;
     this.parentProperty = parentProperty;
 }