From d96b3c627e92fa3fe25ebca629eff581d322c819 Mon Sep 17 00:00:00 2001 From: Daniel Nauck Date: Sun, 18 Sep 2016 10:28:34 +0200 Subject: [PATCH] Remmi Demmi! - Framework restriction could not be determined during restore, so just ignore those error messages --- src/Paket.Core/RestoreProcess.fs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/Paket.Core/RestoreProcess.fs b/src/Paket.Core/RestoreProcess.fs index a7727e7450..439f4e41ec 100644 --- a/src/Paket.Core/RestoreProcess.fs +++ b/src/Paket.Core/RestoreProcess.fs @@ -139,10 +139,13 @@ let Restore(dependenciesFileName,force,group,referencesFileNames,ignoreChecks) = LocalFile.overrideLockFile localFile lockFile,localFile,true if not hasLocalFile && not ignoreChecks then - let hasAnyChanges,_,_,_ = DependencyChangeDetection.GetChanges(dependenciesFile,lockFile,false) + try + let hasAnyChanges,_,_,_ = DependencyChangeDetection.GetChanges(dependenciesFile,lockFile,false) - if hasAnyChanges then - traceWarnfn "paket.dependencies and paket.lock are out of sync in %s.%sPlease run 'paket install' or 'paket update' to recompute the paket.lock file." lockFileName.Directory.FullName Environment.NewLine + if hasAnyChanges then + traceWarnfn "paket.dependencies and paket.lock are out of sync in %s.%sPlease run 'paket install' or 'paket update' to recompute the paket.lock file." lockFileName.Directory.FullName Environment.NewLine + with + | _ -> () let groups = match group with