ProjectReader.ReadXDocument C# (CSharp) Method

ReadXDocument() static private method

static private ReadXDocument ( string projectFile ) : System.Xml.Linq.XDocument
projectFile string
return System.Xml.Linq.XDocument
    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);
        }
    }