Dynamically display current year in assembly info

前端 未结 5 2091
轻奢々
轻奢々 2021-02-13 07:32

How to set current year in AssemblyInfo file?

I used

Instead of this:

 
         


        
5条回答
  •  走了就别回头了
    2021-02-13 07:45

    Probably the best way is to integrate this into your build process using tools like NAnt or MSBuild.

    Here is an article that explains how to change your AssemblyInfo using MSBuild: Updating Assemblies with A Version Number.

提交回复
热议问题