diff --git a/.vscode/launch.json b/.vscode/launch.json index b5f84e1..1c201bd 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -1,6 +1,32 @@ { "version": "0.2.0", "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", "type": "coreclr", @@ -9,10 +35,10 @@ "program": "${workspaceFolder}/ProjectName/bin/Debug/netcoreapp3.1/ProjectName.dll", "args": [], "env": { - "LD_LIBRARY_PATH": "${workspaceFolder}/ProjectName/bin/Debug/netcoreapp3.1/lib64", - "DYLD_LIBRARY_PATH": "${workspaceFolder}/ProjectName/bin/Debug/netcoreapp3.1/osx" + "LD_LIBRARY_PATH": "./lib64", + "DYLD_LIBRARY_PATH": "./osx" }, - "cwd": "${workspaceFolder}", + "cwd": "${workspaceFolder}/ProjectName/bin/Debug/netcoreapp3.1", "console": "integratedTerminal", "internalConsoleOptions": "neverOpen" } diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 6a85cbd..3918666 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -26,7 +26,8 @@ "args": [ "-restore:True", "${workspaceFolder}/ProjectName.Framework.sln", - "-p:Configuration=Release" + "-p:Configuration=Release", + "-p:Platform=x64" ], "type": "shell", "group": { @@ -46,7 +47,7 @@ "LD_LIBRARY_PATH": "./lib64", "DYLD_LIBRARY_PATH": "./osx" }, - "cwd": "${workspaceFolder}/ProjectName/bin/Release/net461" + "cwd": "${workspaceFolder}/ProjectName/bin/x64/Release/net461" }, "type": "process", "group": { @@ -75,7 +76,8 @@ "args": [ "-restore:True", "${workspaceFolder}/ProjectName.Framework.sln", - "-p:Configuration=Debug" + "-p:Configuration=Debug", + "-p:Platform=x64" ], "type": "shell", "group": { @@ -95,7 +97,7 @@ "LD_LIBRARY_PATH": "./lib64", "DYLD_LIBRARY_PATH": "./osx" }, - "cwd": "${workspaceFolder}/ProjectName/bin/Debug/net461" + "cwd": "${workspaceFolder}/ProjectName/bin/x64/Debug/net461" }, "type": "process", "group": { @@ -118,6 +120,104 @@ }, "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", "type": "shell", diff --git a/ProjectName/ProjectName.Core.csproj b/ProjectName/ProjectName.Core.csproj index a93b6ab..a3be67a 100644 --- a/ProjectName/ProjectName.Core.csproj +++ b/ProjectName/ProjectName.Core.csproj @@ -6,6 +6,7 @@ WinExe netcoreapp3.1 + x64 ProjectName false false diff --git a/ProjectName/ProjectName.Framework.csproj b/ProjectName/ProjectName.Framework.csproj index 5f721a3..e5408a1 100644 --- a/ProjectName/ProjectName.Framework.csproj +++ b/ProjectName/ProjectName.Framework.csproj @@ -6,6 +6,7 @@ WinExe net461 + x64 ProjectName false false diff --git a/install.sh b/install.sh index 94467c9..bf8c2e5 100755 --- a/install.sh +++ b/install.sh @@ -7,8 +7,8 @@ # Get the directory of this script MY_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" -FNA_VERSION=20.10 -ENCOMPASS_VERSION=0.22.0 +FNA_VERSION=20.12 +ENCOMPASS_VERSION=0.23.0 readlinkf(){ perl -MCwd -e 'print Cwd::abs_path shift' "$1";}