Skip to content

Commit 0714c6a

Browse files
updated launch file to start .net core 3.1
1 parent 7dbc5e8 commit 0714c6a

File tree

1 file changed

+16
-11
lines changed

1 file changed

+16
-11
lines changed

SampleWebApiAspNetCore/.vscode/launch.json

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,12 @@
33
// Hover to view descriptions of existing attributes.
44
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
55
"version": "0.2.0",
6-
"configurations": [
7-
{
6+
"configurations": [{
87
"name": ".NET Core Launch (console)",
98
"type": "coreclr",
109
"request": "launch",
1110
"preLaunchTask": "build",
12-
"program":
13-
"${workspaceFolder}/bin/Debug/netcoreapp2.1/SampleWebApiAspNetCore.dll",
11+
"program": "${workspaceFolder}/bin/Debug/netcoreapp3.1/SampleWebApiAspNetCore.dll",
1412
"args": [],
1513
"cwd": "${workspaceFolder}",
1614
"console": "internalConsole",
@@ -22,8 +20,7 @@
2220
"type": "coreclr",
2321
"request": "launch",
2422
"preLaunchTask": "build",
25-
"program":
26-
"${workspaceFolder}/bin/Debug/netcoreapp2.1/SampleWebApiAspNetCore.dll",
23+
"program": "${workspaceFolder}/bin/Debug/netcoreapp3.1/SampleWebApiAspNetCore.dll",
2724
"args": [],
2825
"cwd": "${workspaceFolder}",
2926
"stopAtEntry": false,
@@ -35,11 +32,19 @@
3532
"command": "cmd.exe",
3633
"args": "/C start ${auto-detect-url}"
3734
},
38-
"osx": { "command": "open" },
39-
"linux": { "command": "xdg-open" }
35+
"osx": {
36+
"command": "open"
37+
},
38+
"linux": {
39+
"command": "xdg-open"
40+
}
41+
},
42+
"env": {
43+
"ASPNETCORE_ENVIRONMENT": "Development"
4044
},
41-
"env": { "ASPNETCORE_ENVIRONMENT": "Development" },
42-
"sourceFileMap": { "/Views": "${workspaceFolder}/Views" }
45+
"sourceFileMap": {
46+
"/Views": "${workspaceFolder}/Views"
47+
}
4348
},
4449
{
4550
"name": ".NET Core Attach",
@@ -48,4 +53,4 @@
4853
"processId": "${command:pickProcess}"
4954
}
5055
]
51-
}
56+
}

0 commit comments

Comments
 (0)