Dynamically display current year in assembly info

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

How to set current year in AssemblyInfo file?

I used

Instead of this:

 
         


        
5条回答
  •  谎友^
    谎友^ (楼主)
    2021-02-13 08:06

    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?

提交回复
热议问题