Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

How to get current assembly version?

$
0
0

I'm trying to retrieve the version of the current application with the following code:

var version = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString();

However it always returns "0.0.0.0";

My project is set to inherit its version from the solution, which is set to "2.2.2". I have also set the version under Project Options/Build/Mac OS X Application.


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>