gpt4 book ai didi

c# - TimeTrigger 函数出错

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

我目前无法在使用 Function CLI 版本 2.3.1482.3.199 的 macO 中运行 TimeTrigger 函数:

enter image description here

这是我的 csproj:

<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<AzureFunctionsVersion>v2</AzureFunctionsVersion>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Azure.WebJobs.Extensions.SendGrid" Version="3.0.0" />
<PackageReference Include="Microsoft.NET.Sdk.Functions" Version="1.0.24" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.WebApiCompatShim" Version="2.1.0" />
</ItemGroup>
<ItemGroup>
<None Update="host.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="local.settings.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<CopyToPublishDirectory>Never</CopyToPublishDirectory>
</None>
</ItemGroup>
</Project>

所有时间触发器都不起作用(旧的和新的)。

有什么想法吗?

最佳答案

由于您在本地运行,因此您可能需要 Azure 存储模拟器。由于您在 MacOS 上运行,因此默认的 Azure 存储模拟器无法实现此目的。

看看Azurite .

A lightweight server clone of Azure Blob, Queue, and Table Storage that simulates most of the commands supported by it with minimal dependencies.

In order to run Azurite you need Node.js >= 6.0 installed on your system. Azurite works cross-platform on Windows, Linux, and OS X.

After installation you can install Azurite simply with npm which is Node.js package management tool and which is included with every Node.js installation.

$ npm install -g azurite

关于c# - TimeTrigger 函数出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53980020/

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