Got below error while trying to run the Azure Function in VS2022 locally.
This version of the Azure Functions Core Tools requires your project to reference version 4.5.0 or later of Microsoft.NET.Sdk.Functions.
It can be fixed by updating the version of Microsoft.NET.Sdk.Functions, however that's also mean I will need to spend quite some times to test as code coverage is not good enough.
As a short term solution, would like to know how can I find out the Azure Functions Core Tools version VS is using, as well as how to rollback to the pervious version?
Incase your functions are running in isolated worker model, you need to update the same on local.settings.json file for running your functions locally from visual studio as following.
"FUNCTIONS_WORKER_RUNTIME": "dotnet-isolated",
I was also getting the same error, which got resolved after updating the runtime
In order to fix the error showed in @Bill question, I run the followed steps:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With