From d0edf85e981a78624871d7403ab65bd2e10f96c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81d=C3=A1m=20Kov=C3=A1cs?= Date: Thu, 31 Mar 2022 15:54:32 +0000 Subject: [PATCH] Console project, VSCode launch/tasks --- .vscode/launch.json | 35 ++++++ .vscode/tasks.json | 100 ++++++++++++++++++ .../FileTime.ConsoleUI.App.csproj | 9 ++ .../FileTime.ConsoleUI.csproj | 14 +++ src/ConsoleApp/FileTime.ConsoleUI/Program.cs | 2 + src/FileTime.sln | 14 +++ 6 files changed, 174 insertions(+) create mode 100644 .vscode/launch.json create mode 100644 .vscode/tasks.json create mode 100644 src/ConsoleApp/FileTime.ConsoleUI.App/FileTime.ConsoleUI.App.csproj create mode 100644 src/ConsoleApp/FileTime.ConsoleUI/FileTime.ConsoleUI.csproj create mode 100644 src/ConsoleApp/FileTime.ConsoleUI/Program.cs diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..3c6340a --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,35 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "name": ".NET Core Launch (console)", + "type": "coreclr", + "request": "launch", + "preLaunchTask": "build cli", + "program": "${workspaceFolder}/src/ConsoleApp/FileTime.ConsoleUI/bin/Debug/net6.0/FileTime.ConsoleUI.dll", + "args": [], + "cwd": "${workspaceFolder}/src/ConsoleApp/FileTime.ConsoleUI", + "console": "internalConsole", + "stopAtEntry": false + }, + { + "name": "GUI", + "type": "coreclr", + "request": "launch", + "preLaunchTask": "build gui", + "program": "${workspaceFolder}/src/GuiApp/Avalonia/FileTime.GuiApp/bin/Debug/net6.0/FileTime.GuiApp.dll", + "args": [], + "cwd": "${workspaceFolder}/src/GuiApp/Avalonia/FileTime.GuiApp/bin/Debug/net6.0", + "console": "internalConsole", + "stopAtEntry": false + }, + { + "name": ".NET Core Attach", + "type": "coreclr", + "request": "attach" + } + ] +} diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..746cb96 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,100 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "label": "build cli", + "command": "dotnet", + "type": "process", + "args": [ + "build", + "${workspaceFolder}/src/ConsoleApp/FileTime.ConsoleUI/FileTime.ConsoleUI.csproj", + "/property:GenerateFullPaths=true", + "/consoleloggerparameters:NoSummary" + ], + "problemMatcher": "$msCompile" + }, + { + "label": "build gui", + "command": "dotnet", + "type": "process", + "args": [ + "build", + "${workspaceFolder}/src/GuiApp/Avalonia/FileTime.GuiApp/FileTime.GuiApp.csproj", + "/property:GenerateFullPaths=true", + "/consoleloggerparameters:NoSummary" + ], + "problemMatcher": "$msCompile" + }, + { + "label": "publish cli", + "command": "dotnet", + "type": "process", + "args": [ + "publish", + "${workspaceFolder}/src/ConsoleApp/FileTime.ConsoleUI/FileTime.ConsoleUI.csproj", + "/property:GenerateFullPaths=true", + "/consoleloggerparameters:NoSummary" + ], + "problemMatcher": "$msCompile" + }, + { + "label": "publish singlefile linux cli", + "command": "dotnet", + "type": "process", + "args": [ + "publish", + "${workspaceFolder}/src/ConsoleApp/FileTime.ConsoleUI/FileTime.ConsoleUI.csproj", + "-p:PublishSingleFile=true", + "-c", + "Release", + "-r", + "linux-x64", + "--self-contained", + "true" + ], + "problemMatcher": "$msCompile" + }, + { + "label": "publish singlefile windows cli", + "command": "dotnet", + "type": "process", + "args": [ + "publish", + "${workspaceFolder}/src/ConsoleApp/FileTime.ConsoleUI/FileTime.ConsoleUI.csproj", + "-p:PublishSingleFile=true", + "-c", + "Release", + "-r", + "win-x64", + "--self-contained", + "true" + ], + "problemMatcher": "$msCompile" + }, + { + "label": "publish gui", + "command": "dotnet", + "type": "process", + "args": [ + "publish", + "${workspaceFolder}/src/GuiApp/Avalonia/FileTime.GuiApp/FileTime.GuiApp.csproj", + "-c", + "Release", + ], + "problemMatcher": "$msCompile" + }, + { + "label": "watch", + "command": "dotnet", + "type": "process", + "args": [ + "watch", + "run", + "${workspaceFolder}/src/ConsoleApp/FileTime.ConsoleUI/FileTime.ConsoleUI.csproj", + "/property:GenerateFullPaths=true", + "/consoleloggerparameters:NoSummary" + ], + "problemMatcher": "$msCompile" + } + ] +} diff --git a/src/ConsoleApp/FileTime.ConsoleUI.App/FileTime.ConsoleUI.App.csproj b/src/ConsoleApp/FileTime.ConsoleUI.App/FileTime.ConsoleUI.App.csproj new file mode 100644 index 0000000..132c02c --- /dev/null +++ b/src/ConsoleApp/FileTime.ConsoleUI.App/FileTime.ConsoleUI.App.csproj @@ -0,0 +1,9 @@ + + + + net6.0 + enable + enable + + + diff --git a/src/ConsoleApp/FileTime.ConsoleUI/FileTime.ConsoleUI.csproj b/src/ConsoleApp/FileTime.ConsoleUI/FileTime.ConsoleUI.csproj new file mode 100644 index 0000000..5bb66e7 --- /dev/null +++ b/src/ConsoleApp/FileTime.ConsoleUI/FileTime.ConsoleUI.csproj @@ -0,0 +1,14 @@ + + + + Exe + net6.0 + enable + enable + + + + + + + diff --git a/src/ConsoleApp/FileTime.ConsoleUI/Program.cs b/src/ConsoleApp/FileTime.ConsoleUI/Program.cs new file mode 100644 index 0000000..3751555 --- /dev/null +++ b/src/ConsoleApp/FileTime.ConsoleUI/Program.cs @@ -0,0 +1,2 @@ +// See https://aka.ms/new-console-template for more information +Console.WriteLine("Hello, World!"); diff --git a/src/FileTime.sln b/src/FileTime.sln index ad96f6e..939bc35 100644 --- a/src/FileTime.sln +++ b/src/FileTime.sln @@ -27,6 +27,10 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "FileTime.Providers.Local", EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "FileTime.App.DependencyInjection", "AppCommon\FileTime.App.DependencyInjection\FileTime.App.DependencyInjection.csproj", "{A55F4A86-03ED-4D25-807A-04619A1D9507}" EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "FileTime.ConsoleUI", "ConsoleApp\FileTime.ConsoleUI\FileTime.ConsoleUI.csproj", "{67D4102C-8B92-451C-B4A9-5A82B68A7A5D}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "FileTime.ConsoleUI.App", "ConsoleApp\FileTime.ConsoleUI.App\FileTime.ConsoleUI.App.csproj", "{77ABB06A-43AF-49D6-A802-A389CCB53724}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -57,6 +61,14 @@ Global {A55F4A86-03ED-4D25-807A-04619A1D9507}.Debug|Any CPU.Build.0 = Debug|Any CPU {A55F4A86-03ED-4D25-807A-04619A1D9507}.Release|Any CPU.ActiveCfg = Release|Any CPU {A55F4A86-03ED-4D25-807A-04619A1D9507}.Release|Any CPU.Build.0 = Release|Any CPU + {67D4102C-8B92-451C-B4A9-5A82B68A7A5D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {67D4102C-8B92-451C-B4A9-5A82B68A7A5D}.Debug|Any CPU.Build.0 = Debug|Any CPU + {67D4102C-8B92-451C-B4A9-5A82B68A7A5D}.Release|Any CPU.ActiveCfg = Release|Any CPU + {67D4102C-8B92-451C-B4A9-5A82B68A7A5D}.Release|Any CPU.Build.0 = Release|Any CPU + {77ABB06A-43AF-49D6-A802-A389CCB53724}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {77ABB06A-43AF-49D6-A802-A389CCB53724}.Debug|Any CPU.Build.0 = Debug|Any CPU + {77ABB06A-43AF-49D6-A802-A389CCB53724}.Release|Any CPU.ActiveCfg = Release|Any CPU + {77ABB06A-43AF-49D6-A802-A389CCB53724}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -69,6 +81,8 @@ Global {C389087E-EB78-4DCD-96AF-F1E2A4DEE0B0} = {01F231DE-4A65-435F-B4BB-77EE5221890C} {EA3C5B46-3950-4CD6-8FA9-45E17C63DAFA} = {2FC40FE1-4446-44AB-BF77-00F94D995FA3} {A55F4A86-03ED-4D25-807A-04619A1D9507} = {A5291117-3001-498B-AC8B-E14F71F72570} + {67D4102C-8B92-451C-B4A9-5A82B68A7A5D} = {CAEEAD3C-41EB-405C-ACA9-BA1E4C352549} + {77ABB06A-43AF-49D6-A802-A389CCB53724} = {CAEEAD3C-41EB-405C-ACA9-BA1E4C352549} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {859FB3DF-C60A-46B1-82E5-90274905D1EF}