Azure / azure-functions-core-tools

Command line tools for Azure Functions
MIT License
1.32k stars 433 forks source link

Can't find templates location. Looked under 'C:\ProgramData\chocolatey\lib\azure-functions-core-tools\tools\in-proc8\templates\net-isolated' #3805

Open doggy8088 opened 2 months ago

doggy8088 commented 2 months ago

Version

azure-functions-core-tools v4.0.5907

Microsoft Windows [Version 10.0.19045.4780]

Description

I can't run func init command and it said Can't find templates location.

Steps to reproduce

  1. choco install azure-functions-core-tools -y
  2. func init MyFunctionApp --worker-runtime dotnet-isolated

Then, you will see the following error:

Can't find templates location. Looked under 'C:\ProgramData\chocolatey\lib\azure-functions-core-tools\tools\in-proc8\templates\net-isolated'

image

image

monkeydeus commented 1 month ago

I have the same experience WIndows v 23H2 azure-functions-core-tools 4.0.1

craigthackerx commented 1 month ago

Getting the same. 4.0.6280. Installed with Choco and manually, works manually. Using the VSCode extension works as another workaround or in WSL.

Windows 11 latest build here. Choco 2.3.0.