i'm trying to add new filter (folder) and files to my MFC C++ project in Visual Studio 2015. however after new folder is added, i'm unable to build the project. here is the details what i did.
My project structure is such
Project
├── Project.vcxproj
├── Util <--- this is new folder i want to add
│ ├── CSVFileHandler.cpp
│ └── CSVFileHandler.h
after adding new filter and files via Solution Explorer, i've also manually added the folder to the project located in File Explorer.
and then i added the relative path of the folder to the Project.vcxproj
file such
<ItemGroup>
<ClInclude Include="..\Util\CSVFileHandler.h" />
</ItemGroup>
<ItemGroup>
<ClCompile Include="..\Util\CSVFileHandler.cpp" />
</ItemGroup>
i've also add the relative path to the VC++\Additional Include Directories
. however, when building the project, i got the error such
Error C1083 Cannot open source file: '..\Util\CSVFileHandler.cpp': No such file or directory