I am using azure-functions-core-tools (6.0.1) in Visual Studio Code and receive the following error:
'No templates matched the input template name: azureFunctionsProjectTemplates.'
This is right after running the 'func init MyFunctionProj' command and choosing the dotnet template. I am not experiencing this issue when choosing the node template. I have node 10.8.0 installed. Any guidance is much appreciated.
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
Thanks for the feedback! We are currently investigating and will update you shortly.
@haydenhancock can you try running the command with the --force command at the end?
func init MyFunctionProj --force
@haydenhancock I was able to achieve this in Visual Studio Code. Sounds like you might not have the .NET Core 2.1 for Windows installed.
I would suggest running through the setup steps again:
You will need all the dependencies installed before it will work. Then in VS Code I just had to add the --force
command at the end of func intit MyFuncitonProj
to force it to run. After that it all worked as expected.
I will close this for now as there is no update needed for the document. Please try the steps I suggested above and let me know if you are still seeing issues.
Not sure why this was closed. I checked my .net core version via dotnet --info
and I have 2.1.302 installed. Using --force didn't yield a different result.
PS C:\Path\To\Repo> func init MyFunctionProj2
Select a worker runtime: dotnet
No templates matched the input template name: azureFunctionsProjectTemplates.
Error creating project template
PS C:\Path\To\Repo> func init MyFunctionProj2 --force
Select a worker runtime: dotnet
No templates matched the input template name: azureFunctionsProjectTemplates.
Error creating project template
@haydenhancock the scope for these doc comments are to help identify if there are any issues with the documentation. We have verified that the doc works as expected as multiple of us have been able to get this to work using Visual Studio code. This leaves us at an issue with your local environment.
I have the following versions installed
Visual Studio Code 1.25.1
dotnet 2.1.302
azure-functions-core-tools 6.3.0
node.js 8.11.1
Looks like you could update your azure-functions-core-tools and looking at the node.js page it appears the latest version is 8.11.3 (https://nodejs.org/en/download/)
So I am not sure where you are getting 10.8.0 but that might be causing an issue. Did you follow the links in the setting up your environment section exactly?
The current version of node is 10.8.0.
I have the following versions:
When running npm install -g azure-functions-core-tools@core
it installs 2.0.1-beta.34 so not sure exactly how you have a much higher version. I can attempt to install the LTS version of node and try again.
@haydenhancock any update on this?
I hope to get around to this over the weekend.
@haydenhancock any update?
@haydenhancock I will close this for now. When ready feel free to come back and we can reopen and continue.
@MicahMcKittrick-MSFT Well... I'm not having much luck either.
First time ever trying to use Azure functions. This is what I have:
Node v10.5
.NET Core SDKs installed:
2.1.201 [C:\Program Files\dotnet\sdk]
2.1.202 [C:\Program Files\dotnet\sdk]
2.1.301 [C:\Program Files\dotnet\sdk]
2.1.400-preview-009063 [C:\Program Files\dotnet\sdk]
2.1.400-preview-009171 [C:\Program Files\dotnet\sdk]
.NET Core runtimes installed:
Microsoft.AspNetCore.All 2.1.1 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.All 2.1.2 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.App 2.1.1 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 2.1.2 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 2.0.7 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.0.9 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.1.1 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.1.2 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
s:\WORK\azure\functions>func init MyFunctionProj --force
Select a worker runtime: dotnet
No templates matched the input template name: azureFunctionsProjectTemplates.
Error creating project template
Where are these templates supposed to be?
@ahmelsayed is it possible that the dotnet templates aren't being installed correctly?
@simeyla open an issue on azure-functions-core-tools repo
@simeyla and @haydenhancock, here's link to that repo: https://github.com/Azure/azure-functions-core-tools/issues/
I ran into the same issue on a machine with dotnet 2.1.500 and azure-functions-core-tools 2.3.148. Fixed it with
dotnet new --install "Microsoft.Azure.WebJobs.ProjectTemplates"
Not sure why the func template wasn't present
ran into the same issue problem was wrong version of azure-functions-core-tools (2.0.3)
fixed it with:
npm i -g azure-functions-core-tools --unsafe-perm true
Most helpful comment
I ran into the same issue on a machine with dotnet 2.1.500 and azure-functions-core-tools 2.3.148. Fixed it with
Not sure why the func template wasn't present