public string getCurVerStr() { string curVerStr = ""; Assembly asm = Assembly.GetExecutingAssembly(); FileVersionInfo fvi = FileVersionInfo.GetVersionInfo(asm.Location); curVerStr = String.Format("{0}.{1}", fvi.ProductMajorPart, fvi.ProductMinorPart); return curVerStr; }