split mono and framework build and run tasks

main
cosmonaut 2020-11-16 22:29:21 -08:00
parent 66d27ce3ef
commit 8a8130fdbb
3 changed files with 111 additions and 14 deletions

11
.vscode/launch.json vendored
View File

@ -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",

110
.vscode/tasks.json vendored
View File

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

View File

@ -4,8 +4,8 @@
</PropertyGroup>
<Import Sdk="Microsoft.NET.Sdk" Project="Sdk.props" />
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net461</TargetFramework>
<OutputType>Exe</OutputType>
<TargetFramework>net48</TargetFramework>
<TargetName>ProjectName</TargetName>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<GenerateTargetFrameworkAttribute>false</GenerateTargetFrameworkAttribute>