Removing the %LocalAppData%\AzureFunctionsTools
folder did not work for me. Neither did updating the toolsets.
I had to update:
Both to version 17.12.0 (using Visual Studio Installer).
Then after rebooting the computer, the Azure Function was running local correctly.