Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic include ESP SPIFFS data folder in project (Read 2721 times)
Natsuki-chan
Junior Member
**
Offline


Posts: 25
Joined: Jan 18th, 2017
include ESP SPIFFS data folder in project
Dec 17th, 2019 at 5:00pm
Print Post  
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?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12166
Location: United Kingdom
Joined: Apr 10th, 2010
Re: include ESP SPIFFS data folder in project
Reply #1 - Dec 17th, 2019 at 5:17pm
Print Post  
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?
« Last Edit: Dec 17th, 2019 at 5:18pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Natsuki-chan
Junior Member
**
Offline


Posts: 25
Joined: Jan 18th, 2017
Re: include ESP SPIFFS data folder in project
Reply #2 - Dec 17th, 2019 at 6:32pm
Print Post  
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.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12166
Location: United Kingdom
Joined: Apr 10th, 2010
Re: include ESP SPIFFS data folder in project
Reply #3 - Dec 17th, 2019 at 7:06pm
Print Post  
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.
« Last Edit: Dec 17th, 2019 at 7:07pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint