Getting the subversion repository number into code

前端 未结 6 384
醉梦人生
醉梦人生 2020-11-30 01:24

I\'d like to implement a way of recording the version of a project within code, so that it can be used when testing and to help track bugs. It seems the best version number

6条回答
  •  天命终不由人
    2020-11-30 01:57

    You can also use SubWCRev which is part of TortoiseSVN.

    SubWCRev is Windows console program which can be used to read the status of a Subversion working copy and optionally perform keyword substitution in a template file. This is often used as part of the build process as a means of incorporating working copy information into the object you are building. Typically it might be used to include the revision number in an “About” box.

    http://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-subwcrev.html

提交回复
热议问题