I have a functionapp that I made in visual studio 2019. I want to publish this app to an azure function that already exists in Azure. But when I try to publish from VS I get the following error:
I tried to update VS to the latest version and updating the Microsoft.NET.Sdk.Functions packet to version 1.0.35 since the following versions require .NetCore 3 and I use .NetCore 2.1. I also tried to do a Webdeploy but got the same error.
When I changed my .NetCore version to 3.1 and do a WebDeploy I now get this error:

I looked this up and people said to change the WEBSITE_RUN_FROM_PACKAGE value to 0, I tried this and even tried deleting this and it still gave the same error.
I also tried ZIP-deploy and then I get this error:

I also edited the runtimesettings when I changed the version.
In the map IntentFunctions are 6 other azure functions.
Even creating a new app service from VS and then publishing doesn't work.
I saw that most other azure function apps have a json file for each function and I do not have this only a host.json file, might this be the problem?
Anyone know a fix? Thanks in advance

