BobbyT432
BobbyT432

Reputation: 49

How does Visual Studio and Github work together?

For example: I'm making an SFML game and I want to store my project on GitHub so my team members can have access to it. Since its made in Visual Studio does that mean I need to include: Solution file and .vcxproj file?

Also, I've seen projects on GitHub have a "src" folder to organize their repository, since mine was created in Visual Studio does that mean I need to rename my folder that is named after my project to "src" and reupload it? Or are people doing some sort of organization trick I'm missing?

Since the game is SFML, all my binaries (.dll) files are just thrown into my main folder of the project, I'd much prefer to throw them all into their respective folder, but if someone downloads my project does that mean they need to pull it out of that folder and throw it into the project file? (That way visual studio can find them)

TLDR: I'm having trouble organizing my GitHub repo with a Visual Studio C++ Project.

Upvotes: 0

Views: 141

Answers (1)

jiraya_sama
jiraya_sama

Reputation: 66

Since its made in Visual Studio does that mean I need to include: Solution file and .vcxproj file?

Yes, you'll need to include solution and project files. You can see which files you can ignore at gitignore.io. Or, you can use cmake.

I'd much prefer to throw them all into their respective folder, but if someone downloads my project does that mean they need to pull it out of that folder and throw it into the project file?

Yes, each collaborator will have to download libraries and make it available to project on their end. And if you have lots of libraries and libraries depending on other libraries, updating them can be painful.

I use cmake and vcpkg. It isn't as straight forward as keeping libraries in project folder but requires reasonable effort for keeping project organized and clean. I'll recommend this approach.

Upvotes: 1

Related Questions