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?
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:
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.
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.
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.
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.
In terms of project files, don't check in the ".csproj.user" files, or ".suo" files.
Also, nothing in the "bin" and "obj" folders.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With