Skip to content

Commit 5f9ba17

Browse files
committed
made f5 experience better
1 parent 4d3e0b3 commit 5f9ba17

File tree

2 files changed

+43
-11
lines changed

2 files changed

+43
-11
lines changed

.vscode/launch.json

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,11 @@
1414
"name": "Back End",
1515
"type": "coreclr",
1616
"request": "launch",
17-
"preLaunchTask": "build",
17+
"preLaunchTask": "build backend",
1818
"program": "${workspaceFolder}/SampleApp/BackEnd/bin/Debug/net8.0/BackEnd.dll",
1919
"args": [],
2020
"cwd": "${workspaceFolder}/SampleApp/BackEnd",
2121
"stopAtEntry": false,
22-
"serverReadyAction": {
23-
"action": "openExternally",
24-
"pattern": "\\bNow listening on:\\s+(https?://\\S+)",
25-
"uriFormat": "%s/swagger"
26-
},
2722
"env": {
2823
"ASPNETCORE_ENVIRONMENT": "Development"
2924
},
@@ -35,14 +30,15 @@
3530
"name": "Front End",
3631
"type": "coreclr",
3732
"request": "launch",
38-
"preLaunchTask": "build",
33+
"preLaunchTask": "build frontend",
3934
"program": "${workspaceFolder}/SampleApp/FrontEnd/bin/Debug/net8.0/FrontEnd.dll",
4035
"args": [],
4136
"cwd": "${workspaceFolder}/SampleApp/FrontEnd",
4237
"stopAtEntry": false,
4338
"serverReadyAction": {
4439
"action": "openExternally",
45-
"pattern": "\\bNow listening on:\\s+(https?://\\S+)"
40+
"pattern": "\\bNow listening on:\\s+(https?://\\S+)",
41+
"uriFormat": "%s/"
4642
},
4743
"env": {
4844
"ASPNETCORE_ENVIRONMENT": "Development"

.vscode/tasks.json

Lines changed: 39 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"version": "2.0.0",
33
"tasks": [
44
{
5-
"label": "build",
5+
"label": "build frontend",
66
"command": "dotnet",
77
"type": "process",
88
"args": [
@@ -14,7 +14,7 @@
1414
"problemMatcher": "$msCompile"
1515
},
1616
{
17-
"label": "publish",
17+
"label": "publish frontend",
1818
"command": "dotnet",
1919
"type": "process",
2020
"args": [
@@ -26,7 +26,7 @@
2626
"problemMatcher": "$msCompile"
2727
},
2828
{
29-
"label": "watch",
29+
"label": "watch frontend",
3030
"command": "dotnet",
3131
"type": "process",
3232
"args": [
@@ -36,6 +36,42 @@
3636
"${workspaceFolder}/SampleApp/FrontEnd/FrontEnd.csproj"
3737
],
3838
"problemMatcher": "$msCompile"
39+
},
40+
{
41+
"label": "build backend",
42+
"command": "dotnet",
43+
"type": "process",
44+
"args": [
45+
"build",
46+
"${workspaceFolder}/SampleApp/BackEnd/BackEnd.csproj",
47+
"/property:GenerateFullPaths=true",
48+
"/consoleloggerparameters:NoSummary"
49+
],
50+
"problemMatcher": "$msCompile"
51+
},
52+
{
53+
"label": "publish backend",
54+
"command": "dotnet",
55+
"type": "process",
56+
"args": [
57+
"publish",
58+
"${workspaceFolder}/SampleApp/BackEnd/BackEnd.csproj",
59+
"/property:GenerateFullPaths=true",
60+
"/consoleloggerparameters:NoSummary"
61+
],
62+
"problemMatcher": "$msCompile"
63+
},
64+
{
65+
"label": "watch backend",
66+
"command": "dotnet",
67+
"type": "process",
68+
"args": [
69+
"watch",
70+
"run",
71+
"--project",
72+
"${workspaceFolder}/SampleApp/BackEnd/BackEnd.csproj"
73+
],
74+
"problemMatcher": "$msCompile"
3975
}
4076
]
4177
}

0 commit comments

Comments
 (0)