From df5ebd3954a55f7b45a4e314ee8dd6c942343057 Mon Sep 17 00:00:00 2001
From: Tony Bark
Date: Thu, 10 Aug 2023 18:37:03 -0400
Subject: [PATCH] Target Standard 2.1
---
.vscode/tasks.json | 86 +++++++++++++++++++++++---------------------
CSTNet/CSTNet.csproj | 7 ++--
CSTNet/README.md | 2 +-
CSTNet/UIText.cs | 2 +-
README.md | 7 ++--
5 files changed, 54 insertions(+), 50 deletions(-)
diff --git a/.vscode/tasks.json b/.vscode/tasks.json
index a59a3e4..e6399b6 100644
--- a/.vscode/tasks.json
+++ b/.vscode/tasks.json
@@ -2,52 +2,56 @@
"version": "2.0.0",
"tasks": [
{
- "label": "build",
- "command": "dotnet",
- "type": "process",
- "args": [
- "build",
- "${workspaceFolder}/CSTNet.Tests/CSTNet.Tests.csproj",
- "/property:GenerateFullPaths=true",
- "/consoleloggerparameters:NoSummary"
- ],
- "problemMatcher": "$msCompile"
+ "label": "build",
+ "command": "dotnet",
+ "type": "process",
+ "args": [
+ "build",
+ "${workspaceFolder}/CSTNet.Tests/CSTNet.Tests.csproj",
+ "/property:GenerateFullPaths=true",
+ "/consoleloggerparameters:NoSummary"
+ ],
+ "problemMatcher": "$msCompile"
},
{
- "label": "publish",
- "command": "dotnet",
- "type": "process",
- "args": [
- "publish",
- "${workspaceFolder}/CSTNet.Tests/CSTNet.Tests.csproj",
- "/property:GenerateFullPaths=true",
- "/consoleloggerparameters:NoSummary"
- ],
- "problemMatcher": "$msCompile"
+ "label": "publish",
+ "command": "dotnet",
+ "type": "process",
+ "args": [
+ "publish",
+ "${workspaceFolder}/CSTNet.Tests/CSTNet.Tests.csproj",
+ "/property:GenerateFullPaths=true",
+ "/consoleloggerparameters:NoSummary"
+ ],
+ "problemMatcher": "$msCompile"
},
{
- "label": "watch",
- "command": "dotnet",
- "type": "process",
- "args": [
- "watch",
- "run",
- "${workspaceFolder}/CSTNet.Tests/CSTNet.Tests.csproj",
- "/property:GenerateFullPaths=true",
- "/consoleloggerparameters:NoSummary"
- ],
- "problemMatcher": "$msCompile"
+ "label": "watch",
+ "command": "dotnet",
+ "type": "process",
+ "args": [
+ "watch",
+ "run",
+ "${workspaceFolder}/CSTNet.Tests/CSTNet.Tests.csproj",
+ "/property:GenerateFullPaths=true",
+ "/consoleloggerparameters:NoSummary"
+ ],
+ "problemMatcher": "$msCompile"
},
{
- "label": "test",
- "command": "dotnet",
- "type": "process",
- "args": [
- "test",
- "${workspaceFolder}/CSTNet.Tests/CSTNet.Tests.csproj",
- "/property:GenerateFullPaths=true"
- ],
- "problemMatcher": "$msCompile"
+ "label": "test",
+ "command": "dotnet",
+ "type": "process",
+ "args": [
+ "test",
+ "${workspaceFolder}/CSTNet.Tests/CSTNet.Tests.csproj",
+ "/property:GenerateFullPaths=true"
+ ],
+ "problemMatcher": "$msCompile",
+ "group": {
+ "kind": "build",
+ "isDefault": true
+ }
}
- ]
+]
}
diff --git a/CSTNet/CSTNet.csproj b/CSTNet/CSTNet.csproj
index 736495a..f3387c1 100644
--- a/CSTNet/CSTNet.csproj
+++ b/CSTNet/CSTNet.csproj
@@ -1,14 +1,15 @@
- net6.0
- 2.0.102
+ net6.0;netstandard2.1
+ 2.0.103
enable
latest
enable
Tony Bark
- Caret-Separated Text (or CST) is a key-value pair format represented by digits or words as keys and the value as text enclosed between carets. ([key] ^[value]^)
+ Caret-Separated Text (or CST) is a key-value pair format represented by digits or words
+ as keys and the value as text enclosed between carets. ([key] ^[value]^)
CSTNet provides you the framework for parsing the CST format.
diff --git a/CSTNet/README.md b/CSTNet/README.md
index 921dfb9..8d3f021 100644
--- a/CSTNet/README.md
+++ b/CSTNet/README.md
@@ -4,4 +4,4 @@ Caret-Separated Text (or CST) is a key-value pair format represented by digits o
## License
-I license this project under the BSD-3-Clause license - see [LICENSE](LICENSE) for details.
\ No newline at end of file
+I license this project under the BSD-3-Clause license - see [LICENSE](LICENSE) for details.
diff --git a/CSTNet/UIText.cs b/CSTNet/UIText.cs
index 5dd5ac2..ac899d5 100644
--- a/CSTNet/UIText.cs
+++ b/CSTNet/UIText.cs
@@ -78,7 +78,7 @@ public class UIText : IUIText
if (second == -1)
continue;
- ids = ids.Substring(1, second - 1);
+ ids = ids[1..second];
// If the id of the current file does not match the id passed to the function,
// skip to the next file.
diff --git a/README.md b/README.md
index c8cc060..0f76755 100644
--- a/README.md
+++ b/README.md
@@ -4,13 +4,12 @@
-
+
-
+

-
-Caret-Separated Text (or CST) is a key-value pair format represented by digits or words as keys and the value as text enclosed between carets. (e.g. `` ^^``) Any text which is not enclosed with carets is considered a comment and ignored. Neither strings nor comments may use the caret character. CST.NET is a library for parsing the CST format.
+CST.NET is a library for parsing the CST format. Caret-Separated Text (or CST) is a key-value pair format represented by digits or words as keys and the value as text enclosed between carets. (e.g. `` ^^``) Any text which is not enclosed with carets is considered a comment and ignored. Neither strings nor comments may use the caret character.
## Changelog