diff --git a/.github/workflows/reusable-build.yml b/.github/workflows/reusable-build.yml
index a569bff2d..6b3b1426b 100644
--- a/.github/workflows/reusable-build.yml
+++ b/.github/workflows/reusable-build.yml
@@ -42,7 +42,7 @@ jobs:
cd PCL2CEHelp
rm -f ./* || true
zip -r Help.zip . -x "./.*/*"
- cp -f Help.zip "${{ github.workspace }}/Plain Craft Launcher 2/Resources/Help.zip"
+ cp -f Help.zip "${{ github.workspace }}/PCL.CE/Resources/Help.zip"
cd ..
rm -rf PCL2CEHelp
cd "${{ github.workspace }}"
@@ -59,7 +59,7 @@ jobs:
PCL_LOBBY_DEFAULT_SECRET: ${{ secrets.LOBBY_DEFAULT_SECRET }}
PCL_GITHUB_SHA: ${{ github.sha }}
run: |
- dotnet publish "Plain Craft Launcher 2/Plain Craft Launcher 2.csproj" \
+ dotnet publish "PCL.CE/PCL.CE.csproj" \
-p:Configuration=${{ inputs.configuration }} -p:Platform=${{ inputs.architecture }} \
-p:DeleteExistingFiles=true -o ./artifact --no-self-contained
diff --git a/PCL.Core.SourceGenerators/ConfigGenerator.cs b/PCL.CE.SourceGenerators/ConfigGenerator.cs
similarity index 97%
rename from PCL.Core.SourceGenerators/ConfigGenerator.cs
rename to PCL.CE.SourceGenerators/ConfigGenerator.cs
index 7466768c8..e9c9d2bd5 100644
--- a/PCL.Core.SourceGenerators/ConfigGenerator.cs
+++ b/PCL.CE.SourceGenerators/ConfigGenerator.cs
@@ -7,7 +7,7 @@
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Syntax;
-namespace PCL.Core.SourceGenerators;
+namespace PCL.CE.SourceGenerators;
[Generator(LanguageNames.CSharp)]
public sealed class ConfigGenerator : IIncrementalGenerator
@@ -103,8 +103,8 @@ public void Initialize(IncrementalGeneratorInitializationContext context)
if (symbol == null) return null;
var compilation = ctx.SemanticModel.Compilation;
- var attrDefItem = compilation.GetTypeByMetadataName("PCL.Core.App.Configuration.ConfigItemAttribute`1");
- var attrDefAny = compilation.GetTypeByMetadataName("PCL.Core.App.Configuration.AnyConfigItemAttribute`1");
+ var attrDefItem = compilation.GetTypeByMetadataName("PCL.CE.Core.App.Configuration.ConfigItemAttribute`1");
+ var attrDefAny = compilation.GetTypeByMetadataName("PCL.CE.Core.App.Configuration.AnyConfigItemAttribute`1");
if (attrDefItem == null && attrDefAny == null) return null;
AttributeData? picked = null;
@@ -183,7 +183,7 @@ public void Initialize(IncrementalGeneratorInitializationContext context)
if (symbol == null) return null;
var compilation = ctx.SemanticModel.Compilation;
- var attrDef = compilation.GetTypeByMetadataName("PCL.Core.App.Configuration.ConfigGroupAttribute");
+ var attrDef = compilation.GetTypeByMetadataName("PCL.CE.Core.App.Configuration.ConfigGroupAttribute");
if (attrDef == null) return null;
var attr = symbol.GetAttributes().FirstOrDefault(a =>
@@ -225,7 +225,7 @@ public void Initialize(IncrementalGeneratorInitializationContext context)
// 精确匹配 [RegisterConfigEvent]
var compilation = ctx.SemanticModel.Compilation;
- var attrDef = compilation.GetTypeByMetadataName("PCL.Core.App.Configuration.RegisterConfigEventAttribute");
+ var attrDef = compilation.GetTypeByMetadataName("PCL.CE.Core.App.Configuration.RegisterConfigEventAttribute");
if (attrDef is null) return null;
var hasAttr = symbol.GetAttributes().Any(a =>
a.AttributeClass is not null &&
@@ -249,7 +249,7 @@ a.AttributeClass is not null &&
// 绕过 [ConfigGroup]
var compilation = ctx.SemanticModel.Compilation;
- var attrDef = compilation.GetTypeByMetadataName("PCL.Core.App.Configuration.ConfigGroupAttribute");
+ var attrDef = compilation.GetTypeByMetadataName("PCL.CE.Core.App.Configuration.ConfigGroupAttribute");
if (attrDef is not null)
{
var hasAttr = symbol.GetAttributes().Any(a =>
@@ -350,7 +350,7 @@ private static string _GenerateAdditionalSource(ConfigTree tree)
sb.AppendLine();
sb.AppendLine("using System.Collections.Generic;");
sb.AppendLine("using System.Linq;");
- sb.AppendLine("using PCL.Core.App.Configuration;");
+ sb.AppendLine("using PCL.CE.Core.App.Configuration;");
sb.AppendLine();
sb.AppendLine("#nullable enable");
sb.AppendLine();
@@ -409,7 +409,7 @@ string ResolveSource(ItemModel item) =>
sb.AppendLine("// ");
sb.AppendLine("// 此文件由 Source Generator 自动生成,请勿手动修改");
sb.AppendLine();
- sb.AppendLine("namespace PCL.Core.App.Configuration;");
+ sb.AppendLine("namespace PCL.CE.Core.App.Configuration;");
sb.AppendLine();
sb.AppendLine("public sealed partial class ConfigService");
sb.AppendLine("{");
@@ -686,7 +686,7 @@ private static void _EmitGroupInto(
public static string _RenderSourceCode(SemanticModel sm, ExpressionSyntax expr)
{
var sym = sm.GetSymbolInfo(expr).Symbol;
- if (sym is IFieldSymbol fs && fs.ContainingType?.ToDisplayString() == "PCL.Core.App.Configuration.ConfigSource")
+ if (sym is IFieldSymbol fs && fs.ContainingType?.ToDisplayString() == "PCL.CE.Core.App.Configuration.ConfigSource")
{
return "ConfigSource." + fs.Name;
}
diff --git a/PCL.Core.SourceGenerators/DependencyCollectorGenerator.cs b/PCL.CE.SourceGenerators/DependencyCollectorGenerator.cs
similarity index 98%
rename from PCL.Core.SourceGenerators/DependencyCollectorGenerator.cs
rename to PCL.CE.SourceGenerators/DependencyCollectorGenerator.cs
index 7504a040f..f08074017 100644
--- a/PCL.Core.SourceGenerators/DependencyCollectorGenerator.cs
+++ b/PCL.CE.SourceGenerators/DependencyCollectorGenerator.cs
@@ -7,7 +7,7 @@
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Syntax;
-namespace PCL.Core.SourceGenerators;
+namespace PCL.CE.SourceGenerators;
public readonly record struct CollectorInfo(
INamedTypeSymbol CollectorAttrSymbol,
@@ -184,7 +184,7 @@ private static void _GenerateDependencyGroup(SourceProductionContext spc, Immuta
sb.AppendLine("using System.Collections.Generic;");
sb.AppendLine("using System.Collections.Immutable;");
sb.AppendLine();
- sb.AppendLine("namespace PCL.Core.App.IoC;");
+ sb.AppendLine("namespace PCL.CE.Core.App.IoC;");
sb.AppendLine();
sb.AppendLine("#nullable enable");
sb.AppendLine();
@@ -301,7 +301,7 @@ private static void _GenerateDependencyInjectionMethods(SourceProductionContext
var targetMethodName = targetMethod.Name;
var isStatic = targetMethod.IsStatic;
var isAwaitable = targetMethod.IsAwaitable();
- sb.Append(indentStr).AppendLine("[global::System.CodeDom.Compiler.GeneratedCode(\"PCL.Core.SourceGenerators.DependencyCollectorGenerator\", \"1.0.0.0\")]");
+ sb.Append(indentStr).AppendLine("[global::System.CodeDom.Compiler.GeneratedCode(\"PCL.CE.SourceGenerators.DependencyCollectorGenerator\", \"1.0.0.0\")]");
sb.Append(indentStr).AppendLine("[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]");
var idCode = match.Info.Identifier.SnakeIdToPascal();
sb.Append(indentStr).Append("private ");
diff --git a/PCL.Core.SourceGenerators/EnvironmentInteropGenerator.cs b/PCL.CE.SourceGenerators/EnvironmentInteropGenerator.cs
similarity index 96%
rename from PCL.Core.SourceGenerators/EnvironmentInteropGenerator.cs
rename to PCL.CE.SourceGenerators/EnvironmentInteropGenerator.cs
index d5e04ca15..3df88131f 100644
--- a/PCL.Core.SourceGenerators/EnvironmentInteropGenerator.cs
+++ b/PCL.CE.SourceGenerators/EnvironmentInteropGenerator.cs
@@ -7,7 +7,7 @@
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.Text;
-namespace PCL.Core.SourceGenerators;
+namespace PCL.CE.SourceGenerators;
[Generator(LanguageNames.CSharp)]
public class EnvironmentInteropGenerator : IIncrementalGenerator
@@ -46,7 +46,7 @@ private static void _Execute(SourceProductionContext context, IEnumerable<(strin
sb.AppendLine();
sb.AppendLine("#nullable enable");
sb.AppendLine();
- sb.AppendLine("namespace PCL.Core.Utils.OS;");
+ sb.AppendLine("namespace PCL.CE.Core.Utils.OS;");
sb.AppendLine();
sb.AppendLine("partial class EnvironmentInterop");
sb.AppendLine("{");
diff --git a/PCL.Core.SourceGenerators/LifecycleScopeGenerator.cs b/PCL.CE.SourceGenerators/LifecycleScopeGenerator.cs
similarity index 99%
rename from PCL.Core.SourceGenerators/LifecycleScopeGenerator.cs
rename to PCL.CE.SourceGenerators/LifecycleScopeGenerator.cs
index 0abdcfb5a..6b2022926 100644
--- a/PCL.Core.SourceGenerators/LifecycleScopeGenerator.cs
+++ b/PCL.CE.SourceGenerators/LifecycleScopeGenerator.cs
@@ -6,7 +6,7 @@
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp.Syntax;
-namespace PCL.Core.SourceGenerators;
+namespace PCL.CE.SourceGenerators;
[Generator(LanguageNames.CSharp)]
public class LifecycleScopeGenerator : IIncrementalGenerator
@@ -129,7 +129,7 @@ private static void _CollectSources(SourceProductionContext spc, ImmutableArray<
var paraArray = method.Parameters;
var skip = 0;
var hasCommandModelArg = paraArray.Length > 0
- && paraArray[0].Type.GetSimplifiedTypeName() == "PCL.Core.App.Cli.CommandLine";
+ && paraArray[0].Type.GetSimplifiedTypeName() == "PCL.CE.Core.App.Cli.CommandLine";
if (hasCommandModelArg) skip++;
var hasIsCallbackArgIndex = hasCommandModelArg ? 1 : 0;
var hasIsCallbackArg = paraArray.Length > hasIsCallbackArgIndex
diff --git a/PCL.Core.SourceGenerators/LifecycleServiceTypesGenerator.cs b/PCL.CE.SourceGenerators/LifecycleServiceTypesGenerator.cs
similarity index 99%
rename from PCL.Core.SourceGenerators/LifecycleServiceTypesGenerator.cs
rename to PCL.CE.SourceGenerators/LifecycleServiceTypesGenerator.cs
index e31eff85b..db2bfdd53 100644
--- a/PCL.Core.SourceGenerators/LifecycleServiceTypesGenerator.cs
+++ b/PCL.CE.SourceGenerators/LifecycleServiceTypesGenerator.cs
@@ -7,7 +7,7 @@
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Syntax;
-namespace PCL.Core.SourceGenerators;
+namespace PCL.CE.SourceGenerators;
[Generator(LanguageNames.CSharp)]
public class LifecycleServiceTypesGenerator : IIncrementalGenerator
@@ -208,7 +208,7 @@ private static void _Execute(SourceProductionContext context, List valid
sb.AppendLine();
sb.AppendLine("using System;");
sb.AppendLine();
- sb.AppendLine("namespace PCL.Core.App.IoC;");
+ sb.AppendLine("namespace PCL.CE.Core.App.IoC;");
sb.AppendLine();
sb.AppendLine("/// ");
sb.AppendLine("/// 包含所有使用 LifecycleService 注解的类型,按 StartState 分类并按 Priority 降序排序");
diff --git a/PCL.Core.SourceGenerators/PCL.Core.SourceGenerators.csproj b/PCL.CE.SourceGenerators/PCL.CE.SourceGenerators.csproj
similarity index 100%
rename from PCL.Core.SourceGenerators/PCL.Core.SourceGenerators.csproj
rename to PCL.CE.SourceGenerators/PCL.CE.SourceGenerators.csproj
diff --git a/PCL.Core.SourceGenerators/SharedConstants.cs b/PCL.CE.SourceGenerators/SharedConstants.cs
similarity index 89%
rename from PCL.Core.SourceGenerators/SharedConstants.cs
rename to PCL.CE.SourceGenerators/SharedConstants.cs
index b9b440085..50304d514 100644
--- a/PCL.Core.SourceGenerators/SharedConstants.cs
+++ b/PCL.CE.SourceGenerators/SharedConstants.cs
@@ -1,8 +1,8 @@
-namespace PCL.Core.SourceGenerators;
+namespace PCL.CE.SourceGenerators;
public static class SharedConstants
{
- public const string AppNamespace = "PCL.Core.App";
+ public const string AppNamespace = "PCL.CE.Core.App";
public const string IocNamespace = $"{AppNamespace}.IoC";
public const string DependencyCollectorAttribute = $"{IocNamespace}.DependencyCollectorAttribute";
public const string DependencyInjectionPointAttribute = $"{IocNamespace}.DependencyInjectionPointAttribute";
diff --git a/PCL.Core.SourceGenerators/SharedExtensions.cs b/PCL.CE.SourceGenerators/SharedExtensions.cs
similarity index 97%
rename from PCL.Core.SourceGenerators/SharedExtensions.cs
rename to PCL.CE.SourceGenerators/SharedExtensions.cs
index 19abaf5f3..2cc0a439f 100644
--- a/PCL.Core.SourceGenerators/SharedExtensions.cs
+++ b/PCL.CE.SourceGenerators/SharedExtensions.cs
@@ -5,7 +5,7 @@
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Syntax;
-namespace PCL.Core.SourceGenerators;
+namespace PCL.CE.SourceGenerators;
public static class SharedExtensions
{
@@ -226,11 +226,11 @@ public static bool IsAwaitable(this IMethodSymbol method)
public static string CorrectConfigTypeName(this string typeName, out string? fullTypeName)
{
- var isArgConfig = typeName.StartsWith("PCL.Core.App.Configuration.ArgConfig<");
+ var isArgConfig = typeName.StartsWith("PCL.CE.Core.App.Configuration.ArgConfig<");
if (isArgConfig)
{
fullTypeName = typeName;
- typeName = typeName.Substring(37, typeName.Length - 38);
+ typeName = typeName.Substring(40, typeName.Length - 41);
}
else fullTypeName = null;
return typeName;
diff --git a/PCL.Core.SourceGenerators/System.Runtime.CompilerServices.cs b/PCL.CE.SourceGenerators/System.Runtime.CompilerServices.cs
similarity index 100%
rename from PCL.Core.SourceGenerators/System.Runtime.CompilerServices.cs
rename to PCL.CE.SourceGenerators/System.Runtime.CompilerServices.cs
diff --git a/PCL.Core.Test/App/CommandLineTest.cs b/PCL.CE.Test/App/CommandLineTest.cs
similarity index 96%
rename from PCL.Core.Test/App/CommandLineTest.cs
rename to PCL.CE.Test/App/CommandLineTest.cs
index 2ad94c7bd..53f84afc0 100644
--- a/PCL.Core.Test/App/CommandLineTest.cs
+++ b/PCL.CE.Test/App/CommandLineTest.cs
@@ -2,9 +2,9 @@
using System.Collections.Generic;
using System.Text.Json;
using Microsoft.VisualStudio.TestTools.UnitTesting;
-using PCL.Core.App.Cli;
+using PCL.CE.Core.App.Cli;
-namespace PCL.Core.Test.App;
+namespace PCL.CE.Test.App;
[TestClass]
public sealed class CommandLineTest
diff --git a/PCL.Core.Test/BaseXTest.cs b/PCL.CE.Test/BaseXTest.cs
similarity index 93%
rename from PCL.Core.Test/BaseXTest.cs
rename to PCL.CE.Test/BaseXTest.cs
index 141036b39..e2eabbb9e 100644
--- a/PCL.Core.Test/BaseXTest.cs
+++ b/PCL.CE.Test/BaseXTest.cs
@@ -1,8 +1,8 @@
using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
-using PCL.Core.Utils.Exts;
+using PCL.CE.Core.Utils.Exts;
-namespace PCL.Core.Test;
+namespace PCL.CE.Test;
[TestClass]
public class BaseXTest
diff --git a/PCL.Core.Test/BlurPerformanceTest.cs b/PCL.CE.Test/BlurPerformanceTest.cs
similarity index 98%
rename from PCL.Core.Test/BlurPerformanceTest.cs
rename to PCL.CE.Test/BlurPerformanceTest.cs
index b2188054c..9248a7d4e 100644
--- a/PCL.Core.Test/BlurPerformanceTest.cs
+++ b/PCL.CE.Test/BlurPerformanceTest.cs
@@ -7,9 +7,9 @@
using System.Windows.Media.Effects;
using System.Windows.Media.Imaging;
using Microsoft.VisualStudio.TestTools.UnitTesting;
-using PCL.Core.UI.Effects;
+using PCL.CE.Core.UI.Effects;
-namespace PCL.Core.Test;
+namespace PCL.CE.Test;
[TestClass]
public class BlurTest
@@ -288,7 +288,7 @@ public static class PerformanceTestExamples
///
public static void RunAllTests()
{
- Console.WriteLine("PCL.Core BlurEffect 性能优化测试套件\n");
+ Console.WriteLine("PCL.CE.Core BlurEffect 性能优化测试套件\n");
// 快速对比测试
BlurPerformanceTest.QuickPerformanceComparison();
diff --git a/PCL.Core.Test/ByteHelperTest.cs b/PCL.CE.Test/ByteHelperTest.cs
similarity index 94%
rename from PCL.Core.Test/ByteHelperTest.cs
rename to PCL.CE.Test/ByteHelperTest.cs
index 40352e1ae..31ed24535 100644
--- a/PCL.Core.Test/ByteHelperTest.cs
+++ b/PCL.CE.Test/ByteHelperTest.cs
@@ -2,9 +2,9 @@
using System.Diagnostics;
using System.IO;
using Microsoft.VisualStudio.TestTools.UnitTesting;
-using PCL.Core.IO;
+using PCL.CE.Core.IO;
-namespace PCL.Core.Test;
+namespace PCL.CE.Test;
[TestClass]
public class ByteHelperTest
diff --git a/PCL.Core.Test/DiffTest.cs b/PCL.CE.Test/DiffTest.cs
similarity index 97%
rename from PCL.Core.Test/DiffTest.cs
rename to PCL.CE.Test/DiffTest.cs
index 2ba5e8300..fa8303287 100644
--- a/PCL.Core.Test/DiffTest.cs
+++ b/PCL.CE.Test/DiffTest.cs
@@ -2,9 +2,9 @@
using System.IO;
using System.Threading.Tasks;
using Microsoft.VisualStudio.TestTools.UnitTesting;
-using PCL.Core.Utils.Diff;
+using PCL.CE.Core.Utils.Diff;
-namespace PCL.Core.Test;
+namespace PCL.CE.Test;
[TestClass]
public class DiffTest
diff --git a/PCL.Core.Test/DynamicJsonTest.cs b/PCL.CE.Test/DynamicJsonTest.cs
similarity index 94%
rename from PCL.Core.Test/DynamicJsonTest.cs
rename to PCL.CE.Test/DynamicJsonTest.cs
index 32e0874c5..f0a376a17 100644
--- a/PCL.Core.Test/DynamicJsonTest.cs
+++ b/PCL.CE.Test/DynamicJsonTest.cs
@@ -2,9 +2,9 @@
using System.Dynamic;
using System.Text.Json;
using Microsoft.VisualStudio.TestTools.UnitTesting;
-using PCL.Core.Utils;
+using PCL.CE.Core.Utils;
-namespace PCL.Core.Test
+namespace PCL.CE.Test
{
[TestClass]
public class DynamicJsonTest
diff --git a/PCL.Core.Test/EncodingDetectorTest.cs b/PCL.CE.Test/EncodingDetectorTest.cs
similarity index 94%
rename from PCL.Core.Test/EncodingDetectorTest.cs
rename to PCL.CE.Test/EncodingDetectorTest.cs
index 67c4b8e26..037a5a985 100644
--- a/PCL.Core.Test/EncodingDetectorTest.cs
+++ b/PCL.CE.Test/EncodingDetectorTest.cs
@@ -1,8 +1,8 @@
using System.Text;
using Microsoft.VisualStudio.TestTools.UnitTesting;
-using PCL.Core.Utils.Codecs;
+using PCL.CE.Core.Utils.Codecs;
-namespace PCL.Core.Test;
+namespace PCL.CE.Test;
[TestClass]
public class EncodingDetectorTest
{
diff --git a/PCL.Core.Test/Encryption/AesGcmTest.cs b/PCL.CE.Test/Encryption/AesGcmTest.cs
similarity index 95%
rename from PCL.Core.Test/Encryption/AesGcmTest.cs
rename to PCL.CE.Test/Encryption/AesGcmTest.cs
index 01f82ab91..84f091678 100644
--- a/PCL.Core.Test/Encryption/AesGcmTest.cs
+++ b/PCL.CE.Test/Encryption/AesGcmTest.cs
@@ -2,7 +2,7 @@
using System.Security.Cryptography;
using Microsoft.VisualStudio.TestTools.UnitTesting;
-namespace PCL.Core.Test.Encryption;
+namespace PCL.CE.Test.Encryption;
[TestClass]
public class AesGcmTest
diff --git a/PCL.Core.Test/Encryption/ChaCha20.cs b/PCL.CE.Test/Encryption/ChaCha20.cs
similarity index 95%
rename from PCL.Core.Test/Encryption/ChaCha20.cs
rename to PCL.CE.Test/Encryption/ChaCha20.cs
index 6b33bd5b7..f1ae24811 100644
--- a/PCL.Core.Test/Encryption/ChaCha20.cs
+++ b/PCL.CE.Test/Encryption/ChaCha20.cs
@@ -2,7 +2,7 @@
using System.Security.Cryptography;
using Microsoft.VisualStudio.TestTools.UnitTesting;
-namespace PCL.Core.Test.Encryption;
+namespace PCL.CE.Test.Encryption;
[TestClass]
public class ChaCha20
diff --git a/PCL.Core.Test/Encryption/ChaCha20Poly1305.cs b/PCL.CE.Test/Encryption/ChaCha20Poly1305.cs
similarity index 95%
rename from PCL.Core.Test/Encryption/ChaCha20Poly1305.cs
rename to PCL.CE.Test/Encryption/ChaCha20Poly1305.cs
index 53145e178..d6000ea4a 100644
--- a/PCL.Core.Test/Encryption/ChaCha20Poly1305.cs
+++ b/PCL.CE.Test/Encryption/ChaCha20Poly1305.cs
@@ -2,7 +2,7 @@
using System.Security.Cryptography;
using Microsoft.VisualStudio.TestTools.UnitTesting;
-namespace PCL.Core.Test.Encryption;
+namespace PCL.CE.Test.Encryption;
[TestClass]
public class ChaCha20Poly1305
diff --git a/PCL.Core.Test/JavaTest.cs b/PCL.CE.Test/JavaTest.cs
similarity index 92%
rename from PCL.Core.Test/JavaTest.cs
rename to PCL.CE.Test/JavaTest.cs
index d0e14f3bc..cef413285 100644
--- a/PCL.Core.Test/JavaTest.cs
+++ b/PCL.CE.Test/JavaTest.cs
@@ -1,12 +1,12 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
-using PCL.Core.Minecraft;
-using PCL.Core.Minecraft.Java.Parser;
-using PCL.Core.Minecraft.Java.Scanner;
+using PCL.CE.Core.Minecraft;
+using PCL.CE.Core.Minecraft.Java.Parser;
+using PCL.CE.Core.Minecraft.Java.Scanner;
using System;
using System.Linq;
using System.Threading.Tasks;
-namespace PCL.Core.Test
+namespace PCL.CE.Test
{
[TestClass]
public class JavaTest
diff --git a/PCL.Core.Test/LobbyCodeGenerateTest.cs b/PCL.CE.Test/LobbyCodeGenerateTest.cs
similarity index 89%
rename from PCL.Core.Test/LobbyCodeGenerateTest.cs
rename to PCL.CE.Test/LobbyCodeGenerateTest.cs
index 143ba4e6a..5775bb2d1 100644
--- a/PCL.Core.Test/LobbyCodeGenerateTest.cs
+++ b/PCL.CE.Test/LobbyCodeGenerateTest.cs
@@ -1,8 +1,8 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
-using PCL.Core.Link.Scaffolding;
+using PCL.CE.Core.Link.Scaffolding;
using System;
-namespace PCL.Core.Test;
+namespace PCL.CE.Test;
[TestClass]
public class LobbyCodeGenerateTest
diff --git a/PCL.Core.Test/LoggerTest.cs b/PCL.CE.Test/LoggerTest.cs
similarity index 95%
rename from PCL.Core.Test/LoggerTest.cs
rename to PCL.CE.Test/LoggerTest.cs
index 0245a3355..d0bb2ca25 100644
--- a/PCL.Core.Test/LoggerTest.cs
+++ b/PCL.CE.Test/LoggerTest.cs
@@ -2,9 +2,9 @@
using System.IO;
using System.Threading.Tasks;
using Microsoft.VisualStudio.TestTools.UnitTesting;
-using PCL.Core.Logging;
+using PCL.CE.Core.Logging;
-namespace PCL.Core.Test;
+namespace PCL.CE.Test;
[TestClass]
public class LoggerTest
diff --git a/PCL.Core.Test/MavenTest.cs b/PCL.CE.Test/MavenTest.cs
similarity index 94%
rename from PCL.Core.Test/MavenTest.cs
rename to PCL.CE.Test/MavenTest.cs
index 28beab66b..e7409653c 100644
--- a/PCL.Core.Test/MavenTest.cs
+++ b/PCL.CE.Test/MavenTest.cs
@@ -1,40 +1,40 @@
-using System;
-using Microsoft.VisualStudio.TestTools.UnitTesting;
-using PCL.Core.Minecraft;
-
-[TestClass]
-public class MavenTest
-{
- [TestMethod]
- public void ParsePathAndUri()
- {
- string[] mavenId = ["io.github.copytiao:pclce:0.6.2","io.github.copytiao:pclce:jar:0.6.2",
- "io.github.copytiao:pclce:snapshot:0.6.2",
- "io.github.copytiao:pclce:jar:snapshot:0.6.2"];
- foreach(var id in mavenId)
- {
- var maven = new MavenArtifact(id);
- Console.WriteLine($"Uri: {maven.Resolve("https://copytiao.github.io/maven/copytiao/")}");
- Console.WriteLine($"Path: {maven.Resolve("C:/Users/copytiao/AppData/Roaming/.minecraft/library/maven")}");
- }
- }
- [TestMethod]
- public void ParseInvalidId()
- {
- string[] badIds = [
- "io",
- "io.github.copytiao:luotianyi:yuezhengling:xinchen:pclce:tests:aaa"
- ];
- foreach(var id in badIds)
- {
- try
- {
- var package = new MavenArtifact(id);
- package.Resolve("");
- }catch(FormatException ex)
- {
- Console.WriteLine($"Debug Output: {Environment.NewLine}{ex}");
- }
- }
- }
+using System;
+using Microsoft.VisualStudio.TestTools.UnitTesting;
+using PCL.CE.Core.Minecraft;
+
+[TestClass]
+public class MavenTest
+{
+ [TestMethod]
+ public void ParsePathAndUri()
+ {
+ string[] mavenId = ["io.github.copytiao:pclce:0.6.2","io.github.copytiao:pclce:jar:0.6.2",
+ "io.github.copytiao:pclce:snapshot:0.6.2",
+ "io.github.copytiao:pclce:jar:snapshot:0.6.2"];
+ foreach(var id in mavenId)
+ {
+ var maven = new MavenArtifact(id);
+ Console.WriteLine($"Uri: {maven.Resolve("https://copytiao.github.io/maven/copytiao/")}");
+ Console.WriteLine($"Path: {maven.Resolve("C:/Users/copytiao/AppData/Roaming/.minecraft/library/maven")}");
+ }
+ }
+ [TestMethod]
+ public void ParseInvalidId()
+ {
+ string[] badIds = [
+ "io",
+ "io.github.copytiao:luotianyi:yuezhengling:xinchen:pclce:tests:aaa"
+ ];
+ foreach(var id in badIds)
+ {
+ try
+ {
+ var package = new MavenArtifact(id);
+ package.Resolve("");
+ }catch(FormatException ex)
+ {
+ Console.WriteLine($"Debug Output: {Environment.NewLine}{ex}");
+ }
+ }
+ }
}
\ No newline at end of file
diff --git a/PCL.Core.Test/Minecraft/McPing.cs b/PCL.CE.Test/Minecraft/McPing.cs
similarity index 92%
rename from PCL.Core.Test/Minecraft/McPing.cs
rename to PCL.CE.Test/Minecraft/McPing.cs
index 0621c3ec7..5b07918ae 100644
--- a/PCL.Core.Test/Minecraft/McPing.cs
+++ b/PCL.CE.Test/Minecraft/McPing.cs
@@ -2,9 +2,9 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.Threading.Tasks;
using System.Net.Sockets;
-using PCL.Core.Link.McPing;
+using PCL.CE.Core.Link.McPing;
-namespace PCL.Core.Test.Minecraft;
+namespace PCL.CE.Test.Minecraft;
[TestClass]
public class McPingTest
diff --git a/PCL.Core.Test/Network/DoHQueryTest.cs b/PCL.CE.Test/Network/DoHQueryTest.cs
similarity index 95%
rename from PCL.Core.Test/Network/DoHQueryTest.cs
rename to PCL.CE.Test/Network/DoHQueryTest.cs
index bd76537d4..db83d487a 100644
--- a/PCL.Core.Test/Network/DoHQueryTest.cs
+++ b/PCL.CE.Test/Network/DoHQueryTest.cs
@@ -6,9 +6,9 @@
using Ae.Dns.Protocol.Enums;
using Ae.Dns.Protocol.Records;
using Microsoft.VisualStudio.TestTools.UnitTesting;
-using PCL.Core.IO.Net.Dns;
+using PCL.CE.Core.IO.Net.Dns;
-namespace PCL.Core.Test.Network;
+namespace PCL.CE.Test.Network;
[TestClass]
public class DoHQueryTest
diff --git a/PCL.Core.Test/Network/DohConnection.cs b/PCL.CE.Test/Network/DohConnection.cs
similarity index 93%
rename from PCL.Core.Test/Network/DohConnection.cs
rename to PCL.CE.Test/Network/DohConnection.cs
index 2a339bc6a..4186eee02 100644
--- a/PCL.Core.Test/Network/DohConnection.cs
+++ b/PCL.CE.Test/Network/DohConnection.cs
@@ -3,9 +3,9 @@
using System.Net.Http;
using System.Threading.Tasks;
using Microsoft.VisualStudio.TestTools.UnitTesting;
-using PCL.Core.IO.Net.Http.Client;
+using PCL.CE.Core.IO.Net.Http.Client;
-namespace PCL.Core.Test.Network;
+namespace PCL.CE.Test.Network;
[TestClass]
public class DohConnection
diff --git a/PCL.Core.Test/Network/WebServerTest.cs b/PCL.CE.Test/Network/WebServerTest.cs
similarity index 97%
rename from PCL.Core.Test/Network/WebServerTest.cs
rename to PCL.CE.Test/Network/WebServerTest.cs
index 2091c0481..9ad666a00 100644
--- a/PCL.Core.Test/Network/WebServerTest.cs
+++ b/PCL.CE.Test/Network/WebServerTest.cs
@@ -3,9 +3,9 @@
using System.Net.Http;
using System.Threading.Tasks;
using Microsoft.VisualStudio.TestTools.UnitTesting;
-using PCL.Core.IO.Net.Http;
+using PCL.CE.Core.IO.Net.Http;
-namespace PCL.Core.Test.Network;
+namespace PCL.CE.Test.Network;
[TestClass]
public class WebServerTest
diff --git a/PCL.Core.Test/PCL.Core.Test.csproj b/PCL.CE.Test/PCL.CE.Test.csproj
similarity index 96%
rename from PCL.Core.Test/PCL.Core.Test.csproj
rename to PCL.CE.Test/PCL.CE.Test.csproj
index bdb42018e..22dc0c029 100644
--- a/PCL.Core.Test/PCL.Core.Test.csproj
+++ b/PCL.CE.Test/PCL.CE.Test.csproj
@@ -48,9 +48,6 @@
-
-
-
diff --git a/PCL.Core.Test/Project/Modrinth.cs b/PCL.CE.Test/Project/Modrinth.cs
similarity index 96%
rename from PCL.Core.Test/Project/Modrinth.cs
rename to PCL.CE.Test/Project/Modrinth.cs
index c28f15217..2eb4e76a2 100644
--- a/PCL.Core.Test/Project/Modrinth.cs
+++ b/PCL.CE.Test/Project/Modrinth.cs
@@ -3,7 +3,7 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.Threading.Tasks;
-namespace PCL.Core.Test.Project;
+namespace PCL.CE.Test.Project;
[TestClass]
public class Modrinth
diff --git a/PCL.Core.Test/Properties/AssemblyInfo.cs b/PCL.CE.Test/Properties/AssemblyInfo.cs
similarity index 100%
rename from PCL.Core.Test/Properties/AssemblyInfo.cs
rename to PCL.CE.Test/Properties/AssemblyInfo.cs
diff --git a/PCL.Core.Test/SemVerTest.cs b/PCL.CE.Test/SemVerTest.cs
similarity index 97%
rename from PCL.Core.Test/SemVerTest.cs
rename to PCL.CE.Test/SemVerTest.cs
index 16f62cb60..c1608bfd8 100644
--- a/PCL.Core.Test/SemVerTest.cs
+++ b/PCL.CE.Test/SemVerTest.cs
@@ -1,8 +1,8 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
-using PCL.Core.Utils;
+using PCL.CE.Core.Utils;
-namespace PCL.Core.Test
+namespace PCL.CE.Test
{
[TestClass]
public class SemVerTest
diff --git a/PCL.Core.Test/SnapLiteTest.cs b/PCL.CE.Test/SnapLiteTest.cs
similarity index 90%
rename from PCL.Core.Test/SnapLiteTest.cs
rename to PCL.CE.Test/SnapLiteTest.cs
index c9ed12d98..c6bfc9ffb 100644
--- a/PCL.Core.Test/SnapLiteTest.cs
+++ b/PCL.CE.Test/SnapLiteTest.cs
@@ -2,9 +2,9 @@
using System.IO;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.Threading.Tasks;
-using PCL.Core.Utils.VersionControl;
+using PCL.CE.Core.Utils.VersionControl;
-namespace PCL.Core.Test;
+namespace PCL.CE.Test;
[TestClass]
public class SnapLiteTest
diff --git a/PCL.Core.Test/ToastTest.cs b/PCL.CE.Test/ToastTest.cs
similarity index 51%
rename from PCL.Core.Test/ToastTest.cs
rename to PCL.CE.Test/ToastTest.cs
index 7a8994994..15445f1de 100644
--- a/PCL.Core.Test/ToastTest.cs
+++ b/PCL.CE.Test/ToastTest.cs
@@ -1,8 +1,8 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
-using static PCL.Core.UI.ToastNotification;
+using static PCL.CE.Core.UI.ToastNotification;
-namespace PCL.Core.Test;
+namespace PCL.CE.Test;
[TestClass]
public class ToastTest
@@ -10,6 +10,6 @@ public class ToastTest
[TestMethod]
public void TestToast()
{
- SendToast("A toast notice from PCL.Core!", "Test Toast");
+ SendToast("A toast notice from PCL.CE.Core!", "Test Toast");
}
}
\ No newline at end of file
diff --git a/PCL.Core.Test/Validate/BlacklistValidatorTest.cs b/PCL.CE.Test/Validate/BlacklistValidatorTest.cs
similarity index 93%
rename from PCL.Core.Test/Validate/BlacklistValidatorTest.cs
rename to PCL.CE.Test/Validate/BlacklistValidatorTest.cs
index cee2834ee..7ce174b77 100644
--- a/PCL.Core.Test/Validate/BlacklistValidatorTest.cs
+++ b/PCL.CE.Test/Validate/BlacklistValidatorTest.cs
@@ -1,7 +1,7 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
-using PCL.Core.Utils.Validate;
+using PCL.CE.Core.Utils.Validate;
-namespace PCL.Core.Test.Validate;
+namespace PCL.CE.Test.Validate;
[TestClass]
public class BlacklistValidatorTest
diff --git a/PCL.Core.Test/Validate/FileNameValidatorTest.cs b/PCL.CE.Test/Validate/FileNameValidatorTest.cs
similarity index 96%
rename from PCL.Core.Test/Validate/FileNameValidatorTest.cs
rename to PCL.CE.Test/Validate/FileNameValidatorTest.cs
index adb5456f4..9b7842885 100644
--- a/PCL.Core.Test/Validate/FileNameValidatorTest.cs
+++ b/PCL.CE.Test/Validate/FileNameValidatorTest.cs
@@ -1,7 +1,7 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
-using PCL.Core.Utils.Validate;
+using PCL.CE.Core.Utils.Validate;
-namespace PCL.Core.Test.Validate;
+namespace PCL.CE.Test.Validate;
[TestClass]
public class FileNameValidatorTest
diff --git a/PCL.Core.Test/Validate/FolderNameValidatorTest.cs b/PCL.CE.Test/Validate/FolderNameValidatorTest.cs
similarity index 93%
rename from PCL.Core.Test/Validate/FolderNameValidatorTest.cs
rename to PCL.CE.Test/Validate/FolderNameValidatorTest.cs
index 137be8895..91e3fac97 100644
--- a/PCL.Core.Test/Validate/FolderNameValidatorTest.cs
+++ b/PCL.CE.Test/Validate/FolderNameValidatorTest.cs
@@ -1,7 +1,7 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
-using PCL.Core.Utils.Validate;
+using PCL.CE.Core.Utils.Validate;
-namespace PCL.Core.Test.Validate;
+namespace PCL.CE.Test.Validate;
[TestClass]
public class FolderNameValidatorTest
diff --git a/PCL.Core.Test/Validate/FolderPathValidatorTest.cs b/PCL.CE.Test/Validate/FolderPathValidatorTest.cs
similarity index 94%
rename from PCL.Core.Test/Validate/FolderPathValidatorTest.cs
rename to PCL.CE.Test/Validate/FolderPathValidatorTest.cs
index d805faed7..046e837d4 100644
--- a/PCL.Core.Test/Validate/FolderPathValidatorTest.cs
+++ b/PCL.CE.Test/Validate/FolderPathValidatorTest.cs
@@ -1,7 +1,7 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
-using PCL.Core.Utils.Validate;
+using PCL.CE.Core.Utils.Validate;
-namespace PCL.Core.Test.Validate;
+namespace PCL.CE.Test.Validate;
[TestClass]
public class FolderPathValidatorTest
diff --git a/PCL.Core.Test/Validate/HttpAndUncValidatorTest.cs b/PCL.CE.Test/Validate/HttpAndUncValidatorTest.cs
similarity index 93%
rename from PCL.Core.Test/Validate/HttpAndUncValidatorTest.cs
rename to PCL.CE.Test/Validate/HttpAndUncValidatorTest.cs
index 9b6e3a5e5..1efd33239 100644
--- a/PCL.Core.Test/Validate/HttpAndUncValidatorTest.cs
+++ b/PCL.CE.Test/Validate/HttpAndUncValidatorTest.cs
@@ -1,7 +1,7 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
-using PCL.Core.Utils.Validate;
+using PCL.CE.Core.Utils.Validate;
-namespace PCL.Core.Test.Validate;
+namespace PCL.CE.Test.Validate;
[TestClass]
public class HttpAndUncValidatorTest
diff --git a/PCL.Core.Test/Validate/HttpValidatorTest.cs b/PCL.CE.Test/Validate/HttpValidatorTest.cs
similarity index 92%
rename from PCL.Core.Test/Validate/HttpValidatorTest.cs
rename to PCL.CE.Test/Validate/HttpValidatorTest.cs
index 2d842afbe..d5dd53ac9 100644
--- a/PCL.Core.Test/Validate/HttpValidatorTest.cs
+++ b/PCL.CE.Test/Validate/HttpValidatorTest.cs
@@ -1,7 +1,7 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
-using PCL.Core.Utils.Validate;
+using PCL.CE.Core.Utils.Validate;
-namespace PCL.Core.Test.Validate;
+namespace PCL.CE.Test.Validate;
[TestClass]
public class HttpValidatorTest
diff --git a/PCL.Core.Test/Validate/IntValidatorTest.cs b/PCL.CE.Test/Validate/IntValidatorTest.cs
similarity index 92%
rename from PCL.Core.Test/Validate/IntValidatorTest.cs
rename to PCL.CE.Test/Validate/IntValidatorTest.cs
index d89f7a9ef..f7a95cbb1 100644
--- a/PCL.Core.Test/Validate/IntValidatorTest.cs
+++ b/PCL.CE.Test/Validate/IntValidatorTest.cs
@@ -1,7 +1,7 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
-using PCL.Core.Utils.Validate;
+using PCL.CE.Core.Utils.Validate;
-namespace PCL.Core.Test.Validate;
+namespace PCL.CE.Test.Validate;
[TestClass]
public class IntValidatorTest
diff --git a/PCL.Core.Test/Validate/NullOrEmptyValidatorTest.cs b/PCL.CE.Test/Validate/NullOrEmptyValidatorTest.cs
similarity index 91%
rename from PCL.Core.Test/Validate/NullOrEmptyValidatorTest.cs
rename to PCL.CE.Test/Validate/NullOrEmptyValidatorTest.cs
index 2d59a714b..954b0b06d 100644
--- a/PCL.Core.Test/Validate/NullOrEmptyValidatorTest.cs
+++ b/PCL.CE.Test/Validate/NullOrEmptyValidatorTest.cs
@@ -1,7 +1,7 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
-using PCL.Core.Utils.Validate;
+using PCL.CE.Core.Utils.Validate;
-namespace PCL.Core.Test.Validate;
+namespace PCL.CE.Test.Validate;
[TestClass]
public class NullOrEmptyValidatorTest
diff --git a/PCL.Core.Test/Validate/NullOrWhiteSpaceValidatorTest.cs b/PCL.CE.Test/Validate/NullOrWhiteSpaceValidatorTest.cs
similarity index 91%
rename from PCL.Core.Test/Validate/NullOrWhiteSpaceValidatorTest.cs
rename to PCL.CE.Test/Validate/NullOrWhiteSpaceValidatorTest.cs
index c21213d11..e967fab15 100644
--- a/PCL.Core.Test/Validate/NullOrWhiteSpaceValidatorTest.cs
+++ b/PCL.CE.Test/Validate/NullOrWhiteSpaceValidatorTest.cs
@@ -1,7 +1,7 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
-using PCL.Core.Utils.Validate;
+using PCL.CE.Core.Utils.Validate;
-namespace PCL.Core.Test.Validate;
+namespace PCL.CE.Test.Validate;
[TestClass]
public class NullOrWhiteSpaceValidatorTest
diff --git a/PCL.Core.Test/Validate/StringLengthValidatorTest.cs b/PCL.CE.Test/Validate/StringLengthValidatorTest.cs
similarity index 94%
rename from PCL.Core.Test/Validate/StringLengthValidatorTest.cs
rename to PCL.CE.Test/Validate/StringLengthValidatorTest.cs
index 3e350a8fc..04de1e4bd 100644
--- a/PCL.Core.Test/Validate/StringLengthValidatorTest.cs
+++ b/PCL.CE.Test/Validate/StringLengthValidatorTest.cs
@@ -1,7 +1,7 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
-using PCL.Core.Utils.Validate;
+using PCL.CE.Core.Utils.Validate;
-namespace PCL.Core.Test.Validate;
+namespace PCL.CE.Test.Validate;
[TestClass]
public class StringLengthValidatorTest
diff --git a/PCL.CE.slnx b/PCL.CE.slnx
new file mode 100644
index 000000000..530287971
--- /dev/null
+++ b/PCL.CE.slnx
@@ -0,0 +1,16 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Plain Craft Launcher 2/Application.xaml b/PCL.CE/Application.xaml
similarity index 99%
rename from Plain Craft Launcher 2/Application.xaml
rename to PCL.CE/Application.xaml
index 138a25548..9cf67949d 100644
--- a/Plain Craft Launcher 2/Application.xaml
+++ b/PCL.CE/Application.xaml
@@ -1,11 +1,11 @@
-
diff --git a/Plain Craft Launcher 2/Application.xaml.cs b/PCL.CE/Application.xaml.cs
similarity index 98%
rename from Plain Craft Launcher 2/Application.xaml.cs
rename to PCL.CE/Application.xaml.cs
index 1e029bda3..b443c8fcd 100644
--- a/Plain Craft Launcher 2/Application.xaml.cs
+++ b/PCL.CE/Application.xaml.cs
@@ -6,13 +6,13 @@
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
using System.Windows.Threading;
-using PCL.Core.App;
-using PCL.Core.App.IoC;
-using PCL.Core.Logging;
-using PCL.Core.Utils;
-using PCL.Core.Utils.OS;
+using PCL.CE.Core.App;
+using PCL.CE.Core.App.IoC;
+using PCL.CE.Core.Logging;
+using PCL.CE.Core.Utils;
+using PCL.CE.Core.Utils.OS;
-namespace PCL;
+namespace PCL.CE;
public partial class Application
{
diff --git a/PCL.Core/AssemblyInfo.cs b/PCL.CE/AssemblyInfo.cs
similarity index 51%
rename from PCL.Core/AssemblyInfo.cs
rename to PCL.CE/AssemblyInfo.cs
index ae80aaabc..c5ec01f24 100644
--- a/PCL.Core/AssemblyInfo.cs
+++ b/PCL.CE/AssemblyInfo.cs
@@ -1,12 +1,12 @@
using System.Runtime.CompilerServices;
using System.Windows.Markup;
-[assembly: XmlnsDefinition("https://ce.pclc.cc/core/ui/animation", "PCL.Core.UI.Animation")]
-[assembly: XmlnsDefinition("https://ce.pclc.cc/core/ui/animation", "PCL.Core.UI.Animation.Core")]
-[assembly: XmlnsDefinition("https://ce.pclc.cc/core/ui/animation", "PCL.Core.UI.Animation.Easings")]
+[assembly: XmlnsDefinition("https://ce.pclc.cc/core/ui/animation", "PCL.CE.Core.UI.Animation")]
+[assembly: XmlnsDefinition("https://ce.pclc.cc/core/ui/animation", "PCL.CE.Core.UI.Animation.Core")]
+[assembly: XmlnsDefinition("https://ce.pclc.cc/core/ui/animation", "PCL.CE.Core.UI.Animation.Easings")]
[assembly: XmlnsPrefix("https://ce.pclc.cc/core/ui/animation", "ani")]
-[assembly:XmlnsDefinition("https://ce.pclc.cc/core/utils/validate", "PCL.Core.Utils.Validate")]
-[assembly:XmlnsPrefix("https://ce.pclc.cc/core/utils/validate", "val")]
+[assembly: XmlnsDefinition("https://ce.pclc.cc/core/utils/validate", "PCL.CE.Core.Utils.Validate")]
+[assembly: XmlnsPrefix("https://ce.pclc.cc/core/utils/validate", "val")]
-[assembly: DisableRuntimeMarshalling]
+[assembly: DisableRuntimeMarshalling]
\ No newline at end of file
diff --git a/Plain Craft Launcher 2/Controls/AnimatedBackgroundGrid.cs b/PCL.CE/Controls/AnimatedBackgroundGrid.cs
similarity index 99%
rename from Plain Craft Launcher 2/Controls/AnimatedBackgroundGrid.cs
rename to PCL.CE/Controls/AnimatedBackgroundGrid.cs
index c9a3ec533..29d9f6281 100644
--- a/Plain Craft Launcher 2/Controls/AnimatedBackgroundGrid.cs
+++ b/PCL.CE/Controls/AnimatedBackgroundGrid.cs
@@ -2,7 +2,7 @@
using System.Windows.Controls;
using System.Windows.Media;
-namespace PCL;
+namespace PCL.CE;
public class AnimatedBackgroundGrid : Grid
{
diff --git a/Plain Craft Launcher 2/Controls/Behaviors/ClipboardInterceptor.cs b/PCL.CE/Controls/Behaviors/ClipboardInterceptor.cs
similarity index 99%
rename from Plain Craft Launcher 2/Controls/Behaviors/ClipboardInterceptor.cs
rename to PCL.CE/Controls/Behaviors/ClipboardInterceptor.cs
index 223b20bd6..33a1888db 100644
--- a/Plain Craft Launcher 2/Controls/Behaviors/ClipboardInterceptor.cs
+++ b/PCL.CE/Controls/Behaviors/ClipboardInterceptor.cs
@@ -21,7 +21,7 @@
//
// Date: 2025-07-03
-namespace PCL.Controls.Behaviors;
+namespace PCL.CE.Controls.Behaviors;
public sealed class ClipboardInterceptor
{
diff --git a/Plain Craft Launcher 2/Controls/Behaviors/LazyLoadBehavior.cs b/PCL.CE/Controls/Behaviors/LazyLoadBehavior.cs
similarity index 99%
rename from Plain Craft Launcher 2/Controls/Behaviors/LazyLoadBehavior.cs
rename to PCL.CE/Controls/Behaviors/LazyLoadBehavior.cs
index 1af433fe3..be747319c 100644
--- a/Plain Craft Launcher 2/Controls/Behaviors/LazyLoadBehavior.cs
+++ b/PCL.CE/Controls/Behaviors/LazyLoadBehavior.cs
@@ -3,7 +3,7 @@
using System.Windows.Media;
using Microsoft.Xaml.Behaviors;
-namespace PCL;
+namespace PCL.CE;
internal static class LazyLoader
{
diff --git a/Plain Craft Launcher 2/Controls/FontSelector.xaml b/PCL.CE/Controls/FontSelector.xaml
similarity index 92%
rename from Plain Craft Launcher 2/Controls/FontSelector.xaml
rename to PCL.CE/Controls/FontSelector.xaml
index 41d96da2c..c9b7bdbeb 100644
--- a/Plain Craft Launcher 2/Controls/FontSelector.xaml
+++ b/PCL.CE/Controls/FontSelector.xaml
@@ -1,9 +1,9 @@
-
diff --git a/Plain Craft Launcher 2/Controls/FontSelector.xaml.cs b/PCL.CE/Controls/FontSelector.xaml.cs
similarity index 98%
rename from Plain Craft Launcher 2/Controls/FontSelector.xaml.cs
rename to PCL.CE/Controls/FontSelector.xaml.cs
index 1084b918b..9dc851c81 100644
--- a/Plain Craft Launcher 2/Controls/FontSelector.xaml.cs
+++ b/PCL.CE/Controls/FontSelector.xaml.cs
@@ -2,10 +2,10 @@
using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;
-using PCL.Core.Logging;
-using PCL.Core.Utils.Exts;
+using PCL.CE.Core.Logging;
+using PCL.CE.Core.Utils.Exts;
-namespace PCL;
+namespace PCL.CE;
public partial class FontSelector
{
diff --git a/Plain Craft Launcher 2/Controls/IMyRadio.cs b/PCL.CE/Controls/IMyRadio.cs
similarity index 93%
rename from Plain Craft Launcher 2/Controls/IMyRadio.cs
rename to PCL.CE/Controls/IMyRadio.cs
index 063906dfe..0f728f116 100644
--- a/Plain Craft Launcher 2/Controls/IMyRadio.cs
+++ b/PCL.CE/Controls/IMyRadio.cs
@@ -1,4 +1,4 @@
-namespace PCL;
+namespace PCL.CE;
public interface IMyRadio
{
diff --git a/Plain Craft Launcher 2/Controls/MinecraftServer.xaml b/PCL.CE/Controls/MinecraftServer.xaml
similarity index 90%
rename from Plain Craft Launcher 2/Controls/MinecraftServer.xaml
rename to PCL.CE/Controls/MinecraftServer.xaml
index b9cf8d22c..b4b343872 100644
--- a/Plain Craft Launcher 2/Controls/MinecraftServer.xaml
+++ b/PCL.CE/Controls/MinecraftServer.xaml
@@ -1,9 +1,9 @@
-
diff --git a/Plain Craft Launcher 2/Controls/MinecraftServer.xaml.cs b/PCL.CE/Controls/MinecraftServer.xaml.cs
similarity index 93%
rename from Plain Craft Launcher 2/Controls/MinecraftServer.xaml.cs
rename to PCL.CE/Controls/MinecraftServer.xaml.cs
index c638aa2d4..d17c812fb 100644
--- a/Plain Craft Launcher 2/Controls/MinecraftServer.xaml.cs
+++ b/PCL.CE/Controls/MinecraftServer.xaml.cs
@@ -2,17 +2,17 @@
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
using System.Windows.Media;
-using PCL.Core.Link.McPing;
-using PCL.Core.Link.McPing.Model;
-using PCL.Core.Minecraft;
-using PCL.Core.UI;
+using PCL.CE.Core.Link.McPing;
+using PCL.CE.Core.Link.McPing.Model;
+using PCL.CE.Core.Minecraft;
+using PCL.CE.Core.UI;
-namespace PCL;
+namespace PCL.CE;
public partial class MinecraftServer : Grid
{
private const string FallbackImageUri =
- "pack://application:,,,/Plain Craft Launcher 2;component/Images/Icons/DefaultServer.png";
+ "pack://application:,,,/PCL.CE;component/Images/Icons/DefaultServer.png";
private static readonly DependencyProperty AddressProperty = DependencyProperty.Register(nameof(Address),
typeof(string), typeof(MinecraftServer), new PropertyMetadata(string.Empty, OnAddressChanged));
diff --git a/Plain Craft Launcher 2/Controls/MinecraftServerQuery.xaml b/PCL.CE/Controls/MinecraftServerQuery.xaml
similarity index 87%
rename from Plain Craft Launcher 2/Controls/MinecraftServerQuery.xaml
rename to PCL.CE/Controls/MinecraftServerQuery.xaml
index 5fa616528..b06c8d894 100644
--- a/Plain Craft Launcher 2/Controls/MinecraftServerQuery.xaml
+++ b/PCL.CE/Controls/MinecraftServerQuery.xaml
@@ -1,11 +1,11 @@
-
@@ -29,7 +29,7 @@
-
diff --git a/Plain Craft Launcher 2/Controls/MinecraftServerQuery.xaml.cs b/PCL.CE/Controls/MinecraftServerQuery.xaml.cs
similarity index 97%
rename from Plain Craft Launcher 2/Controls/MinecraftServerQuery.xaml.cs
rename to PCL.CE/Controls/MinecraftServerQuery.xaml.cs
index 8b8158d2d..2169daa5e 100644
--- a/Plain Craft Launcher 2/Controls/MinecraftServerQuery.xaml.cs
+++ b/PCL.CE/Controls/MinecraftServerQuery.xaml.cs
@@ -2,7 +2,7 @@
using System.Windows.Controls;
using System.Windows.Input;
-namespace PCL;
+namespace PCL.CE;
public partial class MinecraftServerQuery : Grid
{
diff --git a/Plain Craft Launcher 2/Controls/MyButton.xaml b/PCL.CE/Controls/MyButton.xaml
similarity index 97%
rename from Plain Craft Launcher 2/Controls/MyButton.xaml
rename to PCL.CE/Controls/MyButton.xaml
index 7ba584a10..2142d35a3 100644
--- a/Plain Craft Launcher 2/Controls/MyButton.xaml
+++ b/PCL.CE/Controls/MyButton.xaml
@@ -1,4 +1,4 @@
-
diff --git a/Plain Craft Launcher 2/Controls/MyExtraButton.xaml.cs b/PCL.CE/Controls/MyExtraButton.xaml.cs
similarity index 99%
rename from Plain Craft Launcher 2/Controls/MyExtraButton.xaml.cs
rename to PCL.CE/Controls/MyExtraButton.xaml.cs
index f519d851f..7c1b917bf 100644
--- a/Plain Craft Launcher 2/Controls/MyExtraButton.xaml.cs
+++ b/PCL.CE/Controls/MyExtraButton.xaml.cs
@@ -3,7 +3,7 @@
using System.Windows.Input;
using System.Windows.Media;
-namespace PCL;
+namespace PCL.CE;
public partial class MyExtraButton
{
diff --git a/Plain Craft Launcher 2/Controls/MyExtraTextButton.xaml b/PCL.CE/Controls/MyExtraTextButton.xaml
similarity index 96%
rename from Plain Craft Launcher 2/Controls/MyExtraTextButton.xaml
rename to PCL.CE/Controls/MyExtraTextButton.xaml
index d09b57c6f..c1c4fbca6 100644
--- a/Plain Craft Launcher 2/Controls/MyExtraTextButton.xaml
+++ b/PCL.CE/Controls/MyExtraTextButton.xaml
@@ -3,7 +3,7 @@
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- x:Name="PanBack" mc:Ignorable="d" x:Class="PCL.MyExtraTextButton"
+ x:Name="PanBack" mc:Ignorable="d" x:Class="PCL.CE.MyExtraTextButton"
RenderTransformOrigin="0.5,0.5" ToolTipService.Placement="Left" Height="52" Margin="20">
diff --git a/Plain Craft Launcher 2/Controls/MyExtraTextButton.xaml.cs b/PCL.CE/Controls/MyExtraTextButton.xaml.cs
similarity index 99%
rename from Plain Craft Launcher 2/Controls/MyExtraTextButton.xaml.cs
rename to PCL.CE/Controls/MyExtraTextButton.xaml.cs
index 03116a6c1..677c0de06 100644
--- a/Plain Craft Launcher 2/Controls/MyExtraTextButton.xaml.cs
+++ b/PCL.CE/Controls/MyExtraTextButton.xaml.cs
@@ -4,7 +4,7 @@
using System.Windows.Markup;
using System.Windows.Media;
-namespace PCL;
+namespace PCL.CE;
[ContentProperty("Inlines")]
public partial class MyExtraTextButton
diff --git a/Plain Craft Launcher 2/Controls/MyHint.xaml b/PCL.CE/Controls/MyHint.xaml
similarity index 92%
rename from Plain Craft Launcher 2/Controls/MyHint.xaml
rename to PCL.CE/Controls/MyHint.xaml
index b4dff47e9..814aed18a 100644
--- a/Plain Craft Launcher 2/Controls/MyHint.xaml
+++ b/PCL.CE/Controls/MyHint.xaml
@@ -1,7 +1,7 @@
-
diff --git a/Plain Craft Launcher 2/Controls/MyHint.xaml.cs b/PCL.CE/Controls/MyHint.xaml.cs
similarity index 99%
rename from Plain Craft Launcher 2/Controls/MyHint.xaml.cs
rename to PCL.CE/Controls/MyHint.xaml.cs
index f99485787..720e4d8f1 100644
--- a/Plain Craft Launcher 2/Controls/MyHint.xaml.cs
+++ b/PCL.CE/Controls/MyHint.xaml.cs
@@ -3,11 +3,11 @@
using System.Windows.Input;
using System.Windows.Markup;
-using PCL.Core.App;
-using PCL.Core.UI.Theme;
+using PCL.CE.Core.App;
+using PCL.CE.Core.UI.Theme;
using System.Windows.Controls;
-namespace PCL;
+namespace PCL.CE;
[ContentProperty("Inlines")]
public partial class MyHint
diff --git a/Plain Craft Launcher 2/Controls/MyIconButton.xaml b/PCL.CE/Controls/MyIconButton.xaml
similarity index 94%
rename from Plain Craft Launcher 2/Controls/MyIconButton.xaml
rename to PCL.CE/Controls/MyIconButton.xaml
index ff7f5f228..4f3b5c3e9 100644
--- a/Plain Craft Launcher 2/Controls/MyIconButton.xaml
+++ b/PCL.CE/Controls/MyIconButton.xaml
@@ -1,4 +1,4 @@
-
diff --git a/Plain Craft Launcher 2/Controls/MyIconButton.xaml.cs b/PCL.CE/Controls/MyIconButton.xaml.cs
similarity index 99%
rename from Plain Craft Launcher 2/Controls/MyIconButton.xaml.cs
rename to PCL.CE/Controls/MyIconButton.xaml.cs
index 0f599b6a8..66242f0e6 100644
--- a/Plain Craft Launcher 2/Controls/MyIconButton.xaml.cs
+++ b/PCL.CE/Controls/MyIconButton.xaml.cs
@@ -4,7 +4,7 @@
using System.Windows.Shapes;
using System.Windows.Controls;
-namespace PCL;
+namespace PCL.CE;
public partial class MyIconButton
{
diff --git a/Plain Craft Launcher 2/Controls/MyIconTextButton.xaml b/PCL.CE/Controls/MyIconTextButton.xaml
similarity index 92%
rename from Plain Craft Launcher 2/Controls/MyIconTextButton.xaml
rename to PCL.CE/Controls/MyIconTextButton.xaml
index 5dcb78359..ffb7fee3c 100644
--- a/Plain Craft Launcher 2/Controls/MyIconTextButton.xaml
+++ b/PCL.CE/Controls/MyIconTextButton.xaml
@@ -1,4 +1,4 @@
-
diff --git a/Plain Craft Launcher 2/Controls/MyLoading.xaml.cs b/PCL.CE/Controls/MyLoading.xaml.cs
similarity index 99%
rename from Plain Craft Launcher 2/Controls/MyLoading.xaml.cs
rename to PCL.CE/Controls/MyLoading.xaml.cs
index 97ce6b4fc..cd7a36b46 100644
--- a/Plain Craft Launcher 2/Controls/MyLoading.xaml.cs
+++ b/PCL.CE/Controls/MyLoading.xaml.cs
@@ -2,9 +2,9 @@
using System.Windows;
using System.Windows.Input;
using System.Windows.Media;
-using static PCL.MyLoading;
+using static PCL.CE.MyLoading;
-namespace PCL;
+namespace PCL.CE;
public partial class MyLoading
{
diff --git a/Plain Craft Launcher 2/Controls/MyMenuItem.cs b/PCL.CE/Controls/MyMenuItem.cs
similarity index 98%
rename from Plain Craft Launcher 2/Controls/MyMenuItem.cs
rename to PCL.CE/Controls/MyMenuItem.cs
index 9fedff5ce..42ce59511 100644
--- a/Plain Craft Launcher 2/Controls/MyMenuItem.cs
+++ b/PCL.CE/Controls/MyMenuItem.cs
@@ -2,9 +2,9 @@
using System.Windows.Controls;
using System.Windows.Media;
using System.Windows.Shapes;
-using PCL.Core.App;
+using PCL.CE.Core.App;
-namespace PCL;
+namespace PCL.CE;
public class MyMenuItem : MenuItem
{
diff --git a/Plain Craft Launcher 2/Controls/MyMsg/MyMsgInput.xaml b/PCL.CE/Controls/MyMsg/MyMsgInput.xaml
similarity index 97%
rename from Plain Craft Launcher 2/Controls/MyMsg/MyMsgInput.xaml
rename to PCL.CE/Controls/MyMsg/MyMsgInput.xaml
index f0a783de9..b90be8493 100644
--- a/Plain Craft Launcher 2/Controls/MyMsg/MyMsgInput.xaml
+++ b/PCL.CE/Controls/MyMsg/MyMsgInput.xaml
@@ -1,7 +1,7 @@
-
diff --git a/Plain Craft Launcher 2/Controls/MyMsg/MyMsgInput.xaml.cs b/PCL.CE/Controls/MyMsg/MyMsgInput.xaml.cs
similarity index 99%
rename from Plain Craft Launcher 2/Controls/MyMsg/MyMsgInput.xaml.cs
rename to PCL.CE/Controls/MyMsg/MyMsgInput.xaml.cs
index 4ee3b41f3..5b3f5414e 100644
--- a/Plain Craft Launcher 2/Controls/MyMsg/MyMsgInput.xaml.cs
+++ b/PCL.CE/Controls/MyMsg/MyMsgInput.xaml.cs
@@ -2,9 +2,9 @@
using System.Windows.Controls;
using System.Windows.Input;
using System.Windows.Interop;
-using PCL.Core.UI.Controls;
+using PCL.CE.Core.UI.Controls;
-namespace PCL;
+namespace PCL.CE;
public partial class MyMsgInput
{
diff --git a/Plain Craft Launcher 2/Controls/MyMsg/MyMsgMarkdown.xaml b/PCL.CE/Controls/MyMsg/MyMsgMarkdown.xaml
similarity index 97%
rename from Plain Craft Launcher 2/Controls/MyMsg/MyMsgMarkdown.xaml
rename to PCL.CE/Controls/MyMsg/MyMsgMarkdown.xaml
index d34fd682f..450a9abf9 100644
--- a/Plain Craft Launcher 2/Controls/MyMsg/MyMsgMarkdown.xaml
+++ b/PCL.CE/Controls/MyMsg/MyMsgMarkdown.xaml
@@ -1,7 +1,7 @@
-
diff --git a/Plain Craft Launcher 2/Controls/MyMsg/MyMsgMarkdown.xaml.cs b/PCL.CE/Controls/MyMsg/MyMsgMarkdown.xaml.cs
similarity index 99%
rename from Plain Craft Launcher 2/Controls/MyMsg/MyMsgMarkdown.xaml.cs
rename to PCL.CE/Controls/MyMsg/MyMsgMarkdown.xaml.cs
index b46a21b67..51f584e26 100644
--- a/Plain Craft Launcher 2/Controls/MyMsg/MyMsgMarkdown.xaml.cs
+++ b/PCL.CE/Controls/MyMsg/MyMsgMarkdown.xaml.cs
@@ -2,9 +2,9 @@
using System.Windows.Controls;
using System.Windows.Input;
using System.Windows.Interop;
-using PCL.Core.UI.Controls;
+using PCL.CE.Core.UI.Controls;
-namespace PCL;
+namespace PCL.CE;
public partial class MyMsgMarkdown
{
diff --git a/Plain Craft Launcher 2/Controls/MyMsg/MyMsgSelect.xaml b/PCL.CE/Controls/MyMsg/MyMsgSelect.xaml
similarity index 97%
rename from Plain Craft Launcher 2/Controls/MyMsg/MyMsgSelect.xaml
rename to PCL.CE/Controls/MyMsg/MyMsgSelect.xaml
index 1ba30ccf8..b49a88860 100644
--- a/Plain Craft Launcher 2/Controls/MyMsg/MyMsgSelect.xaml
+++ b/PCL.CE/Controls/MyMsg/MyMsgSelect.xaml
@@ -1,7 +1,7 @@
-
diff --git a/Plain Craft Launcher 2/Controls/MyMsg/MyMsgSelect.xaml.cs b/PCL.CE/Controls/MyMsg/MyMsgSelect.xaml.cs
similarity index 99%
rename from Plain Craft Launcher 2/Controls/MyMsg/MyMsgSelect.xaml.cs
rename to PCL.CE/Controls/MyMsg/MyMsgSelect.xaml.cs
index 7824eacee..c94c26f03 100644
--- a/Plain Craft Launcher 2/Controls/MyMsg/MyMsgSelect.xaml.cs
+++ b/PCL.CE/Controls/MyMsg/MyMsgSelect.xaml.cs
@@ -3,9 +3,9 @@
using System.Windows.Controls;
using System.Windows.Input;
using System.Windows.Interop;
-using PCL.Core.UI.Controls;
+using PCL.CE.Core.UI.Controls;
-namespace PCL;
+namespace PCL.CE;
public partial class MyMsgSelect
{
diff --git a/Plain Craft Launcher 2/Controls/MyMsg/MyMsgText.xaml b/PCL.CE/Controls/MyMsg/MyMsgText.xaml
similarity index 97%
rename from Plain Craft Launcher 2/Controls/MyMsg/MyMsgText.xaml
rename to PCL.CE/Controls/MyMsg/MyMsgText.xaml
index ed540acd2..40bf08646 100644
--- a/Plain Craft Launcher 2/Controls/MyMsg/MyMsgText.xaml
+++ b/PCL.CE/Controls/MyMsg/MyMsgText.xaml
@@ -1,7 +1,7 @@
-
diff --git a/Plain Craft Launcher 2/Controls/MyMsg/MyMsgText.xaml.cs b/PCL.CE/Controls/MyMsg/MyMsgText.xaml.cs
similarity index 99%
rename from Plain Craft Launcher 2/Controls/MyMsg/MyMsgText.xaml.cs
rename to PCL.CE/Controls/MyMsg/MyMsgText.xaml.cs
index 2cf1bd49b..a63597cf8 100644
--- a/Plain Craft Launcher 2/Controls/MyMsg/MyMsgText.xaml.cs
+++ b/PCL.CE/Controls/MyMsg/MyMsgText.xaml.cs
@@ -2,9 +2,9 @@
using System.Windows.Controls;
using System.Windows.Input;
using System.Windows.Interop;
-using PCL.Core.UI.Controls;
+using PCL.CE.Core.UI.Controls;
-namespace PCL;
+namespace PCL.CE;
public partial class MyMsgText
{
diff --git a/Plain Craft Launcher 2/Controls/MyPageLeft.cs b/PCL.CE/Controls/MyPageLeft.cs
similarity index 99%
rename from Plain Craft Launcher 2/Controls/MyPageLeft.cs
rename to PCL.CE/Controls/MyPageLeft.cs
index a645e17d1..340aa2afe 100644
--- a/Plain Craft Launcher 2/Controls/MyPageLeft.cs
+++ b/PCL.CE/Controls/MyPageLeft.cs
@@ -2,7 +2,7 @@
using System.Windows.Controls;
using System.Windows.Media;
-namespace PCL;
+namespace PCL.CE;
public class MyPageLeft : Grid
{
diff --git a/Plain Craft Launcher 2/Controls/MyPageRight.cs b/PCL.CE/Controls/MyPageRight.cs
similarity index 99%
rename from Plain Craft Launcher 2/Controls/MyPageRight.cs
rename to PCL.CE/Controls/MyPageRight.cs
index 329fa4ca2..d54832c06 100644
--- a/Plain Craft Launcher 2/Controls/MyPageRight.cs
+++ b/PCL.CE/Controls/MyPageRight.cs
@@ -2,9 +2,9 @@
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Media;
-using static PCL.ModLoader;
+using static PCL.CE.ModLoader;
-namespace PCL;
+namespace PCL.CE;
public class MyPageRight : AdornerDecorator
{
diff --git a/Plain Craft Launcher 2/Controls/MyRadioBox.xaml b/PCL.CE/Controls/MyRadioBox.xaml
similarity index 96%
rename from Plain Craft Launcher 2/Controls/MyRadioBox.xaml
rename to PCL.CE/Controls/MyRadioBox.xaml
index fe76415a3..8cd9d140e 100644
--- a/Plain Craft Launcher 2/Controls/MyRadioBox.xaml
+++ b/PCL.CE/Controls/MyRadioBox.xaml
@@ -1,4 +1,4 @@
-
diff --git a/Plain Craft Launcher 2/Controls/MySearchBox.xaml.cs b/PCL.CE/Controls/MySearchBox.xaml.cs
similarity index 99%
rename from Plain Craft Launcher 2/Controls/MySearchBox.xaml.cs
rename to PCL.CE/Controls/MySearchBox.xaml.cs
index d2067d959..5ee366ffe 100644
--- a/Plain Craft Launcher 2/Controls/MySearchBox.xaml.cs
+++ b/PCL.CE/Controls/MySearchBox.xaml.cs
@@ -2,7 +2,7 @@
using System.Windows.Controls;
using System.Windows.Input;
-namespace PCL;
+namespace PCL.CE;
public partial class MySearchBox : MyCard
{
diff --git a/Plain Craft Launcher 2/Controls/MySlider.xaml b/PCL.CE/Controls/MySlider.xaml
similarity index 98%
rename from Plain Craft Launcher 2/Controls/MySlider.xaml
rename to PCL.CE/Controls/MySlider.xaml
index f73a30bdf..5669ba5a0 100644
--- a/Plain Craft Launcher 2/Controls/MySlider.xaml
+++ b/PCL.CE/Controls/MySlider.xaml
@@ -1,4 +1,4 @@
- : FrameworkElement where T : FrameworkElement
{
diff --git a/PCL.Core/App/Basics.cs b/PCL.CE/Core/App/Basics.cs
similarity index 97%
rename from PCL.Core/App/Basics.cs
rename to PCL.CE/Core/App/Basics.cs
index 3be72a923..23fd176c7 100644
--- a/PCL.Core/App/Basics.cs
+++ b/PCL.CE/Core/App/Basics.cs
@@ -6,10 +6,10 @@
using System.Text.Json;
using System.Threading;
using System.Windows;
-using PCL.Core.Logging;
-using PCL.Core.Utils;
+using PCL.CE.Core.Logging;
+using PCL.CE.Core.Utils;
-namespace PCL.Core.App;
+namespace PCL.CE.Core.App;
///
/// 基础工具集。
@@ -22,7 +22,7 @@ public static class Basics
/// 启动器元数据。
///
public static MetadataModel Metadata { get; } = JsonSerializer.Deserialize(
- Assembly.GetEntryAssembly()!.GetManifestResourceStream("PCL.metadata.json")!)!;
+ Assembly.GetEntryAssembly()!.GetManifestResourceStream("PCL.CE.metadata.json")!)!;
///
/// 版本名称。
@@ -176,7 +176,7 @@ public static void OpenPath(string path, string? workingDirectory = null)
return resourceInfo?.Stream;
}
- private const string AssemblyImagePath = "pack://application:,,,/Plain Craft Launcher 2;component/Images/";
+ private const string AssemblyImagePath = "pack://application:,,,/PCL.CE;component/Images/";
public static string GetAppImagePath(string imageName) => AssemblyImagePath + imageName;
#endregion
diff --git a/PCL.Core/App/Cli/ArgumentValueKind.cs b/PCL.CE/Core/App/Cli/ArgumentValueKind.cs
similarity index 66%
rename from PCL.Core/App/Cli/ArgumentValueKind.cs
rename to PCL.CE/Core/App/Cli/ArgumentValueKind.cs
index 3d687db04..60a5fa10a 100644
--- a/PCL.Core/App/Cli/ArgumentValueKind.cs
+++ b/PCL.CE/Core/App/Cli/ArgumentValueKind.cs
@@ -1,4 +1,4 @@
-namespace PCL.Core.App.Cli;
+namespace PCL.CE.Core.App.Cli;
public enum ArgumentValueKind
{
diff --git a/PCL.Core/App/Cli/BoolArgument.cs b/PCL.CE/Core/App/Cli/BoolArgument.cs
similarity index 97%
rename from PCL.Core/App/Cli/BoolArgument.cs
rename to PCL.CE/Core/App/Cli/BoolArgument.cs
index 7823dcbfd..7e968ac0d 100644
--- a/PCL.Core/App/Cli/BoolArgument.cs
+++ b/PCL.CE/Core/App/Cli/BoolArgument.cs
@@ -1,7 +1,7 @@
using System.Diagnostics.CodeAnalysis;
using System.Runtime.CompilerServices;
-namespace PCL.Core.App.Cli;
+namespace PCL.CE.Core.App.Cli;
public class BoolArgument : CommandArgument
{
diff --git a/PCL.Core/App/Cli/CommandArgument.cs b/PCL.CE/Core/App/Cli/CommandArgument.cs
similarity index 98%
rename from PCL.Core/App/Cli/CommandArgument.cs
rename to PCL.CE/Core/App/Cli/CommandArgument.cs
index 7a79c13bd..b4d1451c2 100644
--- a/PCL.Core/App/Cli/CommandArgument.cs
+++ b/PCL.CE/Core/App/Cli/CommandArgument.cs
@@ -2,7 +2,7 @@
using System.Diagnostics.CodeAnalysis;
using System.Runtime.CompilerServices;
-namespace PCL.Core.App.Cli;
+namespace PCL.CE.Core.App.Cli;
///
/// 无泛型的命令行参数模型
diff --git a/PCL.Core/App/Cli/CommandLine.cs b/PCL.CE/Core/App/Cli/CommandLine.cs
similarity index 99%
rename from PCL.Core/App/Cli/CommandLine.cs
rename to PCL.CE/Core/App/Cli/CommandLine.cs
index 6fd96c45b..97c5f9920 100644
--- a/PCL.Core/App/Cli/CommandLine.cs
+++ b/PCL.CE/Core/App/Cli/CommandLine.cs
@@ -5,7 +5,7 @@
using System.Text.Json;
using System.Text.Json.Serialization;
-namespace PCL.Core.App.Cli;
+namespace PCL.CE.Core.App.Cli;
///
/// 命令行模型
diff --git a/PCL.Core/App/Cli/DecimalArgument.cs b/PCL.CE/Core/App/Cli/DecimalArgument.cs
similarity index 98%
rename from PCL.Core/App/Cli/DecimalArgument.cs
rename to PCL.CE/Core/App/Cli/DecimalArgument.cs
index fd6a36ce1..b93437695 100644
--- a/PCL.Core/App/Cli/DecimalArgument.cs
+++ b/PCL.CE/Core/App/Cli/DecimalArgument.cs
@@ -2,7 +2,7 @@
using System.Diagnostics.CodeAnalysis;
using System.Runtime.CompilerServices;
-namespace PCL.Core.App.Cli;
+namespace PCL.CE.Core.App.Cli;
public class DecimalArgument : CommandArgument
{
diff --git a/PCL.Core/App/Cli/SubcommandDefinition.cs b/PCL.CE/Core/App/Cli/SubcommandDefinition.cs
similarity index 97%
rename from PCL.Core/App/Cli/SubcommandDefinition.cs
rename to PCL.CE/Core/App/Cli/SubcommandDefinition.cs
index 0ab8b9645..0030bd1fe 100644
--- a/PCL.Core/App/Cli/SubcommandDefinition.cs
+++ b/PCL.CE/Core/App/Cli/SubcommandDefinition.cs
@@ -1,6 +1,6 @@
using System.Collections.Generic;
-namespace PCL.Core.App.Cli;
+namespace PCL.CE.Core.App.Cli;
public class SubcommandDefinition
{
diff --git a/PCL.Core/App/Cli/TextArgument.cs b/PCL.CE/Core/App/Cli/TextArgument.cs
similarity index 85%
rename from PCL.Core/App/Cli/TextArgument.cs
rename to PCL.CE/Core/App/Cli/TextArgument.cs
index 2e89cd79c..da2f44c65 100644
--- a/PCL.Core/App/Cli/TextArgument.cs
+++ b/PCL.CE/Core/App/Cli/TextArgument.cs
@@ -1,4 +1,4 @@
-namespace PCL.Core.App.Cli;
+namespace PCL.CE.Core.App.Cli;
public class TextArgument : CommandArgument
{
diff --git a/PCL.Core/App/Config.cs b/PCL.CE/Core/App/Config.cs
similarity index 99%
rename from PCL.Core/App/Config.cs
rename to PCL.CE/Core/App/Config.cs
index 1ff4c17ef..fef925d62 100644
--- a/PCL.Core/App/Config.cs
+++ b/PCL.CE/Core/App/Config.cs
@@ -1,6 +1,6 @@
-using PCL.Core.App.Configuration;
+using PCL.CE.Core.App.Configuration;
-namespace PCL.Core.App;
+namespace PCL.CE.Core.App;
///
/// 全局配置类。
diff --git a/PCL.Core/App/ConfigEnums.cs b/PCL.CE/Core/App/ConfigEnums.cs
similarity index 98%
rename from PCL.Core/App/ConfigEnums.cs
rename to PCL.CE/Core/App/ConfigEnums.cs
index d6021120f..e6594ac70 100644
--- a/PCL.Core/App/ConfigEnums.cs
+++ b/PCL.CE/Core/App/ConfigEnums.cs
@@ -1,4 +1,4 @@
-namespace PCL.Core.App;
+namespace PCL.CE.Core.App;
///
/// 联机协议偏好
diff --git a/PCL.Core/App/Configuration/ArgConfig.cs b/PCL.CE/Core/App/Configuration/ArgConfig.cs
similarity index 78%
rename from PCL.Core/App/Configuration/ArgConfig.cs
rename to PCL.CE/Core/App/Configuration/ArgConfig.cs
index 000055b77..b46cff959 100644
--- a/PCL.Core/App/Configuration/ArgConfig.cs
+++ b/PCL.CE/Core/App/Configuration/ArgConfig.cs
@@ -1,7 +1,7 @@
using System;
-using PCL.Core.Utils;
+using PCL.CE.Core.Utils;
-namespace PCL.Core.App.Configuration;
+namespace PCL.CE.Core.App.Configuration;
public class ArgConfig : ParameterizedProperty