Xantium
Xantium

Reputation: 11603

How to distribute the source of a Visual Studio project

I want to distribute the Visual Studio project source I have made, but I am not sure how to do it.

I have a project with a file structure as follows:

SimpleProject --
                |- .vs --
                         |- SimpleProject --
                                            |- v15 --
                                                     |- .suo
                                                     |- Browse.VC.db
                |- SimpleProject --
                                   |- file.c
                                   |- SimpleProject.vcxproj
                                   |- SimpleProject.vcxproj.filters
                                   |- SimpleProject.vcxproj.user
                |- SimpleProject.sln

All I have written is the file.c. What at a minimum do I need to include with file.c (assuming I want others to be able to use the source/compile it, etc. in Visual Studio)?

Upvotes: 0

Views: 358

Answers (2)

user6669014
user6669014

Reputation:

It should be enough to share the following files, so others can build your project without any problems.

SimpleProject --
                |- SimpleProject --
                                   |- file.c
                                   |- SimpleProject.vcxproj
                                   |- SimpleProject.vcxproj.filters
                |- SimpleProject.sln

Before submitting/checking the code, I recommend you try if generated files are required to build and run the application. If not, you should not include them.

Upvotes: 1

user9907349
user9907349

Reputation:

If you are using GitHub or what they recomend remove. See the official GitHub's "Collection of useful .gitignore templates".

The .gitignore for Visual Studio can be found here:
https://github.com/github/gitignore/blob/master/VisualStudio.gitignore

Upvotes: 1

Related Questions