I wanted to try one of the installed esp-idf examples (…/.platformio\packages\framework-espidf\examples).
Naive as I was, I created an empty esp-idf project and copied the example project to the respective folders in the empty pio project incl. my template platformio.ini - but of cause this didn’t work.
I have now used too much time trying to overcome the ‘Error: Couldn’t find the main target of the project!’. What is the right way to use/tryout the examples from: “…/.platformio\packages\framework-espidf\examples” in pio/VSCODE?
# The following five lines of boilerplate have to be in your project's
# CMakeLists in this exact order for cmake to work correctly
# (Not part of the boilerplate)
# This example uses an extra component for common functions such as Wi-Fi and Ethernet connection.
So, one need to modify the ./CMakeLists.txt in order to get the examples to work with platformio or is it a reported issue (sorry, but I didn’t read/understand the complete thread that you referenced)?