diff --git a/.vscode/launch.json b/.vscode/launch.json index c9dd596..4b0bfdf 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -2,7 +2,7 @@ "version": "0.2.0", "configurations": [ { - "name": "Fuchs: Debug ASP.NET Core", + "name": "Fuchs: Debug (Debug config, Development env)", "type": "coreclr", "request": "launch", "preLaunchTask": "build Fuchs", @@ -23,6 +23,29 @@ "sourceFileMap": { "/Views": "${workspaceFolder}/Fuchs/Views" } + }, + { + "name": "Fuchs: Launch (Release config, Production env)", + "type": "coreclr", + "request": "launch", + "preLaunchTask": "build Fuchs Release", + "program": "${workspaceFolder}/Fuchs/bin/Release/net10.0/Fuchs.dll", + "args": [], + "cwd": "${workspaceFolder}/Fuchs", + "stopAtEntry": false, + "justMyCode": true, + "serverReadyAction": { + "action": "openExternally", + "pattern": "\\bNow listening on:\\s+(https?://\\S+)", + "uriFormat": "%s" + }, + "env": { + "ASPNETCORE_ENVIRONMENT": "Production", + "ASPNETCORE_URLS": "https://localhost:63661;http://localhost:63662" + }, + "sourceFileMap": { + "/Views": "${workspaceFolder}/Fuchs/Views" + } } ] } diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 2eafdfa..c6d59c3 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -19,6 +19,21 @@ "isDefault": true } }, + { + "label": "build Fuchs Release", + "type": "process", + "command": "dotnet", + "args": [ + "build", + "${workspaceFolder}/Fuchs/Fuchs.csproj", + "--configuration", + "Release", + "/p:RestoreIgnoreFailedSources=true", + "/p:RestoreConfigFile=${workspaceFolder}/NuGet.config" + ], + "problemMatcher": "$msCompile", + "group": "build" + }, { "label": "gulp: all", "type": "shell",