I am not using Logic Apps every day at the moment and you sometimes get out of practice with stuff. I have a talk coming up soon and every time I have tried to set up a Logic App workspace I do it wrong and it gives me a world of grief to sort it out.

The problem is really easy to fix too so I am making a note for myself here.

What I do wrong

The bit I do wrong comes from years of habit where take the following actions:

  1. I create a folder that I am going to add my project in
  2. I open VS code and open that folder
  3. I then use the Logic App extension and choose to create a new workspace in the folder ive created
  4. Logic Apps builds all of the folders etc

What problems does this cause?

The problems that happen as result of this are as follows:

  1. I can not open the Logic App designer
  2. I can not F5 to start the project
  3. I get a bunch of error messages like the ones below
Error in determining project root. Please confirm project structure is correct.
Failed to find a logic app project in the workspace folder "c:\Code\Mike-Demos\LogicApp-Testing-Demo".
Could not find path to extension bundle.

What should I do?

The correct thing to do is to do the following sequence of events:

  1. Open Visual Studio Code
  2. DO NOT open a folder
  3. I then use the Logic App extension and choose to create a new workspace in and choose the folder to create it in
  4. Allow VS Code to open the solution for me

After this series of steps I can open the workflow in the designer and F5 and everything works fine.

Video

This gif will walk you through the setup for the next time I forget.

Hopefully this will save someone else an hour

 

Buy Me A Coffee