Reputation: 1139
I'm totally new to Azure development.
I have a solution with multiple Azure function projects. Each one has an Output Type of Class Library, and each one is set as a startup project.
I created a new Http Trigger Function, and set it as a startup project, but when I press F5, I get an error: "A project with an output type of Class Library cannot be started directly." That doesn't make sense, because all of my Azure functions are Output Type Class Library. (other Azure functions are not Http Trigger Functions)
Upvotes: 0
Views: 438
Reputation: 1139
I found my own issue.
Obviously, a normal project with Output Type of Class Library can not start up. But as an Azure Function, if we add "host start --port 7077" (or some other unique port number) as an Application Argument to the Properties Page under the Debug tab, it will run the Azure Function DLL wrapped in some supporting code resulting in a "Func.exe" command output window.
There's a little bit of magic here, but that's how we got it working so that I can debug it.
Upvotes: 2