C# AssemblyFileVersion usage within a program

后端 未结 6 701
不知归路
不知归路 2020-12-08 14:06

I\'m working on a program, and I\'m trying to display the assembly FILE version

    public static string Version
    {
        get
        {
               


        
6条回答
  •  醉酒成梦
    2020-12-08 14:37

     protected void Application_Start(object sender, EventArgs e)
     {
         _log.InfoFormat("*************{0} **** Version: {1}************  ", Assembly.GetExecutingAssembly().GetName().Name, Assembly.GetExecutingAssembly().GetName().Version);
      }
    

    Output

    INFO Global - *************CustomerFile **** Version: 1.0.17.2510************

提交回复
热议问题