Exemple #1
0
        public static ProjectFileModel FromXmlNode(XmlNode xmlNode)
        {
            var xElement = xmlNode.ToXElement();

            var projectFile = ProjectFileModel.FromXElement(xElement);

            return(projectFile);
        }
Exemple #2
0
        public static ProjectFileModel New(string sdkValue = ProjectFileXmlValues.MicrosoftNetSDK)
        {
            var projectElement = ProjectXElementOperations.CreateProjectElement(sdkValue);

            var projectFile = ProjectFileModel.FromXElement(projectElement);

            return(projectFile);
        }
Exemple #3
0
        public static ProjectFileModel FromFile(string projectFilePath)
        {
            var xElement = XElement.Load(projectFilePath);

            var projectFile = ProjectFileModel.FromXElement(xElement);

            return(projectFile);
        }