在Visual Studio中调试x64 Azure函数 [英] Debugging x64 Azure Functions in Visual Studio

查看:185
本文介绍了在Visual Studio中调试x64 Azure函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在通过Visual Studio编写C#Azure函数。此功能通过博客存储触发,并且使用x64 C ++ DLL处理blob。



问题是,随Visual Studio一起安装的默认Azure函数工具只有一个功能exe(func.exe)的x86版本。



我在此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:\Users\acardy\AppData\Local\AzureFunctionsTools\Releases\1.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: yourclifolderpath\1.0.12-x64\func.exe
Application Arguments: host start
Working Directory: $(TargetDir)

这篇关于在Visual Studio中调试x64 Azure函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆