'Visual Studio: ScriptLoggingBuilderExtensions.cs not found when debugging

I am using Visual Studio version 16.7.3 (latest) and recently came upon a problem. I am creating an Azure Function, using .net Microsoft.Azure.WebJobs.

Everything went fine until recently I got HTTP 500 errors. I went to check it out locally and placed some stopping points for the debug process. After a few lines of debugging I suddenly get a popup saying:

ScriptLoggingBuilderExtensionError

This has never popped up before. I did some Googling but none of the available fixes worked for me. Anyone else experienced this before?

Thank you



Solution 1:[1]

For me, I've just added the Microsoft.NET.Sdk.Functions package, and it's working.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Jeremy Caney