From e2fa1c8e410914cfe04f70614d79f4262acc15a1 Mon Sep 17 00:00:00 2001
From: winscripter <142818255+winscripter@users.noreply.github.com>
Date: Fri, 11 Oct 2024 18:18:48 +0400
Subject: [PATCH] Update XML documentation file to reflect the one used in SLNX
3.0
---
Slnx.xml | 133 ++++++++++++++++++++++++++++++++++++++++++++++++-------
1 file changed, 117 insertions(+), 16 deletions(-)
diff --git a/Slnx.xml b/Slnx.xml
index c03201e..f0c6b1d 100644
--- a/Slnx.xml
+++ b/Slnx.xml
@@ -246,10 +246,10 @@
Checks if the property has an extension.
-
+
- Gets the type of the project from the GUID. The value is always null
- unless the XML attribute "Type" exists.
+ Gets the type of the project. This can be a string (for example, a string "Classic C#"),
+ or a GUID.
@@ -257,21 +257,14 @@
Descendant configuration.
-
+
Initializes a new instance of the class.
Path to the project file.
- The GUID indicating its type.
+ The project type.
The configuration.
-
-
- Changes the type GUID of this project to and returns it.
-
- The type GUID.
- Current instance of with the given type GUID.
-
Changes the descendant configuration of this project to and returns it.
@@ -351,7 +344,7 @@
- Any project type which is not defined here.
+ Any project type which is not defined.
@@ -373,9 +366,70 @@
Extension of the project, excluding the period.
A type of the project from the extension.
+
+
+ Represents a <Property> element.
+
+
+
+
+ Name of the property.
+
+
+
+
+ Property value.
+
+
+
+
+ Initializes a new instance of the class.
+
+ Name of the property.
+ Property value.
+
+
+
+ Checks if the name of the property signifies an MSBuild Shared Items import.
+
+
+ Example:
+
+ Path\To\ProjItems\File.projitems*{AnyGuidHere}*SharedItemsImports
+
+
+
+
+
+ Represents the <Properties> element.
+
+
+
+
+ Name of the property collection (if present). Example: SharedMSBuildProjectFiles.
+
+
+
+
+ Scope of the property collection (if present). Example: PreLoad.
+
+
+
+
+ All descendant properties.
+
+
+
+
+ Initializes a new instance of the .
+
+ Name of the property collection (if present).
+ Scope of the property collection (if present).
+ All descendant properties.
+
- Builds a SLNX file.
+ Builds an SLNX file.
@@ -388,6 +442,11 @@
All projects.
+
+
+ All <Properties> elements.
+
+
Initializes a new instance of the class.
@@ -405,6 +464,10 @@
The folder to add.
Current instance of after adding a folder.
+
+ This will also return a copy of the current instance, which could introduce additional
+ memory allocation.
+
@@ -412,10 +475,20 @@
The project to add.
Current instance of after adding a project.
+
+ This will also return a copy of the current instance, which could introduce additional
+ memory allocation.
+
- Represents information about a SLNX file.
+ Represents information about an SLNX file.
+
+
+
+
+ If you pass to , this is
+ the instance that will use.
@@ -428,12 +501,19 @@
Gets all folders in the same level as the SLNX.
-
+
+
+ Gets all property collections in the same level as the SLNX. These can only appear
+ in the same level as the SLNX - they cannot appear inside folder or project elements.
+
+
+
Initializes a new instance of the class.
A list of projects.
A list of folders.
+ A list of property collections.
@@ -463,6 +543,27 @@
Settings for the style of the output XML. If the value is , default parameters are used.
A string that represents the SLNX file with projects, folders, and other metadata from this instance of .
+
+
+ Stores the data of this instance of into a SLNX file.
+
+
+ Output file. Can be anything but it is recommended for the
+ extension to end with .slnx.
+
+ Settings for the style of the output XML. If the value is , default parameters are used.
+
+ The output file will be attempted to be deleted if it exists.
+
+
+
+
+ Converts this instance of to the string representation
+ of the SLNX file with same projects and folders.
+
+ Settings for the style of the output XML. If the value is , default parameters are used.
+ A string that represents the SLNX file with projects, folders, and other metadata from this instance of .
+
Represents an error related to SLNX syntax or its infrastructure.