I have install Azure Functions Core Tools V.3.x from Microsoft.
I am trying to follow a learning path. So far it worked fine when working with nodes. Any way, now I am trying to experiment with .net, so what I did is following:
func init
Chose dotnet it generate files in my workspace fine. Next.
func new
And chose HttpTrigger, than I get this error:
No templates found matching: 'HttpTrigger'. To list installed templates, run 'dotnet new --list'. To search for the templates on NuGet.org, run 'dotnet new HttpTrigger --search'.
So by researching and reading, I tried to follow a suggestion and ended up with this command to install the templates:
dotnet new -i Microsoft.Azure.WebJobs.ItemTemplates
And indeed it has confirmed that I have HttpTrigger installed as you can see in the image below. But still has the same issue as mentioned before "No templates found matching: 'HttpTrigger'."
My Question, what is possibility going wrong with in command line that the template is not found?
Note:
- I have used cmd and powershell with administrator privilege as well.
- When I try to create a project in Visual Studio 2019 it can create HttpTriggers without issues.
- I have both Visual Studio 2019 and 2022 installed on Windows 10 environment.
- This is first time I use Azure Functions Core Tools and learning it.
