Skip to content

Commit 2c59738

Browse files
committed
asdf
1 parent dab862a commit 2c59738

File tree

4 files changed

+63
-31
lines changed

4 files changed

+63
-31
lines changed

.vscode/extensions.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"recommendations": [
3-
"ms-azuretools.vscode-azureappservice",
4-
"ms-azuretools.vscode-azurefunctions",
5-
"ms-dotnettools.csharp"
6-
]
7-
}
2+
"recommendations": [
3+
"ms-azuretools.vscode-azurefunctions",
4+
"ms-dotnettools.csharp",
5+
"ms-azuretools.vscode-azureappservice"
6+
]
7+
}

.vscode/launch.json

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,15 @@
11
{
22
"version": "0.2.0",
33
"configurations": [
4-
5-
64
{
7-
// Use IntelliSense to find out which attributes exist for C# debugging
8-
// Use hover for the description of the existing attributes
9-
// For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md
105
"name": ".NET Core Launch (web)",
116
"type": "coreclr",
127
"request": "launch",
138
"preLaunchTask": "build",
14-
// If you have changed target frameworks, make sure to update the program path.
159
"program": "${workspaceFolder}/bin/Debug/net5.0/Books.dll",
1610
"args": [],
1711
"cwd": "${workspaceFolder}",
1812
"stopAtEntry": false,
19-
// Enable launching a web browser when ASP.NET Core starts. For more information: https://aka.ms/VSCode-CS-LaunchJson-WebBrowser
2013
"serverReadyAction": {
2114
"action": "openExternally",
2215
"pattern": "\\\\bNow listening on:\\\\s+(https?://\\\\S+)"
@@ -33,6 +26,12 @@
3326
"type": "coreclr",
3427
"request": "attach",
3528
"processId": "${command:pickProcess}"
29+
},
30+
{
31+
"name": "Attach to .NET Functions",
32+
"type": "coreclr",
33+
"request": "attach",
34+
"processId": "${command:azureFunctions.pickProcess}"
3635
}
3736
]
3837
}

.vscode/settings.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
{
22
"appService.preDeployTask": "publish-release",
33
"appService.deploySubpath": "bin\\Release\\net5.0\\publish",
4-
"appService.defaultWebAppToDeploy": "/subscriptions/84c290c7-23ff-45f5-9f6b-41a65b683505/resourceGroups/appsvc_windows_centralus/providers/Microsoft.Web/sites/mittbalans"
4+
"appService.defaultWebAppToDeploy": "/subscriptions/84c290c7-23ff-45f5-9f6b-41a65b683505/resourceGroups/appsvc_windows_centralus/providers/Microsoft.Web/sites/mittbalans",
5+
"azureFunctions.deploySubpath": "bin/Release/netcoreapp3.1/publish",
6+
"azureFunctions.projectLanguage": "C#",
7+
"azureFunctions.projectRuntime": "~3",
8+
"debug.internalConsoleOptions": "neverOpen",
9+
"azureFunctions.preDeployTask": "publish"
510
}

.vscode/tasks.json

Lines changed: 45 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,68 +2,96 @@
22
"version": "2.0.0",
33
"tasks": [
44
{
5-
"label": "build",
5+
"label": "watch",
66
"command": "dotnet",
77
"type": "process",
88
"args": [
9-
"build",
9+
"watch",
10+
"run",
1011
"${workspaceFolder}/Books.csproj",
1112
"/property:GenerateFullPaths=true",
1213
"/consoleloggerparameters:NoSummary"
1314
],
1415
"problemMatcher": "$msCompile"
1516
},
1617
{
17-
"label": "publish",
18+
"label": "publish-release",
1819
"command": "dotnet",
1920
"type": "process",
2021
"args": [
2122
"publish",
22-
"${workspaceFolder}/Books.csproj",
23+
"${workspaceFolder}",
24+
"--configuration",
25+
"Release",
2326
"/property:GenerateFullPaths=true",
2427
"/consoleloggerparameters:NoSummary"
2528
],
26-
"problemMatcher": "$msCompile"
29+
"problemMatcher": "$msCompile",
30+
"dependsOn": "clean"
2731
},
2832
{
29-
"label": "watch",
33+
"label": "clean",
3034
"command": "dotnet",
31-
"type": "process",
3235
"args": [
33-
"watch",
34-
"run",
35-
"${workspaceFolder}/Books.csproj",
36+
"clean",
3637
"/property:GenerateFullPaths=true",
3738
"/consoleloggerparameters:NoSummary"
3839
],
40+
"type": "process",
3941
"problemMatcher": "$msCompile"
4042
},
4143
{
42-
"label": "clean",
44+
"label": "build",
4345
"command": "dotnet",
46+
"args": [
47+
"build",
48+
"/property:GenerateFullPaths=true",
49+
"/consoleloggerparameters:NoSummary"
50+
],
4451
"type": "process",
52+
"dependsOn": "clean",
53+
"group": {
54+
"kind": "build",
55+
"isDefault": true
56+
},
57+
"problemMatcher": "$msCompile"
58+
},
59+
{
60+
"label": "clean release",
61+
"command": "dotnet",
4562
"args": [
4663
"clean",
47-
"${workspaceFolder}",
64+
"--configuration",
65+
"Release",
4866
"/property:GenerateFullPaths=true",
4967
"/consoleloggerparameters:NoSummary"
5068
],
69+
"type": "process",
5170
"problemMatcher": "$msCompile"
5271
},
5372
{
54-
"label": "publish-release",
73+
"label": "publish",
5574
"command": "dotnet",
56-
"type": "process",
5775
"args": [
5876
"publish",
59-
"${workspaceFolder}",
6077
"--configuration",
6178
"Release",
6279
"/property:GenerateFullPaths=true",
6380
"/consoleloggerparameters:NoSummary"
6481
],
65-
"problemMatcher": "$msCompile",
66-
"dependsOn": "clean"
82+
"type": "process",
83+
"dependsOn": "clean release",
84+
"problemMatcher": "$msCompile"
85+
},
86+
{
87+
"type": "func",
88+
"dependsOn": "build",
89+
"options": {
90+
"cwd": "${workspaceFolder}/bin/Debug/netcoreapp3.1"
91+
},
92+
"command": "host start",
93+
"isBackground": true,
94+
"problemMatcher": "$func-dotnet-watch"
6795
}
6896
]
6997
}

0 commit comments

Comments
 (0)