Skip to content

Commit

Permalink
Do not change the AutoGenerateBindingRedirects for exe output type
Browse files Browse the repository at this point in the history
  • Loading branch information
BlythMeister committed Jan 8, 2019
1 parent 7710749 commit 9d62958
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Paket.Core/Installation/BindingRedirects.fs
Original file line number Diff line number Diff line change
Expand Up @@ -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) =
Expand Down

0 comments on commit 9d62958

Please sign in to comment.