static void Main(string[] args) { var version = AssemblyInformationManager.GetAssemblyVersion(@"C:\Program Files\Miner Tracker\Miner Tracker Desktop.exe"); Console.WriteLine($"Version: {version}"); Console.WriteLine("--------End------------"); //Console.WriteLine(res[0].ToString()); Console.ReadKey(); }
private void Window_ContentRendered(object sender, EventArgs e) { var currentVersion = AssemblyInformationManager.GetAssemblyVersion(DESKTOP_FILE_NAME); CurrentVersionTextBlock.Text = currentVersion; if (currentVersion.Equals("Error")) { CurrentVersionTextBlock.Foreground = new SolidColorBrush(Colors.Red); } }