Adding ability to do a perpetual build and a subscription build automatically and also be able to debug either one

This commit is contained in:
2022-08-16 23:19:23 +00:00
parent aa03db0aef
commit ea766e68b8
8 changed files with 194 additions and 43 deletions

56
.vscode/launch.json vendored
View File

@@ -5,7 +5,7 @@
"version": "0.2.0",
"configurations": [
{
"name": ".NET Core Launch (web)",
"name": ".NET Core Launch (web) PERPETUAL BUILD",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build debug",
@@ -58,6 +58,60 @@
"sourceFileMap": {
"/Views": "${workspaceFolder}/Views"
}
},{
"name": ".NET Core Launch (web) SUBSCRIPTION BUILD",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build debug subscription",
// If you have changed target frameworks, make sure to update the program path.
//#### THIS MEANS YOU JOHNNY! If the debugger fails this is the issue
"program": "${workspaceFolder}/server/AyaNova/bin/Debug/net6.0/AyaNova.dll",
"args": [],
"cwd": "${workspaceFolder}/server/AyaNova",
"stopAtEntry": false,
"internalConsoleOptions": "openOnSessionStart",
// Enable launching a web browser when ASP.NET Core starts. For more information: https://aka.ms/VSCode-CS-LaunchJson-WebBrowser
//this needs to be tweaked probably
//https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md#starting-a-web-browser
"serverReadyAction": {
"action": "openExternally",
"pattern": "^\\s*Now listening on:\\s+(https?://\\S+)"
},
// "launchBrowser": {
// "enabled": true,
// "args": "${auto-detect-url}/api/v8/",
// "windows": {
// "command": "cmd.exe",
// "args": "/C start http://localhost:7575/api/v8/"
// },
// "osx": {
// "command": "open"
// },
// "linux": {
// "command": "xdg-open"
// }
// },
"env": {
// "ASPNETCORE_ENVIRONMENT": "Development",
"AYANOVA_JWT_SECRET": "1111111MyRandom32CharacterSecret",
"AYANOVA_LOG_LEVEL": "Info",
//"AYANOVA_LOG_LEVEL": "Debug",
//"AYANOVA_LOG_LEVEL": "Trace",
"AYANOVA_DEFAULT_TRANSLATION": "en",
"AYANOVA_DB_CONNECTION": "Server=localhost;Username=postgres;Password=raven;Database=AyaNova;CommandTimeout=120;",
"AYANOVA_DATA_PATH": "c:\\temp\\ravendata",
"AYANOVA_USE_URLS": "http://*:7575;",
//"AYANOVA_PERMANENTLY_ERASE_DATABASE":"true",
//"AYANOVA_REMOVE_LICENSE_FROM_DB":"true",
//"AYANOVA_SERVER_TEST_MODE": "true",
"AYANOVA_SERVER_TEST_MODE_TZ_OFFSET": "-8",
//"AYANOVA_REPORT_RENDERING_TIMEOUT":"1",
"AYANOVA_SERVER_TEST_MODE_SEEDLEVEL": "small",
"AYANOVA_BACKUP_PG_DUMP_PATH": "C:\\data\\code\\postgres_14\\bin"
},
"sourceFileMap": {
"/Views": "${workspaceFolder}/Views"
}
},
{
"name": ".NET Core Attach",

16
.vscode/tasks.json vendored
View File

@@ -15,6 +15,22 @@
"isDefault": true
}
},
{
"label": "build debug subscription",
"command": "dotnet",
"type": "process",
"args": [
"build",
"${workspaceFolder}/server/AyaNova/AyaNova.csproj",
"-p",
"SUBSCRIPTION_BUILD=true"
],
"problemMatcher": "$msCompile",
"group": {
"kind": "build",
"isDefault": true
}
},
{
"label": "build release",
"command": "dotnet",