在使用亚马逊网络服务CodePipeline (亚马逊网络服务CodeBuild)部署我的C# Lambda函数代码后,我在CloudWatch日志中收到以下错误This file should be present at the root of the deployment package.: LambdaException
我正在使用Azure函数,在我的函数中,我想创建一个压缩文件,然后将压缩文件上传到blob。我使用这个代码是为了打开一个压缩包 using (FileStream zipToOpen = new FileStream($"{context.FunctionAppDirectory}\\Test.zip", FileMode.Create)) 但是在我将函数部署到azure并运行它之后,我遇到了这个错误:“找不到文件{context.FunctionAppDirectory}\Test.zip )”。