private static SilverlightApplicationReference parseProjectString(string s) { SilverlightApplicationReference reference = new SilverlightApplicationReference(); string[] split = s.Split('|'); if (split.Length < 3) { throw new Exception("Missing elements in Silverlight application, expected guid|relativePath|targetDirectory; but got: " + s); } reference.guid = split[0]; reference.relativePath = split[1]; reference.targetDirectory = split[2]; if (split.Length > 3) { reference.value4 = bool.Parse(split[3]); } return(reference); }
private static SilverlightApplicationReference parseProjectString(string s) { SilverlightApplicationReference reference = new SilverlightApplicationReference(); string[] split = s.Split('|'); if (split.Length < 3) { throw new Exception("Missing elements in Silverlight application, expected guid|relativePath|targetDirectory; but got: " + s); } reference.guid = split[0]; reference.relativePath = split[1]; reference.targetDirectory = split[2]; if (split.Length > 3) { reference.value4 = bool.Parse(split[3]); } return reference; }