You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
namespace MyOpenApiFunctionApp
{
public class Program
{
public static void Main()
{
var host = new HostBuilder()
// Remove this line below
.ConfigureFunctionsWorkerDefaults()
// Remove this line above
// Add these lines below
.ConfigureFunctionsWorkerDefaults(worker => worker.UseNewtonsoftJson())
// Add these lines above
.Build();
host.Run();
}
}
}
I guess newer versions of Azure Functions it should be:
This is mentioned in #629 but it's subtle and not the focus of that ticket. It took me a several tries and a couple hours to realize the documentation does not meet the scaffold of the function.
If you replace the line in the scaffold with documented version of things your get a 200 OK white screen.
The text was updated successfully, but these errors were encountered:
throwaway34059
changed the title
Documentation: Update .ConfigureFunctionsWorkerDefaults() to be ConfigureFunctionsWebApplication()
Documentation: Update .ConfigureFunctionsWorkerDefaults(...) to be .ConfigureFunctionsWebApplication(...)
Mar 1, 2024
In the documentation
It says to use:
I guess newer versions of Azure Functions it should be:
This is mentioned in #629 but it's subtle and not the focus of that ticket. It took me a several tries and a couple hours to realize the documentation does not meet the scaffold of the function.
If you replace the line in the scaffold with documented version of things your get a 200 OK white screen.
The text was updated successfully, but these errors were encountered: