Print Version Number in ASP.NET MVC 4 app

前端 未结 7 1975
灰色年华
灰色年华 2020-12-23 19:15

I have an ASP.NET MVC 4 application. Currently, I am setting the version of the application in the project properties under the \"Application\" tab. From here, I click the \

相关标签:
7条回答
  • 2020-12-23 19:30

    Working solution for correct date of modification after deploy:

    @File.GetLastWriteTime(@System.Reflection.Assembly.GetExecutingAssembly().Location)
    

    Can be used in MVC5 too.

    0 讨论(0)
提交回复
热议问题