update build and launch tasks

main
cosmonaut 2020-12-20 11:33:37 -08:00
parent 361be4bd00
commit b873c43424
5 changed files with 137 additions and 9 deletions

32
.vscode/launch.json vendored
View File

@ -1,6 +1,32 @@
{ {
"version": "0.2.0", "version": "0.2.0",
"configurations": [ "configurations": [
{
"name": "Attach to Framework Debugger",
"type": "clr",
"request": "launch",
"preLaunchTask": "Build: Framework Debug",
"program": "${workspaceFolder}/ProjectName/bin/x64/Debug/net461/ProjectName.exe",
"args": [],
"cwd": "${workspaceFolder}/ProjectName/bin/Debug/net461",
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen"
},
{
"name": "Attach to Mono Debugger",
"type": "mono",
"request": "launch",
"preLaunchTask": "Build: Mono Debug",
"program": "${workspaceFolder}/ProjectName/bin/Debug/net461/ProjectName.exe",
"args": [],
"env": {
"LD_LIBRARY_PATH": "./lib64",
"DYLD_LIBRARY_PATH": "./osx"
},
"cwd": "${workspaceFolder}/ProjectName/bin/Debug/net461",
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen"
},
{ {
"name": "Attach to Core Debugger", "name": "Attach to Core Debugger",
"type": "coreclr", "type": "coreclr",
@ -9,10 +35,10 @@
"program": "${workspaceFolder}/ProjectName/bin/Debug/netcoreapp3.1/ProjectName.dll", "program": "${workspaceFolder}/ProjectName/bin/Debug/netcoreapp3.1/ProjectName.dll",
"args": [], "args": [],
"env": { "env": {
"LD_LIBRARY_PATH": "${workspaceFolder}/ProjectName/bin/Debug/netcoreapp3.1/lib64", "LD_LIBRARY_PATH": "./lib64",
"DYLD_LIBRARY_PATH": "${workspaceFolder}/ProjectName/bin/Debug/netcoreapp3.1/osx" "DYLD_LIBRARY_PATH": "./osx"
}, },
"cwd": "${workspaceFolder}", "cwd": "${workspaceFolder}/ProjectName/bin/Debug/netcoreapp3.1",
"console": "integratedTerminal", "console": "integratedTerminal",
"internalConsoleOptions": "neverOpen" "internalConsoleOptions": "neverOpen"
} }

108
.vscode/tasks.json vendored
View File

@ -26,7 +26,8 @@
"args": [ "args": [
"-restore:True", "-restore:True",
"${workspaceFolder}/ProjectName.Framework.sln", "${workspaceFolder}/ProjectName.Framework.sln",
"-p:Configuration=Release" "-p:Configuration=Release",
"-p:Platform=x64"
], ],
"type": "shell", "type": "shell",
"group": { "group": {
@ -46,7 +47,7 @@
"LD_LIBRARY_PATH": "./lib64", "LD_LIBRARY_PATH": "./lib64",
"DYLD_LIBRARY_PATH": "./osx" "DYLD_LIBRARY_PATH": "./osx"
}, },
"cwd": "${workspaceFolder}/ProjectName/bin/Release/net461" "cwd": "${workspaceFolder}/ProjectName/bin/x64/Release/net461"
}, },
"type": "process", "type": "process",
"group": { "group": {
@ -75,7 +76,8 @@
"args": [ "args": [
"-restore:True", "-restore:True",
"${workspaceFolder}/ProjectName.Framework.sln", "${workspaceFolder}/ProjectName.Framework.sln",
"-p:Configuration=Debug" "-p:Configuration=Debug",
"-p:Platform=x64"
], ],
"type": "shell", "type": "shell",
"group": { "group": {
@ -95,7 +97,7 @@
"LD_LIBRARY_PATH": "./lib64", "LD_LIBRARY_PATH": "./lib64",
"DYLD_LIBRARY_PATH": "./osx" "DYLD_LIBRARY_PATH": "./osx"
}, },
"cwd": "${workspaceFolder}/ProjectName/bin/Debug/net461" "cwd": "${workspaceFolder}/ProjectName/bin/x64/Debug/net461"
}, },
"type": "process", "type": "process",
"group": { "group": {
@ -118,6 +120,104 @@
}, },
"problemMatcher": [] "problemMatcher": []
}, },
{
"label": "Build: Mono Release",
"command": "msbuild",
"args": [
"-restore:True",
"${workspaceFolder}/ProjectName.Framework.sln",
"-p:Configuration=Release"
],
"type": "shell",
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": "$msCompile"
},
{
"label": "Run: Mono Release",
"command": "mono",
"args": [
"ProjectName.exe"
],
"options": {
"env": {
"LD_LIBRARY_PATH": "./lib64",
"DYLD_LIBRARY_PATH": "./osx"
},
"cwd": "${workspaceFolder}/ProjectName/bin/Release/net461"
},
"type": "process",
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": []
},
{
"label": "Build & Run: Mono Release",
"dependsOn": [
"Build: Mono Release",
"Run: Mono Release"
],
"dependsOrder": "sequence",
"type": "shell",
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": []
},
{
"label": "Build: Mono Debug",
"command": "msbuild",
"args": [
"-restore:True",
"${workspaceFolder}/ProjectName.Framework.sln",
"-p:Configuration=Debug"
],
"type": "shell",
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": []
},
{
"label": "Run: Mono Debug",
"command": "mono",
"args": [
"ProjectName.exe"
],
"options": {
"env": {
"LD_LIBRARY_PATH": "./lib64",
"DYLD_LIBRARY_PATH": "./osx"
},
"cwd": "${workspaceFolder}/ProjectName/bin/Debug/net461"
},
"type": "process",
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": []
},
{
"label": "Build & Run: Mono Debug",
"dependsOn": [
"Build: Mono Debug",
"Run: Mono Debug"
],
"dependsOrder": "sequence",
"type": "shell",
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": []
},
{ {
"label": "Build & Run: Core Debug", "label": "Build & Run: Core Debug",
"type": "shell", "type": "shell",

View File

@ -6,6 +6,7 @@
<PropertyGroup> <PropertyGroup>
<OutputType>WinExe</OutputType> <OutputType>WinExe</OutputType>
<TargetFramework>netcoreapp3.1</TargetFramework> <TargetFramework>netcoreapp3.1</TargetFramework>
<Platforms>x64</Platforms>
<TargetName>ProjectName</TargetName> <TargetName>ProjectName</TargetName>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo> <GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<GenerateTargetFrameworkAttribute>false</GenerateTargetFrameworkAttribute> <GenerateTargetFrameworkAttribute>false</GenerateTargetFrameworkAttribute>

View File

@ -6,6 +6,7 @@
<PropertyGroup> <PropertyGroup>
<OutputType>WinExe</OutputType> <OutputType>WinExe</OutputType>
<TargetFramework>net461</TargetFramework> <TargetFramework>net461</TargetFramework>
<Platforms>x64</Platforms>
<TargetName>ProjectName</TargetName> <TargetName>ProjectName</TargetName>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo> <GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<GenerateTargetFrameworkAttribute>false</GenerateTargetFrameworkAttribute> <GenerateTargetFrameworkAttribute>false</GenerateTargetFrameworkAttribute>

View File

@ -7,8 +7,8 @@
# Get the directory of this script # Get the directory of this script
MY_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" MY_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
FNA_VERSION=20.10 FNA_VERSION=20.12
ENCOMPASS_VERSION=0.22.0 ENCOMPASS_VERSION=0.23.0
readlinkf(){ perl -MCwd -e 'print Cwd::abs_path shift' "$1";} readlinkf(){ perl -MCwd -e 'print Cwd::abs_path shift' "$1";}