我正在尝试创建一个云函数。我有一个复制以下结构的解决方案。这里我们有 Emulator 函数用于在本地 docker 模拟器上运行,HttpFunction 用于在云函数中运行。两个项目都引用了Common 项目
MySolution
| MySolution.sln
|- Emulator
| | Emulator.csproj
| | Program.cs
|- HttpFunction
| | HttpFunction.csproj
| | HttpFunction.cs
|- Common
| | Common.csproj
| | - Models
| | | ...
| | - Services
| | | ...
据我所知,云函数希望您传入代码文件而不是已发布的 DLL,但这样做似乎无法接收多个项目,例如我们使用引用项目中的数据的示例 常见。
我的压缩文件夹结构如下:
build.X.X.zip
|- HttpFunction
| | HttpFunction.csproj
| | HttpFunction.cs
|- Common
| | Common.csproj
| | - Models
| | | ...
| | - Services
| | | ...
是否可以部署这种结构,因为我无法使其工作?
是否有必须为云功能采用的特定结构?