Skip to content

Commit e25903c

Browse files
committed
Add Imageflow.Server.Azure functions that works for /api/ subpath only
1 parent aa25374 commit e25903c

13 files changed

+1386
-17
lines changed

.vscode/extensions.json

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"recommendations": [
3+
"ms-azuretools.vscode-azurefunctions",
4+
"ms-dotnettools.csharp"
5+
]
6+
}

.vscode/launch.json

+8-5
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,29 @@
11
{
22
"version": "0.2.0",
33
"configurations": [
4+
5+
46
{
5-
// Use IntelliSense to find out which attributes exist for C# debugging
6-
// Use hover for the description of the existing attributes
7-
// For further information visit https://github.com/dotnet/vscode-csharp/blob/main/debugger-launchjson.md
87
"name": ".NET Core Launch (console)",
98
"type": "coreclr",
109
"request": "launch",
1110
"preLaunchTask": "build",
12-
// If you have changed target frameworks, make sure to update the program path.
1311
"program": "${workspaceFolder}/tests/Imageflow.Server.Tests/bin/Debug/net7.0/Imageflow.Server.Tests.dll",
1412
"args": [],
1513
"cwd": "${workspaceFolder}/tests/Imageflow.Server.Tests",
16-
// For more information about the 'console' field, see https://aka.ms/VSCode-CS-LaunchJson-Console
1714
"console": "internalConsole",
1815
"stopAtEntry": false
1916
},
2017
{
2118
"name": ".NET Core Attach",
2219
"type": "coreclr",
2320
"request": "attach"
21+
},
22+
{
23+
"name": "Attach to .NET Functions",
24+
"type": "coreclr",
25+
"request": "attach",
26+
"processId": "${command:azureFunctions.pickProcess}"
2427
}
2528
]
2629
}

.vscode/settings.json

+7-1
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,11 @@
1010
"window.zoomLevel": 1,
1111
"window.zoomPerWindow": true,
1212
"editor.mouseWheelZoom": true,
13-
"terminal.integrated.mouseWheelZoom": true
13+
"terminal.integrated.mouseWheelZoom": true,
14+
"azureFunctions.deploySubpath": "src\\Imageflow.Server.AzureFunctions/bin/Release/net9.0/publish",
15+
"azureFunctions.projectLanguage": "C#",
16+
"azureFunctions.projectRuntime": "~4",
17+
"debug.internalConsoleOptions": "neverOpen",
18+
"azureFunctions.preDeployTask": "publish (functions)",
19+
"azureFunctions.projectSubpath": "src\\Imageflow.Server.AzureFunctions"
1420
}

.vscode/tasks.json

+76
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,82 @@
3636
"${workspaceFolder}/Imageflow.Server.sln"
3737
],
3838
"problemMatcher": "$msCompile"
39+
},
40+
{
41+
"label": "clean (functions)",
42+
"command": "dotnet",
43+
"args": [
44+
"clean",
45+
"/property:GenerateFullPaths=true",
46+
"/consoleloggerparameters:NoSummary"
47+
],
48+
"type": "process",
49+
"problemMatcher": "$msCompile",
50+
"options": {
51+
"cwd": "${workspaceFolder}/src\\Imageflow.Server.AzureFunctions"
52+
}
53+
},
54+
{
55+
"label": "build (functions)",
56+
"command": "dotnet",
57+
"args": [
58+
"build",
59+
"/property:GenerateFullPaths=true",
60+
"/consoleloggerparameters:NoSummary"
61+
],
62+
"type": "process",
63+
"dependsOn": "clean (functions)",
64+
"group": {
65+
"kind": "build",
66+
"isDefault": true
67+
},
68+
"problemMatcher": "$msCompile",
69+
"options": {
70+
"cwd": "${workspaceFolder}/src\\Imageflow.Server.AzureFunctions"
71+
}
72+
},
73+
{
74+
"label": "clean release (functions)",
75+
"command": "dotnet",
76+
"args": [
77+
"clean",
78+
"--configuration",
79+
"Release",
80+
"/property:GenerateFullPaths=true",
81+
"/consoleloggerparameters:NoSummary"
82+
],
83+
"type": "process",
84+
"problemMatcher": "$msCompile",
85+
"options": {
86+
"cwd": "${workspaceFolder}/src\\Imageflow.Server.AzureFunctions"
87+
}
88+
},
89+
{
90+
"label": "publish (functions)",
91+
"command": "dotnet",
92+
"args": [
93+
"publish",
94+
"--configuration",
95+
"Release",
96+
"/property:GenerateFullPaths=true",
97+
"/consoleloggerparameters:NoSummary"
98+
],
99+
"type": "process",
100+
"dependsOn": "clean release (functions)",
101+
"problemMatcher": "$msCompile",
102+
"options": {
103+
"cwd": "${workspaceFolder}/src\\Imageflow.Server.AzureFunctions"
104+
}
105+
},
106+
{
107+
"type": "func",
108+
"dependsOn": "build (functions)",
109+
"options": {
110+
"cwd": "${workspaceFolder}/src\\Imageflow.Server.AzureFunctions/bin/Debug/net9.0"
111+
},
112+
"command": "host start",
113+
"isBackground": true,
114+
"problemMatcher": "$func-dotnet-watch"
39115
}
40116
]
41117
}

Imageflow.Server.sln

+16-10
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
1+
22
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio Version 16
4-
VisualStudioVersion = 16.0.29503.13
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.12.35707.178 d17.12
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{A08DA97E-FCD2-4ACD-AC62-413A05BBDB0E}"
77
ProjectSection(SolutionItems) = preProject
88
.gitignore = .gitignore
9+
CHANGES.md = CHANGES.md
10+
CONFIGURATION.md = CONFIGURATION.md
11+
src\design_scratch.md = src\design_scratch.md
12+
Directory.Build.props = Directory.Build.props
13+
.github\workflows\dockerize_host.yml = .github\workflows\dockerize_host.yml
914
.github\workflows\dotnet-core.yml = .github\workflows\dotnet-core.yml
1015
LICENSE.txt = LICENSE.txt
11-
README.md = README.md
12-
src\NugetPackages.targets = src\NugetPackages.targets
13-
Directory.Build.props = Directory.Build.props
14-
CONFIGURATION.md = CONFIGURATION.md
1516
src\NugetPackageDefaults.targets = src\NugetPackageDefaults.targets
17+
src\NugetPackages.targets = src\NugetPackages.targets
1618
src\ProjectDefaults.targets = src\ProjectDefaults.targets
17-
CHANGES.md = CHANGES.md
19+
README.md = README.md
1820
tests\TestDefaults.targets = tests\TestDefaults.targets
19-
src\design_scratch.md = src\design_scratch.md
20-
.github\workflows\dockerize_host.yml = .github\workflows\dockerize_host.yml
2121
EndProjectSection
2222
EndProject
2323
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Imazen.Common", "src\Imazen.Common\Imazen.Common.csproj", "{49BDDBEE-3385-4B1D-B7C1-76A893F25C00}"
@@ -66,6 +66,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Imazen.TestingHelpers", "te
6666
EndProject
6767
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Imageflow.Server.LegacyBlob", "tests\Imageflow.Server.LegacyBlob\Imageflow.Server.LegacyBlob.csproj", "{195CAA16-A6A1-49E6-A226-947CEFD4903E}"
6868
EndProject
69+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Imageflow.Server.AzureFunctions", "src\Imageflow.Server.AzureFunctions\Imageflow.Server.AzureFunctions.csproj", "{4EEC76B7-6F4D-40E8-9818-91F4A8E7B744}"
70+
EndProject
6971
Global
7072
GlobalSection(SolutionConfigurationPlatforms) = preSolution
7173
Debug|Any CPU = Debug|Any CPU
@@ -164,6 +166,10 @@ Global
164166
{195CAA16-A6A1-49E6-A226-947CEFD4903E}.Debug|Any CPU.Build.0 = Debug|Any CPU
165167
{195CAA16-A6A1-49E6-A226-947CEFD4903E}.Release|Any CPU.ActiveCfg = Release|Any CPU
166168
{195CAA16-A6A1-49E6-A226-947CEFD4903E}.Release|Any CPU.Build.0 = Release|Any CPU
169+
{4EEC76B7-6F4D-40E8-9818-91F4A8E7B744}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
170+
{4EEC76B7-6F4D-40E8-9818-91F4A8E7B744}.Debug|Any CPU.Build.0 = Debug|Any CPU
171+
{4EEC76B7-6F4D-40E8-9818-91F4A8E7B744}.Release|Any CPU.ActiveCfg = Release|Any CPU
172+
{4EEC76B7-6F4D-40E8-9818-91F4A8E7B744}.Release|Any CPU.Build.0 = Release|Any CPU
167173
EndGlobalSection
168174
GlobalSection(SolutionProperties) = preSolution
169175
HideSolutionNode = FALSE

0 commit comments

Comments
 (0)