static public void Build(E_BUILDTYPE doType, string VersionNum) { if (string.IsNullOrEmpty(VersionNum)) { MessageBox.Show("请输入版本号!"); return; } m_VersiongNum = VersionNum; ConfigurationMgr.AddConfigurationElement(Common.CustomDefine.configKey_VersionNum, m_VersiongNum); m_buildType = doType; switch (VersionManager.buildType) { case (VersionManager.E_BUILDTYPE.E_BUILDTYPE_STANDALONE): { m_strCurGetPath = Common.PathMgr.strStandAloneGetPath; m_strCurOutPath = Common.PathMgr.strStandAloneOutPath; } break; case (VersionManager.E_BUILDTYPE.E_BUILDTYPE_IOS): { m_strCurGetPath = Common.PathMgr.strIOSGetPath; m_strCurOutPath = Common.PathMgr.strIOSOutPath; } break; case (VersionManager.E_BUILDTYPE.E_BUILDTYPE_ANDROID): { m_strCurGetPath = Common.PathMgr.strAndroidGetPath; m_strCurOutPath = Common.PathMgr.strAndroidOutPath; } break; } ResourceOperation.VersionBuilder.BuildVersion(); Application.Exit(); }
private void FormMain_Load(object sender, EventArgs e) { SetPathLabel(); textVersionNum.Text = ConfigurationMgr.ReadConfigurationElement(Common.CustomDefine.configKey_VersionNum); }