简体   繁体   中英

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. Installed Azure Functions Core Tools x86 (3.0.3331)
  2. Installed Azure Functions Core Tools x64 (3.0.3331)
  3. Added Environment Variables to Path
  4. Update net core 3.1.x, net 5.0.x

Unfortunately i get this result: func --version 2.7.1948

What else?

After some time I found the helpful command where in cmd.

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.

This command resolves the problem:

choco upgrade all

Yeah:

func --version 3.0.3331

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM