From 2fca6b8b91eba6bf1824d800e1f03ddfb2c46528 Mon Sep 17 00:00:00 2001 From: Ayman Jundi Date: Sun, 3 Aug 2025 15:33:17 -0400 Subject: [PATCH] Added launch.json and task.json entries that allows building and debugging for linux-64 targets without having to modify the csproj files. Signed-off-by: Ayman Jundi --- .vscode/launch.json | 13 ++++++++++++- .vscode/tasks.json | 17 +++++++++++++++++ 2 files changed, 29 insertions(+), 1 deletion(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 9940d7d0..37332117 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -6,7 +6,7 @@ "configurations": [ { - "name": ".NET Core Launch (console)", + "name": ".NET Core Launch (console) Windows", "type": "coreclr", "request": "launch", "preLaunchTask": "build", @@ -15,6 +15,17 @@ "cwd": "${workspaceFolder}", "stopAtEntry": false, "console": "internalConsole" + }, + { + "name": ".NET Core Launch (console) Linux", + "type": "coreclr", + "request": "launch", + "preLaunchTask": "build_linux", + "program": "${workspaceFolder}/Source/bin/Avalonia/Debug/Libation.dll", + "args": [], + "cwd": "${workspaceFolder}", + "stopAtEntry": false, + "console": "internalConsole" } ] diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 2ba35f87..ef347042 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -37,6 +37,23 @@ //"reveal": "silent" }, "problemMatcher": "$msCompile" + }, + { + "label": "build_linux", + "type": "shell", + "command": "dotnet", + "args": [ + "build", + "${workspaceFolder}/Source/LibationAvalonia/LibationAvalonia.csproj", + "-p:TargetFramework=net9.0", + "-p:TargetFrameworks=net9.0", + "-p:RuntimeIdentifier=linux-x64" + ], + "group": "build", + "presentation": { + //"reveal": "silent" + }, + "problemMatcher": "$msCompile" } ] } \ No newline at end of file