using NaGet.Packages.Install;\r
using NaGet.Net;\r
using NaGet.SubCommands;\r
+using NaGet.Tasks;\r
\r
namespace NaGet.SubCommands\r
{\r
if (downloader == null) {\r
downloader = new Downloader();\r
downloader.DownloadEventRaised += delegate(object sender, DownloadEventArgs e) {\r
- if (e.Type == DownloadEventType.DOWNLOADING && e.TaskProgressPercent > 0) {\r
- RaiseTaskSetEvent(NaGetTaskSetEventType.PING, string.Empty, GetProgressPercent(NaGetTaskSetEventType.PING, e.TaskProgressPercent));\r
+ if (e.Type == DownloadEventType.DOWNLOADING && e.ProgressPercent > 0) {\r
+ RaiseTaskSetEvent(NaGetTaskSetEventType.PING, string.Empty, GetProgressPercent(NaGetTaskSetEventType.PING, e.ProgressPercent));\r
}\r
};\r
}\r
packageListsDownloaded = false;\r
try {\r
runDownloadPackageLists();\r
- } catch (NaGetTaskCanceledException) {\r
+ } catch (TaskCanceledException) {\r
RaiseTaskSetEvent(NaGetTaskSetEventType.WARNING, "リストのダウンロード処理がキャンセルされました");\r
pkgListMan.LoadPackageLists();\r
} catch (System.Net.WebException e) {\r