Azure功能部署错误:您的功能应用程序的目标是V1,但Azure主机的功能版本为V2



我正在尝试使用.net核心部署我新创建的函数这是我的项目内容,我在azure上的函数是用版本2配置的,FUNCTIONS_EEXTENSION_version是~2。

<TargetFramework>netcoreapp2.1</TargetFramework>
<AzureFunctionsVersion>v2</AzureFunctionsVersion>

如果我在本地存储库上进行部署,就会出现此错误。

remote: Your function app is targeting V1, but Azure host has function version V2,
remote: please change the version using the portal or update your 'FUNCTIONS_EXTENSION_VERSION' appsetting and retry

你知道我能做什么吗?

问题是我有一个卸载的单元测试.net 4.7项目。删除后,我可以发布到azure。

最新更新