void ReportRestoreError (RestoreResult restoreResult) { foreach (LibraryRange libraryRange in restoreResult.GetAllUnresolved ()) { packageManagementEvents.OnPackageOperationMessageLogged ( NuGet.MessageLevel.Info, GettextCatalog.GetString ("Restore failed for '{0}'."), libraryRange.ToString ()); } throw new ApplicationException (GettextCatalog.GetString ("Restore failed.")); }