private bool InstallBundle(string bundlePath, string bundleFileName, IProject project) { string bundleFullFileName = Path.Combine(bundlePath, bundleFileName); var bundle = new Bundle(bundleFullFileName, null, project); ApplyTweaksForAutoBundleInstall(bundle); Exception installException = null; using (bundle) { bundle.HandleException += (item, ex) => { installException = ex; return false; }; _log.Info(string.Format("Installing bundle: " + bundleFullFileName)); bundle.Install(false); } if (installException != null) { //log exception here return false; } return true; }