From fa8f04cd1a67693b7463e20bac640e434d262de5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franti=C5=A1ek=20Boh=C3=A1=C4=8Dek?= Date: Mon, 20 Dec 2021 13:15:49 +0100 Subject: [PATCH] chore: remove debug test projects --- NosSmooth.sln | 30 -------------- Samples/Test/DllMain.cs | 66 ------------------------------ Samples/Test/Test - Backup.csproj | 63 ---------------------------- Samples/Test/Test.cs | 38 ----------------- Samples/Test/Test.csproj | 68 ------------------------------- Samples/testapp/Program.cs | 28 ------------- Samples/testapp/testapp.csproj | 15 ------- 7 files changed, 308 deletions(-) delete mode 100644 Samples/Test/DllMain.cs delete mode 100644 Samples/Test/Test - Backup.csproj delete mode 100644 Samples/Test/Test.cs delete mode 100644 Samples/Test/Test.csproj delete mode 100644 Samples/testapp/Program.cs delete mode 100644 Samples/testapp/testapp.csproj diff --git a/NosSmooth.sln b/NosSmooth.sln index 5683b263c33274f3e9af24912945a960cc172a3f..516c440ef6005fd009db704c8097def7b2579b76 100644 --- a/NosSmooth.sln +++ b/NosSmooth.sln @@ -27,12 +27,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Core", "Core", "{01B5E872-2 EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NosCore.Packets", "libs\NosCore.Packets\src\NosCore.Packets\NosCore.Packets.csproj", "{27DF38DF-AC58-4039-A91C-824D829ECECD}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Test", "Samples\Test\Test.csproj", "{AD990409-0FAD-4595-9CA4-68EBF27A8989}" -EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NosCore.Shared", "libs\NosCore.Shared\src\NosCore.Shared\NosCore.Shared.csproj", "{945E9248-C150-4617-AB0F-1450561859E3}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "testapp", "Samples\testapp\testapp.csproj", "{E4E4969E-F79C-4074-A3A8-E1EF9C2A4718}" -EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".metadata", ".metadata", "{FA63BCED-9D81-4FF7-BA75-A6F3BA31ECDE}" ProjectSection(SolutionItems) = preProject Directory.build.props = Directory.build.props @@ -142,18 +138,6 @@ Global {27DF38DF-AC58-4039-A91C-824D829ECECD}.Release|x64.Build.0 = Release|Any CPU {27DF38DF-AC58-4039-A91C-824D829ECECD}.Release|x86.ActiveCfg = Release|Any CPU {27DF38DF-AC58-4039-A91C-824D829ECECD}.Release|x86.Build.0 = Release|Any CPU - {AD990409-0FAD-4595-9CA4-68EBF27A8989}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {AD990409-0FAD-4595-9CA4-68EBF27A8989}.Debug|Any CPU.Build.0 = Debug|Any CPU - {AD990409-0FAD-4595-9CA4-68EBF27A8989}.Debug|x64.ActiveCfg = Debug|Any CPU - {AD990409-0FAD-4595-9CA4-68EBF27A8989}.Debug|x64.Build.0 = Debug|Any CPU - {AD990409-0FAD-4595-9CA4-68EBF27A8989}.Debug|x86.ActiveCfg = Debug|Any CPU - {AD990409-0FAD-4595-9CA4-68EBF27A8989}.Debug|x86.Build.0 = Debug|Any CPU - {AD990409-0FAD-4595-9CA4-68EBF27A8989}.Release|Any CPU.ActiveCfg = Release|Any CPU - {AD990409-0FAD-4595-9CA4-68EBF27A8989}.Release|Any CPU.Build.0 = Release|Any CPU - {AD990409-0FAD-4595-9CA4-68EBF27A8989}.Release|x64.ActiveCfg = Release|Any CPU - {AD990409-0FAD-4595-9CA4-68EBF27A8989}.Release|x64.Build.0 = Release|Any CPU - {AD990409-0FAD-4595-9CA4-68EBF27A8989}.Release|x86.ActiveCfg = Release|Any CPU - {AD990409-0FAD-4595-9CA4-68EBF27A8989}.Release|x86.Build.0 = Release|Any CPU {945E9248-C150-4617-AB0F-1450561859E3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {945E9248-C150-4617-AB0F-1450561859E3}.Debug|Any CPU.Build.0 = Debug|Any CPU {945E9248-C150-4617-AB0F-1450561859E3}.Debug|x64.ActiveCfg = Debug|Any CPU @@ -166,18 +150,6 @@ Global {945E9248-C150-4617-AB0F-1450561859E3}.Release|x64.Build.0 = Release|Any CPU {945E9248-C150-4617-AB0F-1450561859E3}.Release|x86.ActiveCfg = Release|Any CPU {945E9248-C150-4617-AB0F-1450561859E3}.Release|x86.Build.0 = Release|Any CPU - {E4E4969E-F79C-4074-A3A8-E1EF9C2A4718}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {E4E4969E-F79C-4074-A3A8-E1EF9C2A4718}.Debug|Any CPU.Build.0 = Debug|Any CPU - {E4E4969E-F79C-4074-A3A8-E1EF9C2A4718}.Debug|x64.ActiveCfg = Debug|Any CPU - {E4E4969E-F79C-4074-A3A8-E1EF9C2A4718}.Debug|x64.Build.0 = Debug|Any CPU - {E4E4969E-F79C-4074-A3A8-E1EF9C2A4718}.Debug|x86.ActiveCfg = Debug|Any CPU - {E4E4969E-F79C-4074-A3A8-E1EF9C2A4718}.Debug|x86.Build.0 = Debug|Any CPU - {E4E4969E-F79C-4074-A3A8-E1EF9C2A4718}.Release|Any CPU.ActiveCfg = Release|Any CPU - {E4E4969E-F79C-4074-A3A8-E1EF9C2A4718}.Release|Any CPU.Build.0 = Release|Any CPU - {E4E4969E-F79C-4074-A3A8-E1EF9C2A4718}.Release|x64.ActiveCfg = Release|Any CPU - {E4E4969E-F79C-4074-A3A8-E1EF9C2A4718}.Release|x64.Build.0 = Release|Any CPU - {E4E4969E-F79C-4074-A3A8-E1EF9C2A4718}.Release|x86.ActiveCfg = Release|Any CPU - {E4E4969E-F79C-4074-A3A8-E1EF9C2A4718}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -190,9 +162,7 @@ Global {06F03B1F-F68A-4C5B-B7FE-128A7CE1A1D7} = {01B5E872-271F-4D30-A1AA-AD48D81840C5} {63E97FF3-7E40-44DE-9E91-F5DEE79AF95F} = {6078AE6E-7CD0-48E4-84E0-EB164D8881DA} {27DF38DF-AC58-4039-A91C-824D829ECECD} = {01B5E872-271F-4D30-A1AA-AD48D81840C5} - {AD990409-0FAD-4595-9CA4-68EBF27A8989} = {F20FE754-FDEA-4F3A-93D4-0750CB9EBB33} {945E9248-C150-4617-AB0F-1450561859E3} = {01B5E872-271F-4D30-A1AA-AD48D81840C5} - {E4E4969E-F79C-4074-A3A8-E1EF9C2A4718} = {F20FE754-FDEA-4F3A-93D4-0750CB9EBB33} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {C5F46653-4DEC-429B-8580-4ED18ED9B4CA} diff --git a/Samples/Test/DllMain.cs b/Samples/Test/DllMain.cs deleted file mode 100644 index 23c9433b249939c480fbac763b4d4e2dc76fcbaa..0000000000000000000000000000000000000000 --- a/Samples/Test/DllMain.cs +++ /dev/null @@ -1,66 +0,0 @@ -// -// DllMain.cs -// -// Copyright (c) František Boháček. All rights reserved. -// Licensed under the MIT license. See LICENSE file in the project root for full license information. - -using System.Runtime.InteropServices; -using System.Text; -using Microsoft.Extensions.DependencyInjection; -using Microsoft.Extensions.Logging; -using Microsoft.Win32.SafeHandles; -using NosSmooth.Core.Client; -using NosSmooth.Core.Extensions; -using NosSmooth.LocalClient.Extensions; - -namespace Test -{ - /// - /// Entry point of the dll. - /// - public class DllMain - { - /// - /// Create console. - /// - public static void CreateConsole() - { - AllocConsole(); - } - - [DllImport( - "kernel32.dll", - EntryPoint = "GetStdHandle", - SetLastError = true, - CharSet = CharSet.Auto, - CallingConvention = CallingConvention.StdCall)] - private static extern IntPtr GetStdHandle(int nStdHandle); - - [DllImport( - "kernel32.dll", - EntryPoint = "AllocConsole", - SetLastError = true, - CharSet = CharSet.Auto, - CallingConvention = CallingConvention.StdCall)] - private static extern int AllocConsole(); - - /// - /// The entrypoint method. - /// - /// The handle of the dll. - /// The error code. - [DllExport] - public static int Main(IntPtr moduleHandle) - { - CreateConsole(); - - Task.Run(Start); - return 0; - } - - private static Task Start() - { - return new Test().Start(); - } - } -} \ No newline at end of file diff --git a/Samples/Test/Test - Backup.csproj b/Samples/Test/Test - Backup.csproj deleted file mode 100644 index a4af5d40a18baae38895b09f5a64f77465b2527b..0000000000000000000000000000000000000000 --- a/Samples/Test/Test - Backup.csproj +++ /dev/null @@ -1,63 +0,0 @@ - - - net6.0 - enable - enable - - - true - - - 8A46ECC7-E8CA-46E7-9B47-1F7C45D0A117 - DllExport.dll - Test - true - x86 - 1 - false - false - false - false - 30000 - 2 - 0 - 0 - 0 - - - - 1.7.4 - false - 1 - - - - - - - - - - - - - - - - - - - - - - - $(SolutionDir)packages\DllExport.1.7.4\gcache\$(DllExportMetaXBase)\$(DllExportNamespace)\$(DllExportMetaLibName) - False - False - - - - - - - \ No newline at end of file diff --git a/Samples/Test/Test.cs b/Samples/Test/Test.cs deleted file mode 100644 index 658af30d43a22e4e95489a7df64fdba83373f5c4..0000000000000000000000000000000000000000 --- a/Samples/Test/Test.cs +++ /dev/null @@ -1,38 +0,0 @@ -// -// Test.cs -// -// Copyright (c) František Boháček. All rights reserved. -// Licensed under the MIT license. See LICENSE file in the project root for full license information. - -using Microsoft.Extensions.DependencyInjection; -using Microsoft.Extensions.Logging; -using NosSmooth.Core.Client; -using NosSmooth.Core.Extensions; -using NosSmooth.LocalClient.Extensions; - -namespace Test; - -public class Test -{ - public async Task Start() - { - var provider = new ServiceCollection() - .AddNostaleCore() - .AddLocalClient() - .AddLogging(b => - { - b.ClearProviders(); - b.AddSimpleConsole(); - b.SetMinimumLevel(LogLevel.Debug); - }) - .BuildServiceProvider(); - Console.WriteLine("Test"); - var logger = provider.GetRequiredService>(); - Console.WriteLine("Hell"); - logger.LogInformation("Built services"); - Thread.Sleep(1000); - - var client = provider.GetRequiredService(); - await client.RunAsync(); - } -} \ No newline at end of file diff --git a/Samples/Test/Test.csproj b/Samples/Test/Test.csproj deleted file mode 100644 index 0ea7a0f3a7259510abec0d663c268c37cc5dc826..0000000000000000000000000000000000000000 --- a/Samples/Test/Test.csproj +++ /dev/null @@ -1,68 +0,0 @@ - - - net48 - enable - enable - 10 - - - true - - - true - - - true - true - 5F1D9960-ECF6-42DF-AB4D-7350CCF1165B - DllExport.dll - Test - true - x86 - 7 - false - false - false - false - 30000 - 2 - 0 - 0 - 0 - - - - 1.7.4 - false - 1 - - - - - - - - - - - - - - - - - - - - - - $(SolutionDir)packages\DllExport.1.7.4\gcache\$(DllExportMetaXBase)\$(DllExportNamespace)\$(DllExportMetaLibName) - False - False - - - - - - - \ No newline at end of file diff --git a/Samples/testapp/Program.cs b/Samples/testapp/Program.cs deleted file mode 100644 index 8abe33530988b6b3ad479154fb062505c3782f33..0000000000000000000000000000000000000000 --- a/Samples/testapp/Program.cs +++ /dev/null @@ -1,28 +0,0 @@ -using Microsoft.Extensions.DependencyInjection; -using Microsoft.Extensions.Logging; -using System; -using System.Threading; - -namespace testapp -{ - internal class Program - { - static void Main(string[] args) - { - var provider = new ServiceCollection() - .AddLogging(b => - { - b.ClearProviders(); - b.AddConsole(); - b.SetMinimumLevel(LogLevel.Debug); - }) - .BuildServiceProvider(); - Console.WriteLine("Test"); - var logger = provider.GetRequiredService>(); - Console.WriteLine("Hell"); - logger.LogError("Built services"); - Console.WriteLine("Hello World!"); - Thread.Sleep(1000); - } - } -} diff --git a/Samples/testapp/testapp.csproj b/Samples/testapp/testapp.csproj deleted file mode 100644 index 907ef659fccbb1e5c5dccfd9645a2b25d98b21f0..0000000000000000000000000000000000000000 --- a/Samples/testapp/testapp.csproj +++ /dev/null @@ -1,15 +0,0 @@ - - - - Exe - net48 - - - - - - - - - -