From 9d62958c5701eb96a548ed5b24620220077183b6 Mon Sep 17 00:00:00 2001 From: Chris Blyth Date: Tue, 8 Jan 2019 10:57:44 +0000 Subject: [PATCH] Do not change the AutoGenerateBindingRedirects for exe output type --- src/Paket.Core/Installation/BindingRedirects.fs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Paket.Core/Installation/BindingRedirects.fs b/src/Paket.Core/Installation/BindingRedirects.fs index 240536015f..8d3fb9ca0b 100644 --- a/src/Paket.Core/Installation/BindingRedirects.fs +++ b/src/Paket.Core/Installation/BindingRedirects.fs @@ -158,9 +158,10 @@ let private applyBindingRedirects isFirstGroup cleanBindingRedirects (allKnownLi use f = File.Open(configFilePath, FileMode.Create) config.Save(f, SaveOptions.DisableFormatting) - match projectFile.GetAutoGenerateBindingRedirects() with - | Some x when x.ToLower() = "true" -> ignore() - | _ -> projectFile.SetOrCreateAutoGenerateBindingRedirects() + match projectFile.OutputType, projectFile.GetAutoGenerateBindingRedirects() with + | ProjectOutputType.Exe, _ -> ignore() + | _, Some x when x.ToLower() = "true" -> ignore() + | _, _ -> projectFile.SetOrCreateAutoGenerateBindingRedirects() let findAllReferencesFiles root = let findRefFile (p:ProjectFile) =