Reputation: 737
When publishing an Azure Function from Visual Code into the "Azure Portal" I get the following error: "The remote runtime "dotnet" for function app "webhooksdie" does not match your local runtime "dotnet-isolated"." So how can I publish into the portal with .net 5.0?
Upvotes: 2
Views: 2206
Reputation: 10372
I had to manually set the FUNCTIONS_WORKER_RUNTIME
setting of the function app to dotnet-isolated
to make my local runtime match the Azure runtime. Seems to apply to .NET 5 and 6.
Upvotes: 2