mirror of
https://github.com/vczh-libraries/Release.git
synced 2026-03-24 00:13:48 +08:00
1.2 KiB
1.2 KiB
Solution and Project File Structure
- A solution file (
*.slnor*.slnx) contains multiple project files. - Typical C++ project files are XML files in
*.vcxprojor*.vcxitemsnaming. - The XML file
*.vcxitems.filtersor*.vcxproj.filtersorganizes source files in solution explorer folders (virtual folders) that could be different from physical file system, which creates a human friendly view. - The XML file
*.vcxproj.usercontains some temporary local configuration for a project. This file is not tracked by git, but it contains arguments for running the project. - When adding a source file to a specific solution explorer folder:
- It must be also added to one or multiple project files.
- Find the
*.vcxitems.filtersor*.vcxproj.filtersfile with the same name. - Each file must be attached to a solution explorer folder, described in this XPath:
/Project/ItemGroup/ClCompile@Include="PhysicalFile"/Filter. - Inside the
Filtertag there is the solution explorer folder. - Edit that
*.vcxitems.filtersor*.vcxproj.filtersfile to include the source file.
Renaming and Removing Source Files
- All affected
*.vcxitems,*.vcxproj,*.vcxitems.filtersand*.vcxproj.filtersmust be updated.