VS Arduino
Visual Micro >> Project Guidance >> include ESP SPIFFS data folder in project
https://www.visualmicro.com/forums/YaBB.pl?num=1576602019

Message started by Natsuki-chan on Dec 17th, 2019 at 5:00pm

Title: include ESP SPIFFS data folder in project
Post by Natsuki-chan on Dec 17th, 2019 at 5:00pm
Hello,

I am coding a project for an ESP32 that includes a webserver.
The files are served from SPIFFS that is uploaded via Visual Micro.
However I want it to be included in the project.
How can I do that?

Title: Re: include ESP SPIFFS data folder in project
Post by Visual Micro on Dec 17th, 2019 at 5:17pm
There is a small icon above the solution explorer called "Show All Files"

In "Show all files"  view you will see your \Data folder.

If you need to include for source control? Then you can right click the folder and click "Include in Project"

It is also possible to click each file or CTRL+Click multiple files, then right click and "Include in Project"

Does this answer your question?

Title: Re: include ESP SPIFFS data folder in project
Post by Natsuki-chan on Dec 17th, 2019 at 6:32pm
Not really.
The show all files option really shows all the files and makes it cluttered,
If I do the Include in Project it only shows the index.html file. Not the whole data folder.
The folder is structured as
data:
css/*
js/*
index.html
otherwebfiles.html

I fixed it for now by adding the data folder as a new website in the solution and that does work.

Title: Re: include ESP SPIFFS data folder in project
Post by Visual Micro on Dec 17th, 2019 at 7:06pm
Great. You can also shift+click to highliht and include multiple files but it makes more sense to have them in a web project.

fyi: All of this is standard VS, we use C++ projects for Arduino but you are still working with standard Visual Studio C++ projects.

VS Arduino » Powered by YaBB 2.6.12!
YaBB Forum Software © 2000-2024. All Rights Reserved.