Get Assembly version on windows phone 7

前端 未结 4 644
北恋
北恋 2021-02-13 23:56

In my c# applications I usually get the version (to show the customer) using the following code:

System.Reflection.Assembly.GetExecutingAssembly().GetName().Vers         


        
4条回答
  •  感动是毒
    2021-02-14 00:51

    Does parsing it out of

    Assembly.GetExecutingAssembly().FullName

    work for you?

    example output: SomeApp, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null

    edit: don't need to go through ManifestModule

提交回复
热议问题