Console project, VSCode launch/tasks

This commit is contained in:
2022-03-31 15:54:32 +00:00
parent df23235ce8
commit d0edf85e98
6 changed files with 174 additions and 0 deletions

35
.vscode/launch.json vendored Normal file
View File

@@ -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"
}
]
}

100
.vscode/tasks.json vendored Normal file
View File

@@ -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"
}
]
}