From 4af59841b906eee8070d8e3ae327e5d2475b9ea8 Mon Sep 17 00:00:00 2001 From: jackfiled Date: Wed, 7 May 2025 12:22:24 +0800 Subject: [PATCH] chore: update to slnx and update to net 9.0 in LeetCodeSharp. --- LeetCodeSharp.sln | 43 -------------------------- LeetCodeSharp.slnx | 9 ++++++ LeetCodeSharp/LeetCodeSharp.csproj | 2 +- LeetCodeSharp/Problems/Solution2296.cs | 2 +- 4 files changed, 11 insertions(+), 45 deletions(-) delete mode 100644 LeetCodeSharp.sln create mode 100644 LeetCodeSharp.slnx diff --git a/LeetCodeSharp.sln b/LeetCodeSharp.sln deleted file mode 100644 index 9f13ded..0000000 --- a/LeetCodeSharp.sln +++ /dev/null @@ -1,43 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 17 -VisualStudioVersion = 17.9.34607.119 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "LeetCodeSharp", "LeetCodeSharp\LeetCodeSharp.csproj", "{EB1DDDC1-A2FC-4AAB-A21A-59FAAFF656DD}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "LeetCodeSharp.Fetcher", "LeetCodeSharp.Fetcher\LeetCodeSharp.Fetcher.csproj", "{5D45BB2A-E512-4353-8746-6F0B79282C76}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LeetCodeSharp.Tests", "LeetCodeSharp.Tests\LeetCodeSharp.Tests.csproj", "{97E271FD-7244-4DD2-982C-103DF1E92B7C}" -EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{1F55C3BE-2E8E-47CB-B46A-7B607A196BA1}" - ProjectSection(SolutionItems) = preProject - justfile = justfile - README.md = README.md - EndProjectSection -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Release|Any CPU = Release|Any CPU - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {EB1DDDC1-A2FC-4AAB-A21A-59FAAFF656DD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {EB1DDDC1-A2FC-4AAB-A21A-59FAAFF656DD}.Debug|Any CPU.Build.0 = Debug|Any CPU - {EB1DDDC1-A2FC-4AAB-A21A-59FAAFF656DD}.Release|Any CPU.ActiveCfg = Release|Any CPU - {EB1DDDC1-A2FC-4AAB-A21A-59FAAFF656DD}.Release|Any CPU.Build.0 = Release|Any CPU - {5D45BB2A-E512-4353-8746-6F0B79282C76}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {5D45BB2A-E512-4353-8746-6F0B79282C76}.Debug|Any CPU.Build.0 = Debug|Any CPU - {5D45BB2A-E512-4353-8746-6F0B79282C76}.Release|Any CPU.ActiveCfg = Release|Any CPU - {5D45BB2A-E512-4353-8746-6F0B79282C76}.Release|Any CPU.Build.0 = Release|Any CPU - {97E271FD-7244-4DD2-982C-103DF1E92B7C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {97E271FD-7244-4DD2-982C-103DF1E92B7C}.Debug|Any CPU.Build.0 = Debug|Any CPU - {97E271FD-7244-4DD2-982C-103DF1E92B7C}.Release|Any CPU.ActiveCfg = Release|Any CPU - {97E271FD-7244-4DD2-982C-103DF1E92B7C}.Release|Any CPU.Build.0 = Release|Any CPU - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {D28602CA-DA79-4D3C-A539-2FEB01BBEDA4} - EndGlobalSection -EndGlobal diff --git a/LeetCodeSharp.slnx b/LeetCodeSharp.slnx new file mode 100644 index 0000000..08016de --- /dev/null +++ b/LeetCodeSharp.slnx @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/LeetCodeSharp/LeetCodeSharp.csproj b/LeetCodeSharp/LeetCodeSharp.csproj index cbf69d7..f38fc33 100644 --- a/LeetCodeSharp/LeetCodeSharp.csproj +++ b/LeetCodeSharp/LeetCodeSharp.csproj @@ -1,7 +1,7 @@  - netstandard2.1 + net9.0 disable disable diff --git a/LeetCodeSharp/Problems/Solution2296.cs b/LeetCodeSharp/Problems/Solution2296.cs index 01feabb..00b6d0f 100644 --- a/LeetCodeSharp/Problems/Solution2296.cs +++ b/LeetCodeSharp/Problems/Solution2296.cs @@ -10,7 +10,7 @@ namespace LeetCodeSharp.Problems2296 public class TextEditor { - private readonly LinkedList _text = new LinkedList(); + private readonly LinkedList _text = new(); // 让游标就是光标左边的字符 private LinkedListNode _cursor;