0

I am trying to create a cloud script for my game. For that I have to use Azure functions and was following this documentation and just installed visual studio 2022 .In the documentation under "Run the function locally" , to run the function I have to press the F5 button. But when I press the nothing happens.After exploring a bit I found that under "Debug" ,"Start Debugging F5" is greyed outScreenShot of Stop Debugging Greyed Out

I searched online and as per this post you have to selected "set as startup project". But no such option exists.The other solution doesn't make sense to me. Screen Shot of the problem Is there a solution to this problem?

chethanv77777
  • 480
  • 9
  • 18
  • I'd guess you used File > New > File instead of File > New > Project. https://learn.microsoft.com/en-us/azure/azure-functions/functions-create-your-first-function-visual-studio#create-a-function-app-project – Hans Passant Jan 27 '22 at 17:10
  • @HansPassant No I didnt do that. Infact I redid the process again. What I can understand is as per the documentation under "Rename the function", as per Step 1 when you In File Explorer rename the file, it is then creating the problem, because before renaming the file the debug option is present – chethanv77777 Jan 28 '22 at 02:24
  • That's a typo, use the Solution Explorer window in VS. Right-click the entry and click Rename. – Hans Passant Jan 28 '22 at 07:30
  • I actually solved the problem but renaming the class name , did Edit->Refractor which changed the name of the file simultaneously as well – chethanv77777 Jan 28 '22 at 07:35

0 Answers0