Develop a good habit of uploading project files

Source: Internet
Author: User

The students in the project team often put some. the obj file and the debug directory are uploaded to svn. This is a bad habit. I have said many times that he can't change it. I 'd like to write a document to make it clear and it will be easier to find it later.

Svn is a version control tool mainly used to manage various versions of code. It helps software development to develop a good version library management habit. To reduce the size of the entire svn directory and prevent excessive conflicts, all automatically generated code should not be uploaded to svn, that is, do not use the svn add command or menu to add any automatically generated directories and files. The automatically generated directories or files are listed below: 1. ncb file, suo file, vcproj. XP-201108262034.XXX.user FileThere are 5 types of project-related files in vs2008, ". sln "". suo "". ncb "". vcproj "". vcproj. XP-201108262034.XXX.user "Please note that only. sln and. vcproj needs to be uploaded to svn. Other files are automatically generated during system compilation. Do not upload them to svn. Otherwise, conflicts may occur frequently when each file is generated differently. 2. debug directory and release directoryBoth the debug directory and the release directory can be automatically generated during compilation. All files in the directory are as follows. obj is also generated on a temporary basis. Therefore, do not upload any files under the debug directory and the release directory to svn. 3. exe file, lib file, dll fileThese three files are self-generated exe, lib, and dll files of the Project. Since the project is automatically generated after each compilation, do not upload the files. 4. GeneratedFiles directoryIf it is a QT project, a GeneratedFiles directory will appear after compilation. Please note that this directory is also automatically generated and never uploaded to svn. Of course, all the items listed above are incomplete. For example, some projects may use databases and configuration files. In short, the basic principle is that all files that are automatically generated and updated will be automatically generated, do not upload files to svn. In addition, if a large video file is used in the project, such as an avi file, it is recommended that you do not upload files, but use other methods such as ftp or sharing) for the Member to download to the local directory.   Next, I will add some files that need to be uploaded to svn for management.: 1. all self-written. h. cpp. c files and third-party libraries. h file 2. project documents. sln files and. vcproj file, QT project. qrc file 3. project Resource file. The MFC project is the res directory and. rc file. The QT project is the Resources directory and. ui file and. ico icon file ,. img and other image files. 4. Third-party library files. lib or. dll. The lib and dll generated by the project do not need to be uploaded. The third-party libraries used are different. If the program link requires a third-party lib or a third-party dll under the current running directory, You need to upload it. 5. Others

This article from the "three shadows" blog, please be sure to keep this source http://ticktick.blog.51cto.com/823160/751582

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.