Reputation: 321
I'm following this guide to get Azure Functions installed and creating an app: https://learn.microsoft.com/en-us/azure/azure-functions/functions-run-local
When I run the command func init MyFunctionProj
I should get an output like this:
Writing .gitignore
Writing host.json
Writing local.settings.json
Created launch.json
Initialized empty Git repository in D:/Code/Playground/MyFunctionProj/.git/
But instead I get this:
Writing .gitignore
Writing host.json
Writing local.settings.json
Writing C:\Users\nahue\dev\MyFunctionProj\.vscode\extensions.json
El sistema no puede encontrar el archivo especificado
Translation: "File not found".
I've already installed all the things mentioned in the link and it doesn't work. It creates that folder called ".vscode" with that "extensions.json" file inside and it doesn't create "launch.json", I don't know why. I don't have Visual Studio nor VS Code installed in my computer.
Upvotes: 1
Views: 892
Reputation: 17790
The init result in Azure document is for v1.x. On my side(v2.x), I also see .vscode\extensions.json
instead of launch.json
.
As for the File not found
issue, please make sure you have installed Git on your computer.
I get the output before I install it:
Writing .gitignore
Writing host.json
Writing local.settings.json
Writing C:\Users\jerryliu\myfunc\.vscode\extensions.json
unable to find git on the path
After:
Writing .gitignore
Writing host.json
Writing local.settings.json
Writing C:\Users\jerryliu\myfunc\.vscode\extensions.json
Initialized empty Git repository in C:/Users/jerryliu/myfunc/.git/
Upvotes: 1