Skip to content

Commit ccaa797

Browse files
committed
update launch.json
1 parent 1e41111 commit ccaa797

File tree

1 file changed

+5
-33
lines changed

1 file changed

+5
-33
lines changed

.vscode/launch.json

+5-33
Original file line numberDiff line numberDiff line change
@@ -4,45 +4,18 @@
44
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
55
"version": "0.2.0",
66
"configurations": [
7-
8-
{
9-
"name": ".NET Core Launch (console)",
10-
"type": "coreclr",
11-
"request": "launch",
12-
"preLaunchTask": "build",
13-
"program": "${workspaceFolder}/MyApp/bin/Debug/netcoreapp2.2/MyApp.dll",
14-
"args": [],
15-
"cwd": "${workspaceFolder}/MyApp",
16-
"console": "internalConsole",
17-
"stopAtEntry": false,
18-
"internalConsoleOptions": "openOnSessionStart",
19-
"env": {
20-
"ASPNETCORE_ENVIRONMENT": "Development"
21-
}
22-
},
237
{
248
"name": ".NET Core Launch (web)",
259
"type": "coreclr",
2610
"request": "launch",
2711
"preLaunchTask": "build",
28-
"program": "${workspaceFolder}/MyApp/bin/Debug/netcoreapp2.2/MyApp.dll",
12+
"program": "${workspaceFolder}/MyApp/bin/Debug/net6.0/MyApp.dll",
2913
"args": [],
3014
"cwd": "${workspaceFolder}/MyApp",
3115
"stopAtEntry": false,
32-
"internalConsoleOptions": "openOnSessionStart",
33-
"launchBrowser": {
34-
"enabled": true,
35-
"args": "${auto-detect-url}",
36-
"windows": {
37-
"command": "cmd.exe",
38-
"args": "/C start ${auto-detect-url}"
39-
},
40-
"osx": {
41-
"command": "open"
42-
},
43-
"linux": {
44-
"command": "xdg-open"
45-
}
16+
"serverReadyAction": {
17+
"action": "openExternally",
18+
"pattern": "\\bNow listening on:\\s+(https?://\\S+)"
4619
},
4720
"env": {
4821
"ASPNETCORE_ENVIRONMENT": "Development"
@@ -54,8 +27,7 @@
5427
{
5528
"name": ".NET Core Attach",
5629
"type": "coreclr",
57-
"request": "attach",
58-
"processId": "${command:pickProcess}"
30+
"request": "attach"
5931
}
6032
]
6133
}

0 commit comments

Comments
 (0)