I've been given the task to debug an Azure function on VS 2022 targeting .Net Framework 4.8. While its straight forward to debug it in .Net Core 3.0 or later, I keep getting the error - A project with an Output Type of Class Library cannot be started directly, when I try to run it by pressing F5. Looking around, I followed this link to download Azure functions core tools;
While I can run and debug functions written in .Net Core 3.1 and .Net 6 but I'm struggling with this legacy function. Any help is really appreciated.
CodePudding user response:
We have tried to create Azure function with .net framework 4.8
and successfully tested in our local by using visual studio 2022.
-
- Able to debug successfully as shown below
- For more information please refer this MICROSOFT DOCUMENTATION