From 8a8130fdbb50bc3f9b92e6dc0d139cdf8399a870 Mon Sep 17 00:00:00 2001 From: cosmonaut Date: Mon, 16 Nov 2020 22:29:21 -0800 Subject: [PATCH] split mono and framework build and run tasks --- .vscode/launch.json | 11 +++ .vscode/tasks.json | 110 ++++++++++++++++++++--- ProjectName/ProjectName.Framework.csproj | 4 +- 3 files changed, 111 insertions(+), 14 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 17adffa..ea8d415 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -1,6 +1,17 @@ { "version": "0.2.0", "configurations": [ + { + "name": "Attach to Framework Debugger", + "type": "clr", + "request": "launch", + "preLaunchTask": "Build: Framework Debug", + "program": "${workspaceFolder}/Anathema/bin/Debug/net48/Anathema.exe", + "args": [], + "cwd": "${workspaceFolder}", + "console": "externalTerminal", + "internalConsoleOptions": "neverOpen" + }, { "name": "Attach to Core Debugger", "type": "coreclr", diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 3e58485..7af5249 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -21,7 +21,7 @@ }, "tasks": [ { - "label": "Build: Framework Release", + "label": "Build: Mono Release", "command": "msbuild", "args": [ "-restore:True", @@ -36,7 +36,7 @@ "problemMatcher": "$msCompile" }, { - "label": "Run: Framework Release", + "label": "Run: Mono Release", "command": "mono", "args": [ "ProjectName.exe" @@ -46,7 +46,7 @@ "LD_LIBRARY_PATH": "./lib64", "DYLD_LIBRARY_PATH": "./osx" }, - "cwd": "${workspaceFolder}/ProjectName/bin/Release/net461" + "cwd": "${workspaceFolder}/ProjectName/bin/Release/net48" }, "type": "process", "group": { @@ -56,10 +56,10 @@ "problemMatcher": [] }, { - "label": "Build & Run: Framework Release", + "label": "Build & Run: Mono Release", "dependsOn": [ - "Build: Framework Release", - "Run: Framework Release" + "Build: Mono Release", + "Run: Mono Release" ], "dependsOrder": "sequence", "type": "shell", @@ -70,7 +70,7 @@ "problemMatcher": [] }, { - "label": "Build: Framework Debug", + "label": "Build: Mono Debug", "command": "msbuild", "args": [ "-restore:True", @@ -85,7 +85,7 @@ "problemMatcher": [] }, { - "label": "Run: Framework Debug", + "label": "Run: Mono Debug", "command": "mono", "args": [ "ProjectName.exe" @@ -95,7 +95,7 @@ "LD_LIBRARY_PATH": "./lib64", "DYLD_LIBRARY_PATH": "./osx" }, - "cwd": "${workspaceFolder}/ProjectName/bin/Debug/net461" + "cwd": "${workspaceFolder}/ProjectName/bin/Debug/net48" }, "type": "process", "group": { @@ -105,10 +105,10 @@ "problemMatcher": [] }, { - "label": "Build & Run: Framework Debug", + "label": "Build & Run: Mono Debug", "dependsOn": [ - "Build: Framework Debug", - "Run: Framework Debug" + "Build: Mono Debug", + "Run: Mono Debug" ], "dependsOrder": "sequence", "type": "shell", @@ -217,6 +217,92 @@ "isDefault": true }, "problemMatcher": [] + }, + { + "label": "Build: Framework Debug", + "command": "MsBuild.exe", + "args": [ + "-restore:True", + "${workspaceFolder}/Anathema.Framework.sln", + "-p:Configuration=Debug", + "-p:Platform=x64" + ], + "type": "shell", + "group": { + "kind": "build", + "isDefault": true + }, + "problemMatcher": [] + }, + { + "label": "Run: Framework Debug", + "command": "Anathema.exe", + "options": { + "cwd": "${workspaceFolder}/Anathema/bin/Debug/net48" + }, + "type": "process", + "group": { + "kind": "build", + "isDefault": true + }, + "problemMatcher": [] + }, + { + "label": "Build & Run: Framework Debug", + "dependsOn": [ + "Build: Framework Debug", + "Run: Framework Debug" + ], + "dependsOrder": "sequence", + "type": "shell", + "group": { + "kind": "build", + "isDefault": true + }, + "problemMatcher": [] + }, + { + "label": "Build: Framework Release", + "command": "MsBuild.exe", + "args": [ + "-restore:True", + "${workspaceFolder}/Anathema.Framework.sln", + "-p:Configuration=Release", + "-p:Platform=x64" + ], + "type": "shell", + "group": { + "kind": "build", + "isDefault": true + }, + "problemMatcher": [] + }, + { + "label": "Run: Framework Release", + "command": "Anathema.exe", + "options": { + "cwd": "${workspaceFolder}/Anathema/bin/Release/net48" + }, + "type": "process", + "group": { + "kind": "build", + "isDefault": true + }, + "problemMatcher": [] + }, + { + "label": "Build & Run: Framework Release", + "dependsOn": [ + "Build: Framework Release", + "Run: Framework Release" + ], + "dependsOrder": "sequence", + "type": "shell", + "group": { + "kind": "build", + "isDefault": true + }, + "problemMatcher": [] } ] } diff --git a/ProjectName/ProjectName.Framework.csproj b/ProjectName/ProjectName.Framework.csproj index 58e6a9b..426b2f2 100644 --- a/ProjectName/ProjectName.Framework.csproj +++ b/ProjectName/ProjectName.Framework.csproj @@ -4,8 +4,8 @@ - WinExe - net461 + Exe + net48 ProjectName false false