Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What project files shouldn't be checked into SVN

Tags:

svn

At the moment I check in all my files (including dll's, VS solution files, images, etc). I often need to checkout these files to a staging server or to a another developer and so having these files there means the project is setup there all ready to go.

Whats the best practice here?

EDIT: If I don't add the generated files like the dll files how do I ensure they are present when updating the staging server?

like image 495
William Hurst Avatar asked Oct 09 '08 06:10

William Hurst


People also ask

How do I check out a source in SVN?

Click Check Out. In the dialog that opens, specify the destination directory where the local copy of the repository files will be created, and click OK. If you are checking out sources for an existing project, the destination folder should be below the project content root. In the SVN Checkout Options dialog, specify the following settings:

What files should be included in a SVN file?

The .sln file defines your solution together with the .proj files (one for each project), so keep them in your svn! You can skip the .suo file (personal settings - binary anyway) as well as the bin or obj folders. Also the .cache files can be left. Show activity on this post.

Do I need csproj files for SVN?

You definitely need csproj files... You might want to try AnkhSVN or VisualSVN, those VS addins add only the required files to SVN. Or you could remove files from your directory structure until it does not load anymore. I suggest experimenting this way because it is a great way to learn how a solution is structures by VS.

How do I check out files from a Subversion repository?

In the Check Out From Subversion dialog box, expand the desired repository location and select the element you want to check out. Click the Checkout button. In the dialog that opens, specify the destination directory where the local copy of the repository files will be created, and click OK.


2 Answers

I usually only checkin files that are not generated - so source, config files, project files, but not object files - dll's exe's jar's etc.

like image 111
Chris Kimpton Avatar answered Sep 25 '22 01:09

Chris Kimpton


In terms of project files, don't check in the ".csproj.user" files, or ".suo" files.

Also, nothing in the "bin" and "obj" folders.

like image 20
David Wengier Avatar answered Sep 26 '22 01:09

David Wengier