更新时间:2023-02-03 17:07:38
一个问题是 Visual Studio 有一个过时的 Functions Core 工具版本.在此问题得到解决之前,您可以通过以下方式解决:
One issue is that Visual Studio has an outdated version of the Functions Core tools. Until this is resolved, you can work around in the following way:
npm install -g azure-functions-core-tools
[YourUserName]
):C:Users[YourUserName]AppDataRoaming
pm
ode_modulesazure-functions-core-toolsinfunc.exe
host start
$(TargetDir)
npm install -g azure-functions-core-tools
[YourUserName]
): C:Users[YourUserName]AppDataRoaming
pm
ode_modulesazure-functions-core-toolsinfunc.exe
host start
$(TargetDir)
现在,当您从 VS 运行时,您将使用 npm 工具,而不是 VS 包附带的旧工具.
Now when you run from VS, you'll be using the npm tools instead of the older one that come with the VS package.