简体   繁体   English

如何将 Azure 功能从 .netcore 3.x 更新到 .net 5.0

[英]How to update Azure functions from .netcore 3.x to .net 5.0

https://docs.microsoft.com/en-us/azure/azure-functions/functions-run-local?tabs=windows%2Ccsharp%2Cbash#v2 https://docs.microsoft.com/en-us/azure/azure-functions/functions-run-local?tabs=windows%2Ccsharp%2Cbash#v2

  1. Installed Azure Functions Core Tools x86 (3.0.3331)安装 Azure 功能核心工具 x86 (3.0.3331)
  2. Installed Azure Functions Core Tools x64 (3.0.3331)已安装 Azure 功能核心工具 x64 (3.0.3331)
  3. Added Environment Variables to Path将环境变量添加到路径
  4. Update net core 3.1.x, net 5.0.x更新net core 3.1.x、net 5.0.x

Unfortunately i get this result: func --version 2.7.1948不幸的是我得到了这个结果: func --version 2.7.1948

What else?还有什么?

After some time I found the helpful command where in cmd.一段时间后,我在 cmd where找到了有用的命令。

where func
C:\ProgramData\chocolatey\bin\func.exe 
C:\Program Files\Microsoft\Azure Functions Core Tools\func.exe 
C:\Program Files (x86)\Microsoft\Azure Functions Core Tools\func.exe 

Surprising that Visual Studio 2019 uses chocolately when installing azure function-core tools.令人惊讶的是,Visual Studio 2019 在安装 azure 功能核心工具时使用巧克力

This command resolves the problem:此命令可解决问题:

choco upgrade all

Yeah:是的:

func --version 3.0.3331

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何将 Azure Functions v3 迁移到 .net core 5.0 - How to migrate Azure Functions v3 to .net core 5.0 Azure WebJobs (3.x) 连续作业未在仪表板中显示函数 - Azure WebJobs (3.x) Continuous job not showing Functions in Dashboard 从.Net Core 3.1 更新到.Net 5.0 时,将WebApi 发布到Azure - Publish WebApi to Azure when update to .Net 5.0 from .Net Core 3.1 如何使用 .NET Core 3.x 与 Azure Function 应用程序 Z531B84AD41B2A7501DA83ACF367 运行时? - How to use .NET Core 3.x with Azure Function App Powershell Runtime? 使用Netcore的Azure函数中的外部依赖关系 - External dependencies in Azure functions with netcore Azure 函数包和扩展、函数版本 - javascript 混淆 2.x、5.0.x+? - Azure Functions bundle and extension, functions versions - javascript confusion 2.x, 5.0.x+? 从 C# 为运行时版本 3.x 禁用 Azure Function? - Disable Azure Function from C# for runtime version 3.x? 如何从命令行使用 .NET 5.0 配置 Azure VM? - How do you configuring Azure VMs with .NET 5.0 from the command line? .netcore Azure 函数启动 class 未被调用 - .netcore Azure functions startup class is not called 使用 bitbucket 管道在 .netcore 3 中部署 Azure 函数 - Deploy Azure Functions in netcore 3 with bitbucket pipeline
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM