Home > OS >  Failed to find csproj file in folder - unable to create c# template in vscode
Failed to find csproj file in folder - unable to create c# template in vscode

Time:06-26

Following tutorial enter image description here

Then having this error message:

enter image description here

Update: Azure function core tools installed:

enter image description here

CodePudding user response:

Recently, Visual Studio Code has changed the User Interface for the Azure Extension Resources.

Step 1:

enter image description here

  • When you click on Create Function option, it will ask you every step like Select language, Runtime, Type of Trigger, Authorization Level, Function Name, Workspace Path, etc.
  • When you click on Create HTTP Function option, it will ask you all the above options except Type of Trigger because the option creates only HTTP Trigger which is a shortcut of creating it.

Step 2:

Resources required are:

  1. Visual Studio Code IDE
  2. .NET SDK 3.1, 5, 6 depends on your requirement
  3. UsingOption1VSCodeAzF

    Output 2 using Create HTTP Function option in a sub folder of the Frontend Project using VS Code:

    UsingOptionCreateHTTPFunction

    Output 3 using Command Palette for Creating Azure Functions .NET 6 Project in VS Code:

    usingcmdpalettevscode

    CodePudding user response:

    The problem was with the permissions on a folder, where I put the project. It was Network Drive UNC path. After moving the project to different location C:\user\myproject it started to work.

  • Related