Should AssemblyInfo.cs be placed in version control?

前端 未结 4 586
耶瑟儿~
耶瑟儿~ 2021-01-31 19:40

I have an automated build system using CruiseControl. I am using the SvnRevisionLabeller to to get the version string to use. With this string I can use nant to update AssemblyI

4条回答
  •  -上瘾入骨i
    2021-01-31 20:02

    We have a MSBuild script that generates all the needed AssemblyInfo.cs files prior to the build. This way I can also use the SVN revision number in the assembly versions. The AssemblyInfo.cs files are not checked into SVN (they're ignored so that they don't bother people) but generated prior to building (doesn't matter whether it an automated build script or from VS).

    I also supply a batch file to take care of the AssemblyInfo.cs files generation so that the developers don't need to bother with the details.

提交回复
热议问题