32-bit Azure Functions Core Tools and Visual Studio

31 Views Asked by At

Can Visual Studio use the 32-bit version of Azure Functions Core Tools instead of the 64-bit version when debugging? My Azure Function uses a third-party 32-bit DLL, so my code needs to run as 32-bit. I need help finding a way to accomplish this using Visual Studio. I can run my code at the command line without using Visual Studio.

1

There are 1 best solutions below

0
SiddheshDesai On

Refer this Blog to debug your Function project in Visual Studio with 32 bit Azure Functions Core tools.

Also, Visual Studio will only pick the Azure Function core tools that's running at top in the control panel, Thus you can uninstall Azure Function 64 bit core tools and keep 32 bit x86 Azure Function core tools running.

enter image description here

One more option is to set the Executable Path to Azure Function 32 bit core tools like below:-

Right click on your Azure Function project > Debug > Executable > Path to Executable set to Azure function core tools 32 bit > command line arguments host start:-

enter image description here

You can select Toggle in Any CPU > Configuration Manager > and add New Platform set to x86

enter image description here