Debugging x64 Azure Functions in Visual Studio(在 Visual Studio 中调试 x64 Azure Functions)
问题描述
我正在通过 Visual Studio 编写一个 C# Azure 函数.该函数通过博客存储触发,使用 x64 C++ DLL 处理 blob.
问题是与 Visual Studio 一起安装的默认 Azure 函数工具只有 x86 版本的函数 exe (func.exe).
我在这个 URL 看到,现在有 x64 版本:
I'm writing a C# Azure function via Visual Studio. This function is triggered through blog storage, and the blob is processed using an x64 C++ DLL.
The issue is that the default Azure functions tooling installed with visual studio only has an x86 version of the functions exe (func.exe).
I see at this URL, there are now x64 builds: https://github.com/Azure/azure-functions-core-tools/releases
The problem is, by default, Visual Studio is picking version 1.2.0 of the tools on my machine (C:UsersacardyAppDataLocalAzureFunctionsToolsReleases1.2.0), and I don't see a 1.2.0 x64 release at the URL.
Is there any way to get Visual Studio to choose a different version that I could then patch with an x64 build?
I'm currently running Visual Studio version 15.7.1.
Thanks.
1.2.0 (aka cli 1.0.13) download links have not been published yet in the release note you mentioned. And VS downloads x86 cli version for v1 functions by default.
So you can download a previous version x64 cli manually and use it to debug. See 1.0.12.
Note: Visit cli release note to download latest version(1.x for v1 functions, 2.x for v2).
After downloading this cli, right click your project->Properties, do debug configuration below.
Launch: Executable
Executable: yourclifolderpath1.0.12-x64func.exe
Application Arguments: host start
Working Directory: $(TargetDir)
这篇关于在 Visual Studio 中调试 x64 Azure Functions的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:在 Visual Studio 中调试 x64 Azure Functions
基础教程推荐
- 为什么Flurl.Http DownloadFileAsync/Http客户端GetAsync需要 2022-09-30
- 如何在 IDE 中获取 Xamarin Studio C# 输出? 2022-01-01
- 将 XML 转换为通用列表 2022-01-01
- SSE 浮点算术是否可重现? 2022-01-01
- MS Visual Studio .NET 的替代品 2022-01-01
- c# Math.Sqrt 实现 2022-01-01
- 将 Office 安装到 Windows 容器 (servercore:ltsc2019) 失败,错误代码为 17002 2022-01-01
- rabbitmq 的 REST API 2022-01-01
- 如何激活MC67中的红灯 2022-01-01
- 有没有办法忽略 2GB 文件上传的 maxRequestLength 限制? 2022-01-01