diff --git a/.vscode/launch.json b/.vscode/launch.json index bc393f7..2b46c58 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -1,6 +1,7 @@ { "version": "0.2.0", "configurations": [ + { // Use IntelliSense to find out which attributes exist for C# debugging // Use hover for the description of the existing attributes @@ -17,6 +18,25 @@ "console": "internalConsole", "stopAtEntry": false }, + { + // Use IntelliSense to find out which attributes exist for C# debugging + // Use hover for the description of the existing attributes + // For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md + "name": ".NET Core Launch (web)", + "type": "coreclr", + "request": "launch", + "preLaunchTask": "buildweb", + // If you have changed target frameworks, make sure to update the program path. + "program": "${workspaceFolder}/WeatherDashboard.Web/bin/Debug/net7.0/WeatherDashboard.Web.dll", + "args": [], + "cwd": "${workspaceFolder}/WeatherDashboard.Web", + // For more information about the 'console' field, see https://aka.ms/VSCode-CS-LaunchJson-Console + "console": "internalConsole", + "stopAtEntry": false, + "serverReadyAction": { + "action": "openExternally" + } + }, { "name": ".NET Core Attach", "type": "coreclr", diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 69e55a3..6ad85bd 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -15,6 +15,18 @@ ], "problemMatcher": "$msCompile" }, + { + "label": "buildweb", + "command": "dotnet", + "type": "process", + "args": [ + "build", + "${workspaceFolder}/WeatherDashboard.Web/WeatherDashboard.Web.csproj", + "/property:GenerateFullPaths=true", + "/consoleloggerparameters:NoSummary" + ], + "problemMatcher": "$msCompile" + }, { "label": "publish", "command": "dotnet",