I am trying to run a program that is using Azure Functions. I am using Visual Studio 2017. This is the program:
https://github.com/Azure-Samples/blockchain/tree/master/blockchain-workbench/rest-api-samples/dotnet
I downloaded everything that is related to Azure Functions.
When I press debug I get the following error:
A project with an Output type of Class Library cannot be started directly In order to debug this project, add an executable project to this solution which references the library project. Set the executable project as the startup project.
Am I running this example correctly or did I miss something that is related to Azure functions?
Thanks
The package Microsoft.NET.Sdk.Functions
(used to build Function project) seems broken, try to delete the reference and re-install package using nuget.
As for the error
Unable to find function project root. Expecting to have host.json in function project root
In VS, open new project and select Functions.csproj
to locate the project.