using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Security.Policy;
namespace MyTest { public partial class Form1 : Form { public Form1() { InitializeComponent(); try { var appSecurInf = new ApplicationSecurityInfo(AppDomain.CurrentDomain.ActivationContext); var appId = appSecurInf.ApplicationId; MessageBox.Show(appId.Version.ToString()); } catch (Exception ex) { MessageBox.Show(ex.ToString()); } } } }