public T Get <T>(PredefinedBuildProperties propertyName) { string propName; switch (propertyName) { case PredefinedBuildProperties.OsPlatform: propName = BuildProps.OSPlatform; break; case PredefinedBuildProperties.OutputDir: propName = BuildProps.OutputDir; break; case PredefinedBuildProperties.PathToDotnetExecutable: propName = BuildProps.DotNetExecutable; break; case PredefinedBuildProperties.ProductRootDir: propName = BuildProps.ProductRootDir; break; case PredefinedBuildProperties.UserProfileFolder: propName = BuildProps.UserHomeFolder; break; default: throw new NotSupportedException("Property name is not mapped."); } propName = propName.ToLowerInvariant(); return(Get <T>(propName)); }
public BuildPropertyAttribute(PredefinedBuildProperties buildProperty) { BuildProperty = buildProperty.ToString(); }