簡體   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

  1. 安裝 Azure 功能核心工具 x86 (3.0.3331)
  2. 已安裝 Azure 功能核心工具 x64 (3.0.3331)
  3. 將環境變量添加到路徑
  4. 更新net core 3.1.x、net 5.0.x

不幸的是我得到了這個結果: func --version 2.7.1948

還有什么?

一段時間后,我在 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 

令人驚訝的是,Visual Studio 2019 在安裝 azure 功能核心工具時使用巧克力

此命令可解決問題:

choco upgrade all

是的:

func --version 3.0.3331

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM