Using the Web Application version number from an assembly (ASP.NET/C#)

后端 未结 12 981
我寻月下人不归
我寻月下人不归 2020-12-07 18:39

How do I obtain the version number of the calling web application in a referenced assembly?

I\'ve tried using System.Reflection.Assembly.GetCallingAssembly().GetName

12条回答
  •  既然无缘
    2020-12-07 19:21

    Version version = new Version(Application.ProductVersion);
    string message = version.ToString();
    

提交回复
热议问题