Skip to content

Visual Studio 2022 add classes. #2427

Answered by rh101
Azaratur asked this question in Q&A
Mar 4, 2025 · 2 comments · 9 replies
Discussion options

You must be logged in to vote

When I do try to add some c++ file from visual studio it always add it on the build folder instead of the source one.

Right click the folder named "Source" in VS, and then add the files to that. They should appear in the correct folder on disk, and they should not be in the build folder.

Adding folders via Visual Studio isn't the same, because they're not actually folders on disk, they are just "filters", being virtual folders in the project tree. The only way to add folders on disk is to create them yourself manually (via Windows Explorer, command prompt etc.), then as @halx99 pointed out, re-run axmol -c -f to update the Visual Studio project so it picks up those folders and shows the…

Replies: 2 comments 9 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
9 replies
@rh101
Comment options

rh101 Mar 4, 2025
Collaborator

@Azaratur
Comment options

@rh101
Comment options

rh101 Mar 4, 2025
Collaborator

@rh101
Comment options

rh101 Mar 4, 2025
Collaborator

@Azaratur
Comment options

Answer selected by aismann
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants