From b638c48104a76b26659bc3912aa2d49edc8abe80 Mon Sep 17 00:00:00 2001 From: csimonapastore Date: Wed, 4 Sep 2024 17:17:16 +0200 Subject: [PATCH] Fixed launch.json --- .vscode/launch.json | 47 +++++++++++++++++++++++++++++++++-------- .vscode/launch.json_old | 38 --------------------------------- 2 files changed, 38 insertions(+), 47 deletions(-) delete mode 100644 .vscode/launch.json_old diff --git a/.vscode/launch.json b/.vscode/launch.json index d333f61..77a09ea 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -1,18 +1,47 @@ { - // Use IntelliSense to learn about possible attributes. - // Hover to view descriptions of existing attributes. - // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configurations": [ { - "type": "DotNetAutoAttach", + "name": ".NET Rest Api - Watch", + "type": "coreclr", "request": "launch", - "name": ".NET Core Watch: MainProject", + "preLaunchTask": "build", + "program": "${workspaceFolder}/MainProject/bin/Debug/net8.0/MainProject.dll", "args": [], + "cwd": "${workspaceFolder}", + "console": "internalConsole", + "stopAtEntry": false, "env": { - "ASPNETCORE_ENVIRONMENT": "Development" + "ASPNETCORE_ENVIRONMENT": "Development", + "ASPNETCORE_URLS": "https://localhost:5000;https://localhost:5001", + "ASPNETCORE_DETAILEDERRORS": "1", + "ASPNETCORE_SHUTDOWNTIMEOUTSECONDS": "3" }, - "project": "MainProject" + "serverReadyAction": { + "action": "openExternally", + "pattern": "\\bNow listening on:\\s+(https?://\\S+)", + "uriFormat": "%s/swagger" + }, + "postDebugTask": "watch" + }, + { + "name": ".NET Core Attach", + "type": "coreclr", + "request": "attach" } - ] -} \ No newline at end of file + ], + "tasks": { + "label": "watch", + "type": "shell", + "command": "dotnet", + "args": [ + "watch", + "run" + ], + "problemMatcher": "$msCompile", + "group": { + "kind": "build", + "isDefault": true + } + } +} diff --git a/.vscode/launch.json_old b/.vscode/launch.json_old deleted file mode 100644 index 8d9c612..0000000 --- a/.vscode/launch.json_old +++ /dev/null @@ -1,38 +0,0 @@ -{ - "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 - // For further information visit https://github.com/dotnet/vscode-csharp/blob/main/debugger-launchjson.md - "name": ".NET Rest Api", - "type": "coreclr", - "request": "launch", - "preLaunchTask": "build", - // If you have changed target frameworks, make sure to update the program path. - "program": "${workspaceFolder}/MainProject/bin/Debug/net8.0/MainProject.dll", - "args": [], - "cwd": "${workspaceFolder}", - // For more information about the 'console' field, see https://aka.ms/VSCode-CS-LaunchJson-Console - "console": "internalConsole", - "stopAtEntry": false, - "env": { - "ASPNETCORE_ENVIRONMENT": "Development", - "ASPNETCORE_URLS": "https://localhost:5000;https://localhost:5001", - "ASPNETCORE_DETAILEDERRORS": "1", - "ASPNETCORE_SHUTDOWNTIMEOUTSECONDS": "3" - }, - // Enable launching a web browser when ASP.NET Core starts. For more information: https://aka.ms/VSCode-CS-LaunchJson-WebBrowser - "serverReadyAction": { - "action": "openExternally", - "pattern": "\\bNow listening on:\\s+(https?://\\S+)", - "uriFormat": "%s/swagger" - }, - }, - { - "name": ".NET Core Attach", - "type": "coreclr", - "request": "attach" - } - ] -} \ No newline at end of file