fix working directory on tasks + cross framework compat

main
Evan Hemsley 2020-06-23 21:54:09 -07:00
parent b3fc56240b
commit e9575d97f5
3 changed files with 22 additions and 16 deletions

36
.vscode/tasks.json vendored
View File

@ -39,13 +39,14 @@
"label": "Run: Framework Release", "label": "Run: Framework Release",
"command": "mono", "command": "mono",
"args": [ "args": [
"${workspaceFolder}/ProjectName/bin/Release/net461/ProjectName.exe" "ProjectName.exe"
], ],
"options": { "options": {
"env": { "env": {
"LD_LIBRARY_PATH": "${workspaceFolder}/ProjectName/bin/Release/net461/lib64", "LD_LIBRARY_PATH": "./lib64",
"DYLD_LIBRARY_PATH": "${workspaceFolder}/ProjectName/bin/Release/net461/osx" "DYLD_LIBRARY_PATH": "./osx"
} },
"cwd": "${workspaceFolder}/ProjectName/bin/Release/net461"
}, },
"type": "process", "type": "process",
"group": { "group": {
@ -87,13 +88,14 @@
"label": "Run: Framework Debug", "label": "Run: Framework Debug",
"command": "mono", "command": "mono",
"args": [ "args": [
"${workspaceFolder}/ProjectName/bin/Debug/net461/ProjectName.exe" "ProjectName.exe"
], ],
"options": { "options": {
"env": { "env": {
"LD_LIBRARY_PATH": "${workspaceFolder}/ProjectName/bin/Debug/net461/lib64", "LD_LIBRARY_PATH": "./lib64",
"DYLD_LIBRARY_PATH": "${workspaceFolder}/ProjectName/bin/Debug/net461/osx" "DYLD_LIBRARY_PATH": "./osx"
} },
"cwd": "${workspaceFolder}/ProjectName/bin/Debug/net461"
}, },
"type": "process", "type": "process",
"group": { "group": {
@ -150,13 +152,14 @@
"label": "Run: Core Debug", "label": "Run: Core Debug",
"command": "dotnet", "command": "dotnet",
"args": [ "args": [
"${workspaceFolder}/ProjectName/bin/Debug/netcoreapp3.1/ProjectName.dll" "./ProjectName.dll"
], ],
"options": { "options": {
"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}/ProjectName/bin/Debug/netcoreapp3.1"
}, },
"type": "process", "type": "process",
"group": { "group": {
@ -187,13 +190,14 @@
"label": "Run: Core Release", "label": "Run: Core Release",
"command": "dotnet", "command": "dotnet",
"args": [ "args": [
"${workspaceFolder}/ProjectName/bin/Release/netcoreapp3.1/ProjectName.dll" "./ProjectName.dll"
], ],
"options": { "options": {
"env": { "env": {
"LD_LIBRARY_PATH": "${workspaceFolder}/ProjectName/bin/Release/netcoreapp3.1/lib64", "LD_LIBRARY_PATH": "./lib64",
"DYLD_LIBRARY_PATH": "${workspaceFolder}/ProjectName/bin/Release/netcoreapp3.1/osx" "DYLD_LIBRARY_PATH": "./osx"
} },
"cwd": "${workspaceFolder}/ProjectName/bin/Release/netcoreapp3.1"
}, },
"type": "process", "type": "process",
"group": { "group": {

View File

@ -8,6 +8,7 @@
<TargetFramework>netcoreapp3.1</TargetFramework> <TargetFramework>netcoreapp3.1</TargetFramework>
<TargetName>ProjectName</TargetName> <TargetName>ProjectName</TargetName>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo> <GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<GenerateTargetFrameworkAttribute>false</GenerateTargetFrameworkAttribute>
<LangVersion>8.0</LangVersion> <LangVersion>8.0</LangVersion>
<StartupObject>ProjectName.Program</StartupObject> <StartupObject>ProjectName.Program</StartupObject>
<AssemblyName>ProjectName</AssemblyName> <AssemblyName>ProjectName</AssemblyName>

View File

@ -8,6 +8,7 @@
<TargetFramework>net461</TargetFramework> <TargetFramework>net461</TargetFramework>
<TargetName>ProjectName</TargetName> <TargetName>ProjectName</TargetName>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo> <GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<GenerateTargetFrameworkAttribute>false</GenerateTargetFrameworkAttribute>
<LangVersion>8.0</LangVersion> <LangVersion>8.0</LangVersion>
<StartupObject>ProjectName.Program</StartupObject> <StartupObject>ProjectName.Program</StartupObject>
<AssemblyName>ProjectName</AssemblyName> <AssemblyName>ProjectName</AssemblyName>