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

View File

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

View File

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