Dynamically display current year in assembly info

前端 未结 5 793
天命终不由人
天命终不由人 2021-02-13 07:05

How to set current year in AssemblyInfo file?

I used

Instead of this:

 
         


        
5条回答
  •  醉梦人生
    2021-02-13 07:49

    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.

提交回复
热议问题