Problems with creating an azure function in visual studio 2022

Viewed 446

So I right click on the solution > add > new project > find azure function > choose template > create that

And then nothing happens. If I swap to folder view, I see a new folder made for the function, but its an empty folder.

Weirdest thing is, this was working perfectly fine and a moment later, it became how it is right now. I've not updated vs in between, I've not restarted in between. It was literally closed vs, opened again, and then vs broke.

Older solutions that has functions in them, tried creating a new one, doesn't work same story. Made new solutions and start it off with creating a function, didn't work as well. Reinstalled vs, also did not help, still the same issue. Any ideas how I broke vs?

Also, this works from powershell, I can create functions from there and then go back to vs to add an existing project. However the functions I've build using this method had runtime errors (I think) when I publish them into azure. Regardless, I really would like to be able to create functions normally in vs.

1 Answers

As we can see from the comment section of the question, the solution was:

  • Go into Tools -> Get Tools and Features
  • download the .Net desktop development

As Maybemonday described in his/her comment, functions can be created afterwards.

Related