azure - azure function 项目的运行命令中生成错误

标签 azure azure-functions java-11

我正在运行 azure 项目 并收到以下错误

Azure Functions Core Tools Core Tools Version: 3.0.3216 Commit hash: 91e025087513e9e0f3ad02442e35e2f58b40d1b3 Function Runtime Version: 3.0.15193.0 Skipping 'JAVA_HOME' from local settings as it's already defined in current environment variables. [2022-05-16T14:25:28.863Z] File 'C:\Program Files\dotnet\dotnet.exe' is not found, 'dotnet' invocation will rely on the PATH environment variable. [2022-05-16T14:25:39.649Z] File 'C:\Program Files\dotnet\dotnet.exe' is not found, 'dotnet' invocation will rely on the PATH environment variable. [2022-05-16T14:25:40.239Z] File 'C:\Program Files\dotnet\dotnet.exe' is not found, 'dotnet' invocation will rely on the PATH environment variable. [2022-05-16T14:25:40.646Z] File 'C:\Program Files\dotnet\dotnet.exe' is not found, 'dotnet' invocation will rely on the PATH environment variable. [2022-05-16T14:25:40.727Z] Worker process started and initialized.

我已经在系统中安装了AzureFunction工具在intellij中安装了Azure Toolkit Plugin

最佳答案

请检查以下步骤是否有帮助,因为它正在我们这边工作:

  1. File 'C:\Program Files\dotnet\dotnet.exe' is not found, 'dotnet' invocation will rely on the PATH environment variable.

看起来 dotnet 未包含在系统环境变量路径中。

如何找到这个

单击 Windows 🪟 搜索按钮 > 键入环境变量 > 打开并单击 🖱️ 环境变量 > 检查系统中可用的这些路径:

enter image description here

如果找不到 dotnet,请安装最新的 SDK of dotnet并在安装后使用命令提示符中的命令进行检查:dotnet --version

如果任何路径不可用,请将这些路径包含在系统的环境变量中。

此外,在同一对话框中检查用户变量:

enter image description here

此后,检查一下已安装的所需工具以及此MSFT Doc中提到的步骤。遵循,然后尝试运行该函数。

关于azure - azure function 项目的运行命令中生成错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/72287438/

相关文章:

java - 如何使用 JDK 11 打开 JavaFX .jar 文件?

c# - 在 Azure 云服务上运行 Selenium Chrome WebDriver?

python - Azure Function Apps 中缺少 DLL

azure - 使用 DeviceLifecycleEvents 源的 IoT 中心消息路由不起作用

azure - 在 FunctionsStartup 中使用 ConfigurationBuilder

java - 如何将基于多个条件的 header 添加到 HttpRequest Java 11?

java - 如何在 Windows 上获取适用于 OpenJDK 11 的 tools.jar?

c# - StackExchange.Redis 字符串值转换为集合

azure - 无法通过 ssms 连接到 azure sql

ajax - Azure Web App不加载.json文件