32 位 Azure Functions 核心工具和 Visual Studio

问题描述 投票:0回答:1

Visual Studio 在调试时可以使用 32 位版本的 Azure Functions Core Tools 而不是 64 位版本吗?我的 Azure Function 使用第三方 32 位 DLL,因此我的代码需要以 32 位运行。我需要帮助找到一种使用 Visual Studio 完成此任务的方法。我可以在命令行中运行我的代码,而无需使用 Visual Studio。

azure-functions azure-functions-core-tools
1个回答
0
投票

请参阅此博客,使用 32 位 Azure Functions Core 工具在 Visual Studio 中调试 Function 项目。

此外,Visual Studio 只会选择控制面板顶部运行的 Azure Function 核心工具,因此您可以卸载

Azure Function 64 bit core tools
并保持
32 bit x86 Azure Function core tools
运行。

enter image description here

还有一个选项是将可执行路径设置为 Azure Function 32 位核心工具,如下所示:-

右键单击您的 Azure Function 项目 > 调试 > 可执行文件 > 可执行文件的路径设置为 Azure 函数核心工具 32 位 > 命令行参数

host start
:-

enter image description here

您可以在 Any CPU > Configuration Manager > 中选择 Toggle,然后添加新平台设置为 x86

enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.