コード例 #1
0
        public static TargetFramework GetTargetFramework(this PropertyGroupXElement propertyGroupXElement)
        {
            var targetFrameworkString = propertyGroupXElement.GetTargetFrameworkString();

            // No need to check if the project HAS a TargetFramework, it must!
            var targetFramework = ProjectFileValues.ParseTargetFramework(targetFrameworkString);

            return(targetFramework);
        }
        private Task TargetFrameworkElementHandler(XElement xTargetFramework, ProjectFile projectFile, IMessageSink messageSink)
        {
            projectFile.TargetFramework = ProjectFileValues.ParseTargetFramework(xTargetFramework.Value);

            return(Task.CompletedTask);
        }