From f853191c7ab249e1dd0b3ef0c49236270f5ed7bd Mon Sep 17 00:00:00 2001 From: agailloty Date: Sat, 1 Feb 2025 10:08:59 +0100 Subject: [PATCH] Keep only Desktop UI project --- xpathrunner.sln | 6 ----- .../xpathrunnerui.Desktop/app.manifest | 18 ------------- .../xpathrunnerui.Desktop.csproj | 25 ------------------- .../Program.cs | 13 +++++++--- .../xpathrunnerui/xpathrunnerui.csproj | 1 + 5 files changed, 10 insertions(+), 53 deletions(-) delete mode 100644 xpathrunnerui/xpathrunnerui.Desktop/app.manifest delete mode 100644 xpathrunnerui/xpathrunnerui.Desktop/xpathrunnerui.Desktop.csproj rename xpathrunnerui/{xpathrunnerui.Desktop => xpathrunnerui}/Program.cs (69%) diff --git a/xpathrunner.sln b/xpathrunner.sln index 4f42953..4fba413 100644 --- a/xpathrunner.sln +++ b/xpathrunner.sln @@ -7,8 +7,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "xpathrunner", "xpathrunner\ EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "xpathrunnerui", "xpathrunnerui\xpathrunnerui\xpathrunnerui.csproj", "{4A6A3B53-39EB-4EC3-A721-86A90A7BC263}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "xpathrunnerui.Desktop", "xpathrunnerui\xpathrunnerui.Desktop\xpathrunnerui.Desktop.csproj", "{5D984B3B-FAF0-4B02-BCD4-D2809826C08E}" -EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -23,10 +21,6 @@ Global {4A6A3B53-39EB-4EC3-A721-86A90A7BC263}.Debug|Any CPU.Build.0 = Debug|Any CPU {4A6A3B53-39EB-4EC3-A721-86A90A7BC263}.Release|Any CPU.ActiveCfg = Release|Any CPU {4A6A3B53-39EB-4EC3-A721-86A90A7BC263}.Release|Any CPU.Build.0 = Release|Any CPU - {5D984B3B-FAF0-4B02-BCD4-D2809826C08E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {5D984B3B-FAF0-4B02-BCD4-D2809826C08E}.Debug|Any CPU.Build.0 = Debug|Any CPU - {5D984B3B-FAF0-4B02-BCD4-D2809826C08E}.Release|Any CPU.ActiveCfg = Release|Any CPU - {5D984B3B-FAF0-4B02-BCD4-D2809826C08E}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/xpathrunnerui/xpathrunnerui.Desktop/app.manifest b/xpathrunnerui/xpathrunnerui.Desktop/app.manifest deleted file mode 100644 index d4fda93..0000000 --- a/xpathrunnerui/xpathrunnerui.Desktop/app.manifest +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - - - - - - - - diff --git a/xpathrunnerui/xpathrunnerui.Desktop/xpathrunnerui.Desktop.csproj b/xpathrunnerui/xpathrunnerui.Desktop/xpathrunnerui.Desktop.csproj deleted file mode 100644 index 77d7ddd..0000000 --- a/xpathrunnerui/xpathrunnerui.Desktop/xpathrunnerui.Desktop.csproj +++ /dev/null @@ -1,25 +0,0 @@ - - - WinExe - net8.0 - enable - true - true - latest - true - - - - app.manifest - - - - - - - - - - - - diff --git a/xpathrunnerui/xpathrunnerui.Desktop/Program.cs b/xpathrunnerui/xpathrunnerui/Program.cs similarity index 69% rename from xpathrunnerui/xpathrunnerui.Desktop/Program.cs rename to xpathrunnerui/xpathrunnerui/Program.cs index e5c3924..5200205 100644 --- a/xpathrunnerui/xpathrunnerui.Desktop/Program.cs +++ b/xpathrunnerui/xpathrunnerui/Program.cs @@ -2,7 +2,7 @@ using Avalonia; -namespace xpathrunnerui.Desktop +namespace xpathrunnerui { internal sealed class Program { @@ -10,14 +10,19 @@ internal sealed class Program // SynchronizationContext-reliant code before AppMain is called: things aren't initialized // yet and stuff might break. [STAThread] - public static void Main(string[] args) => BuildAvaloniaApp() - .StartWithClassicDesktopLifetime(args); + public static void Main(string[] args) + { + BuildAvaloniaApp() + .StartWithClassicDesktopLifetime(args); + } // Avalonia configuration, don't remove; also used by visual designer. public static AppBuilder BuildAvaloniaApp() - => AppBuilder.Configure() + { + return AppBuilder.Configure() .UsePlatformDetect() .WithInterFont() .LogToTrace(); + } } } diff --git a/xpathrunnerui/xpathrunnerui/xpathrunnerui.csproj b/xpathrunnerui/xpathrunnerui/xpathrunnerui.csproj index 853c2fd..153d438 100644 --- a/xpathrunnerui/xpathrunnerui/xpathrunnerui.csproj +++ b/xpathrunnerui/xpathrunnerui/xpathrunnerui.csproj @@ -1,6 +1,7 @@  net8.0 + Exe enable true true