Home > database >  Using .NET Function Framework with multiple Google Cloud HTTP Functions in one project; how to set e
Using .NET Function Framework with multiple Google Cloud HTTP Functions in one project; how to set e

Time:04-12

I'm using .NET Function Framework to create and deploy some C# HTTP Functions to Google Cloud. I have multiple HTTP Functions defined in a single project.

How can I set the entry point in Visual Studio so I can specify which one to debug?

Or is there a way to debug so they are all listening at the same time?

CodePudding user response:

Found the answer, documented here on Google's own documentation.

In Visual Studio you can run the following command from the PMC with the target argument:

dotnet run --target Namespace.MyFunctionName

Or edit the arguments in Debug > Debug Properties > Command Line Arguments:

--target Namespace.MyFunctionName

Then you can debug using F5 as normal.

  • Related