/// <summary> /// Downloads the latest version identifier file /// </summary> /// <returns>the temp path of the downloaded version file to be read</returns> private string downloadFile(string tempPath, downloadFileType fileType) { string remoteUri = StringEnum.GetStringValue(fileType); string tmpLocation = tempPath + "\\" + Path.GetFileName(remoteUri); WebClient webClient = new WebClient(); webClient.DownloadFile(remoteUri, tmpLocation); return(tmpLocation); }
/// <summary> /// Downloads the latest version identifier file /// </summary> /// <returns>the temp path of the downloaded version file to be read</returns> private string downloadFile(string tempPath, downloadFileType fileType) { string remoteUri = StringEnum.GetStringValue(fileType); string tmpLocation = tempPath + "\\" + Path.GetFileName(remoteUri); WebClient webClient = new WebClient(); webClient.DownloadFile(remoteUri, tmpLocation); return tmpLocation; }