0

I can't seem to get Azure functions running for Visual Studio 2022 for mac.

I am able to run the functions ok in Visual Studio Code.

The functions come up ok in the terminal for Visual Studio 2022, but when I invoke the function I get this error:

An unhandled host error has occurred. [2022-10-03T00:50:25.613Z] Microsoft.Azure.WebJobs.Host: 'yourFunctionName' can't be invoked from Azure WebJobs SDK. Is it missing Azure WebJobs SDK attributes?.

Tried uninstalling and reinstalling but no luck

Xander
  • 9,069
  • 14
  • 70
  • 129
  • Trying to debug my Function app, I'm getting an error that says "Cannot execute "../bin/Debug/net6.0/functions.exe". how did you get past this? – duyn9uyen Oct 05 '22 at 19:08

1 Answers1

0

I reintalled visual studio. I installed .net core and the .net tools.

It still was not working.

Then I cleaned the project and it started working.

Xander
  • 9,069
  • 14
  • 70
  • 129