c# - Azure 函数部署错误:您的函数应用面向 V1,但 Azure 主机的函数版本为 V2,
问题描述
我正在尝试使用 .net 核心部署我新创建的功能这是我的项目内容,我在 azure 上的功能配置为版本 2,FUNCTIONS_EXTENSION_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。
推荐阅读
- angular - 如何手动重新渲染组件Angular 5
- c# - 如何使用 C# 正确写入 Access (2002-2003) 数据库
- c# - dotnet core 2 消耗高 CPU
- php - 单元测试 Laravel 密码重置电子邮件 - 可邮寄未排队
- mysql - mysql 多对多关系作为列
- python - 从 pandas 中的文件名中提取文件扩展名
- php - 自定义 PHP 应用程序中的 WordPress 帖子标题
- php - laravel 5 twitter api 推文未进入数据库
- php - Laravel Passport 401 以下文档
- c++ - 在 C++ 中对自定义对象的向量进行操作