コード例 #1
0
        public static bool HasIsPackable(this PropertyGroupXElement propertyGroupXElement, out bool isPackable)
        {
            var hasIsPackable = propertyGroupXElement.HasChild(ProjectFileXmlElementName.IsPackable, out var childXElement);

            if (hasIsPackable)
            {
                var isPackableString = childXElement.Value;

                isPackable = ProjectFileValues.ParseBoolean(isPackableString);
            }
            else
            {
                isPackable = false; // Dummy value.
            }

            return(hasIsPackable);
        }
        private Task IsPackableElementHandler(XElement xIsPackable, ProjectFile projectFile, IMessageSink messageSink)
        {
            projectFile.IsPackable = ProjectFileValues.ParseBoolean(xIsPackable.Value);

            return(Task.CompletedTask);
        }
        private Task GenerateDocumentationFileElementHandler(XElement xGenerateDocumentationFile, ProjectFile projectFile, IMessageSink messageSink)
        {
            projectFile.GenerateDocumentationFile = ProjectFileValues.ParseBoolean(xGenerateDocumentationFile.Value);

            return(Task.CompletedTask);
        }