static XDocument ReadXDocument(string projectFile) { try { return XDocument.Load(projectFile); } catch (Exception exception) { throw new Exception(string.Format("Could not load project file '{0}'.", projectFile), exception); } }