Dynamically display current year in assembly info

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

How to set current year in AssemblyInfo file?

I used

Instead of this:

 
         


        
5条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-02-13 08:03

    Typically, for that kind of substitution, you use a pre-build step that invokes a script that automatically generates your assemblyInfo.cs file.

    You can have a look at this thread : How can you find and replace text in a file using the Windows command-line environment?

提交回复
热议问题