trunk/src/LythumOSL.Core/Licensing/ClickOnce.cs
/// <summary>
/// Returns version in machine readable format
/// </summary>
/// <returns>Returns version in machine readable format</returns>
Returns version in machine readable format
Returns version in machine readable format
public static string GetCurrentDeploymentVersion (Version defaultVersion)
		{
			Version ver = defaultVersion;
			if (ver == null)
			{
				ver = new Version ("1.0.0.0");
			}
			if (ApplicationDeployment.IsNetworkDeployed)
			{
				ver = ApplicationDeployment.CurrentDeployment.CurrentVersion;
			}
			string retVal = string.Empty;
			retVal += ver.Major.ToString ("X8");
			retVal += ver.Minor.ToString ("X8");
			retVal += ver.Build.ToString ("X8");
			retVal += ver.Revision.ToString ("X8");
			return retVal;
		}
public static string GetCurrentDeploymentVersion ( Version defaultVersion ) { Version ver = defaultVersion ; if ( ver == null ) { ver = new Version ( " " ) ; } if ( ApplicationDeployment . IsNetworkDeployed ) { ver = ApplicationDeployment . CurrentDeployment . CurrentVersion ; } string retVal = string . Empty ; retVal += ver . Major . ToString ( " " ) ; retVal += ver . Minor . ToString ( " " ) ; retVal += ver . Build . ToString ( " " ) ; retVal += ver . Revision . ToString ( " " ) ; return retVal ; }
Returns version in machine readable format
Returns version in machine readable format
// version info msdn reference: http://msdn.microsoft.com/en-us/library/bff8h2e1.aspx // major.minor.build.revision  // if it's empty // All ok clickonce deployiment app found // getting version
Returns version in machine readable format
Returns version in machine readable format
defaultVersion
Version