From 37e6dbfa0cc42aa46884fb566810fd2ac4d8b607 Mon Sep 17 00:00:00 2001 From: Maarten Merken Date: Fri, 11 Sep 2020 14:26:14 +0200 Subject: [PATCH] Added VS Code directory for debugging --- .vscode/extensions.json | 6 ++ .vscode/launch.json | 11 ++++ .vscode/settings.json | 7 +++ .vscode/tasks.json | 68 +++++++++++++++++++++ src/Local.Functions/.vscode/extensions.json | 5 -- src/Local.Functions/local.settings.json | 3 + 6 files changed, 95 insertions(+), 5 deletions(-) create mode 100644 .vscode/extensions.json create mode 100644 .vscode/launch.json create mode 100644 .vscode/settings.json create mode 100644 .vscode/tasks.json delete mode 100644 src/Local.Functions/.vscode/extensions.json diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 0000000..e3d8158 --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,6 @@ +{ + "recommendations": [ + "ms-azuretools.vscode-azurefunctions", + "ms-dotnettools.csharp" + ] +} \ No newline at end of file diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..8d17a19 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,11 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "name": "Attach to .NET Functions", + "type": "coreclr", + "request": "attach", + "processId": "${command:azureFunctions.pickProcess}" + } + ] +} diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..9977b0e --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,7 @@ +{ + "azureFunctions.deploySubpath": "bin/Release/netcoreapp3.1/publish", + "azureFunctions.projectLanguage": "C#", + "azureFunctions.projectRuntime": "~3", + "debug.internalConsoleOptions": "neverOpen", + "azureFunctions.preDeployTask": "publish" +} \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..62e07ae --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,68 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "label": "clean", + "command": "dotnet", + "args": [ + "clean", + "/property:GenerateFullPaths=true", + "/consoleloggerparameters:NoSummary" + ], + "options": { + "cwd": "${workspaceFolder}/src/Local.Functions" + }, + "type": "process", + "problemMatcher": "$msCompile" + }, + { + "label": "build", + "command": "dotnet", + "args": [ + "build", + "/property:GenerateFullPaths=true", + "/consoleloggerparameters:NoSummary" + ], + "type": "process", + "dependsOn": "clean", + "group": { + "kind": "build", + "isDefault": true + }, + "options": { + "cwd": "${workspaceFolder}/src/Local.Functions" + }, + "problemMatcher": "$msCompile" + }, + { + "label": "publish", + "command": "dotnet", + "args": [ + "publish", + "--configuration", + "Release", + "/property:GenerateFullPaths=true", + "/consoleloggerparameters:NoSummary" + ], + "type": "process", + "dependsOn": "clean release", + "problemMatcher": "$msCompile" + }, + { + "label": "run-storage-emulator", + "type": "shell", + "command": "docker start local.storage.emulator", + "dependsOn": "build", + }, + { + "type": "func", + "dependsOn": ["run-storage-emulator"], + "options": { + "cwd": "${workspaceFolder}/src/Local.Functions/bin/Debug/netcoreapp3.1" + }, + "command": "host start", + "isBackground": true, + "problemMatcher": "$func-watch" + } + ] +} \ No newline at end of file diff --git a/src/Local.Functions/.vscode/extensions.json b/src/Local.Functions/.vscode/extensions.json deleted file mode 100644 index dde673d..0000000 --- a/src/Local.Functions/.vscode/extensions.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "recommendations": [ - "ms-azuretools.vscode-azurefunctions" - ] -} \ No newline at end of file diff --git a/src/Local.Functions/local.settings.json b/src/Local.Functions/local.settings.json index 2bff7e6..60eca89 100644 --- a/src/Local.Functions/local.settings.json +++ b/src/Local.Functions/local.settings.json @@ -2,6 +2,9 @@ "IsEncrypted": false, "Values": { "AzureWebJobsStorage": "UseDevelopmentStorage=true", + "BlobContainerName": "input-container", + "BlobOutputContainerName": "output-container", + "QueueName": "queue", "FUNCTIONS_WORKER_RUNTIME": "dotnet" } } \ No newline at end of file