gpt4 book ai didi

Azure函数: how to upload a function.项目文件

转载 作者:行者123 更新时间:2023-12-03 00:58:19 25 4
gpt4 key购买 nike

我不知道如何上传 function.proj 文件。

https://learn.microsoft.com/en-us/azure/azure-functions/functions-reference-csharp#referencing-external-assemblies带我到https://learn.microsoft.com/en-us/azure/azure-functions/functions-reference#fileupdate

但他们都没有任何屏幕截图显示按钮在哪里。我搜索了其他一些 SO 帖子,例如这个 How can I use NuGet packages in my Azure Functions?

但是我的 UI 与 OP 不同,也许 UI 已更新? enter image description here

这是我收到的错误,

020-10-07T11:30:14.445 [错误] run.csx(7,23): 错误 CS0234: 命名空间“Microsoft.Azure”中不存在类型或命名空间名称“ServiceBus”(您是否缺少装配引用?)2020-10-07T11:30:14.489 [错误] run.csx(8,23):错误CS0234:命名空间“Microsoft.Azure”中不存在类型或命名空间名称“ServiceBus”(您是否缺少程序集引用?)2020-10-07T11:30:14.531 [错误] run.csx(9,17):错误CS0234:命名空间“Microsoft”中不存在类型或命名空间名称“Identity”(您是否缺少程序集引用?)

最佳答案

是的,功能的用户界面已更改。这一变化从今年 5 月开始。

现在没有上传按钮,我们只有两种方法:

1、使用kudu上传文件:

转到 https://yourfunctionappname.scm.azurewebsites.net/DebugConsole,转到 D:\home\site\wwwroot\yourtriggername>,然后单击下面的按钮创建文件:

enter image description here

2、使用链接存储上传文件:

当您在azure上创建函数应用程序时,您将基于azure上的存储。您可以在存储中找到函数应用的所有内容。

获取链接存储名称:(在我这边,链接存储名为“0730bowmanwindow”。)

enter image description here

进入存储,进入文件共享存储部分:

enter image description here

点击您的函数应用名称:

enter image description here

然后点击site->wwwroot->yourtriggername,使用下面的按钮上传文件:

enter image description here

关于Azure函数: how to upload a function.项目文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64243128/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com