Skip to content

Commit bb7814a

Browse files
committed
fix: correct target framework for .net 5
1 parent 1f8f8a9 commit bb7814a

File tree

2 files changed

+35
-38
lines changed

2 files changed

+35
-38
lines changed

.vscode/launch.json

Lines changed: 34 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,36 @@
11
{
2-
// Use IntelliSense to find out which attributes exist for C# debugging
3-
// Use hover for the description of the existing attributes
4-
// For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md
5-
"version": "0.2.0",
6-
"configurations": [
7-
{
8-
"name": ".NET Core Launch (web)",
9-
"type": "coreclr",
10-
"request": "launch",
11-
"preLaunchTask": "build",
12-
// If you have changed target frameworks, make sure to update the program path.
13-
"program": "${workspaceFolder}/bin/Debug/netcoreapp5.0/DevWebServer.dll",
14-
"args": [
15-
"--urls",
16-
"https://localhost:7777;http://localhost:7776"
17-
],
18-
"cwd": "${workspaceFolder}",
19-
"stopAtEntry": false,
20-
// Enable launching a web browser when ASP.NET Core starts. For more information: https://aka.ms/VSCode-CS-LaunchJson-WebBrowser
21-
"serverReadyAction": {
22-
"action": "openExternally",
23-
"pattern": "^\\s*Now listening on:\\s+(https?://\\S+)"
24-
},
25-
"env": {
26-
"ASPNETCORE_ENVIRONMENT": "Development"
27-
},
28-
"sourceFileMap": {
29-
"/Views": "${workspaceFolder}/Views"
30-
}
31-
},
32-
{
33-
"name": ".NET Core Attach",
34-
"type": "coreclr",
35-
"request": "attach",
36-
"processId": "${command:pickProcess}"
37-
}
38-
]
2+
// Use IntelliSense to find out which attributes exist for C# debugging
3+
// Use hover for the description of the existing attributes
4+
// For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"name": ".NET Core Launch (web)",
9+
"type": "coreclr",
10+
"request": "launch",
11+
"preLaunchTask": "build",
12+
// If you have changed target frameworks, make sure to update the program path.
13+
"program": "${workspaceFolder}/bin/Debug/net5.0/DevWebServer.dll",
14+
"args": ["--urls", "https://localhost:7777;http://localhost:7776"],
15+
"cwd": "${workspaceFolder}",
16+
"stopAtEntry": false,
17+
// Enable launching a web browser when ASP.NET Core starts. For more information: https://aka.ms/VSCode-CS-LaunchJson-WebBrowser
18+
"serverReadyAction": {
19+
"action": "openExternally",
20+
"pattern": "^\\s*Now listening on:\\s+(https?://\\S+)"
21+
},
22+
"env": {
23+
"ASPNETCORE_ENVIRONMENT": "Development"
24+
},
25+
"sourceFileMap": {
26+
"/Views": "${workspaceFolder}/Views"
27+
}
28+
},
29+
{
30+
"name": ".NET Core Attach",
31+
"type": "coreclr",
32+
"request": "attach",
33+
"processId": "${command:pickProcess}"
34+
}
35+
]
3936
}

DevWebServer.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk.Web">
22

33
<PropertyGroup>
4-
<TargetFramework>netcoreapp5.0</TargetFramework>
4+
<TargetFramework>net5.0</TargetFramework>
55
</PropertyGroup>
66

77
<ItemGroup>

0 commit comments

Comments
 (0)