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:
- I create a folder that I am going to add my project in
- I open VS code and open that folder
- I then use the Logic App extension and choose to create a new workspace in the folder ive created
- Logic Apps builds all of the folders etc
What problems does this cause?
The problems that happen as result of this are as follows:
- I can not open the Logic App designer
- I can not F5 to start the project
- 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:
- Open Visual Studio Code
- DO NOT open a folder
- I then use the Logic App extension and choose to create a new workspace in and choose the folder to create it in
- 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