From f6c9b8b212247fe1408de6a1e60b34c54fca12d0 Mon Sep 17 00:00:00 2001 From: Justin Yoo Date: Wed, 4 Sep 2024 16:39:43 +0900 Subject: [PATCH] Update function app --- FuncApp/.vscode/extensions.json | 7 ++-- FuncApp/.vscode/launch.json | 11 ++++++ FuncApp/.vscode/settings.json | 7 ++++ FuncApp/.vscode/tasks.json | 69 +++++++++++++++++++++++++++++++++ FuncApp/FuncApp.csproj | 12 +++--- 5 files changed, 97 insertions(+), 9 deletions(-) create mode 100644 FuncApp/.vscode/launch.json create mode 100644 FuncApp/.vscode/settings.json create mode 100644 FuncApp/.vscode/tasks.json diff --git a/FuncApp/.vscode/extensions.json b/FuncApp/.vscode/extensions.json index dde673d..cb19084 100644 --- a/FuncApp/.vscode/extensions.json +++ b/FuncApp/.vscode/extensions.json @@ -1,5 +1,6 @@ { - "recommendations": [ - "ms-azuretools.vscode-azurefunctions" - ] + "recommendations": [ + "ms-azuretools.vscode-azurefunctions", + "ms-dotnettools.csdevkit" + ] } \ No newline at end of file diff --git a/FuncApp/.vscode/launch.json b/FuncApp/.vscode/launch.json new file mode 100644 index 0000000..d526e72 --- /dev/null +++ b/FuncApp/.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}" + } + ] +} \ No newline at end of file diff --git a/FuncApp/.vscode/settings.json b/FuncApp/.vscode/settings.json new file mode 100644 index 0000000..4627ced --- /dev/null +++ b/FuncApp/.vscode/settings.json @@ -0,0 +1,7 @@ +{ + "azureFunctions.deploySubpath": "bin/Release/net8.0/publish", + "azureFunctions.projectLanguage": "C#", + "azureFunctions.projectRuntime": "~4", + "debug.internalConsoleOptions": "neverOpen", + "azureFunctions.preDeployTask": "publish (functions)" +} \ No newline at end of file diff --git a/FuncApp/.vscode/tasks.json b/FuncApp/.vscode/tasks.json new file mode 100644 index 0000000..9b0588e --- /dev/null +++ b/FuncApp/.vscode/tasks.json @@ -0,0 +1,69 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "label": "clean (functions)", + "command": "dotnet", + "args": [ + "clean", + "/property:GenerateFullPaths=true", + "/consoleloggerparameters:NoSummary" + ], + "type": "process", + "problemMatcher": "$msCompile" + }, + { + "label": "build (functions)", + "command": "dotnet", + "args": [ + "build", + "/property:GenerateFullPaths=true", + "/consoleloggerparameters:NoSummary" + ], + "type": "process", + "dependsOn": "clean (functions)", + "group": { + "kind": "build", + "isDefault": true + }, + "problemMatcher": "$msCompile" + }, + { + "label": "clean release (functions)", + "command": "dotnet", + "args": [ + "clean", + "--configuration", + "Release", + "/property:GenerateFullPaths=true", + "/consoleloggerparameters:NoSummary" + ], + "type": "process", + "problemMatcher": "$msCompile" + }, + { + "label": "publish (functions)", + "command": "dotnet", + "args": [ + "publish", + "--configuration", + "Release", + "/property:GenerateFullPaths=true", + "/consoleloggerparameters:NoSummary" + ], + "type": "process", + "dependsOn": "clean release (functions)", + "problemMatcher": "$msCompile" + }, + { + "type": "func", + "dependsOn": "build (functions)", + "options": { + "cwd": "${workspaceFolder}/bin/Debug/net8.0" + }, + "command": "host start", + "isBackground": true, + "problemMatcher": "$func-dotnet-watch" + } + ] +} \ No newline at end of file diff --git a/FuncApp/FuncApp.csproj b/FuncApp/FuncApp.csproj index 915171b..cda7d0a 100644 --- a/FuncApp/FuncApp.csproj +++ b/FuncApp/FuncApp.csproj @@ -9,12 +9,12 @@ - - - - - - + + + + + +