Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I read WPF publish version number in code behind

I want to read and display WPF application publish version number in splash windows, In project properties in publish tab there is publish version, how can I get this and display it in WPF windows.

Thanks in advance

like image 645
Abdulsalam Elsharif Avatar asked May 04 '14 18:05

Abdulsalam Elsharif


1 Answers

Access the assembly version using Assembly.GetExecutingAssembly() and display in UI

Assembly.GetExecutingAssembly().GetName().Version.ToString(); 
like image 198
Sajeetharan Avatar answered Sep 19 '22 12:09

Sajeetharan