Skip to content

Commit 22ce9a3

Browse files
committed
Do not append TargetFramework subdirectory to OutputPath when AppendTargetFrameworkToOutputPath property is false
This commit is meant resolve issue #4157 The change has not been tested
1 parent 80d1c2c commit 22ce9a3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Paket.Core/PaketConfigFiles/ProjectFile.fs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1656,7 +1656,10 @@ module ProjectFile =
16561656
if String.IsNullOrWhiteSpace buildPlatform && attempted <> [] then
16571657
let tested = String.Join(", ", attempted)
16581658
traceWarnfn "No platform specified; found output path node for the %s platform after failing to find one for the following: %s" x tested
1659-
Path.Combine(s.TrimEnd [|'\\'|] , targetFramework) |> normalizePath
1659+
if (appendTargetFrameworkToOutputPath project) then
1660+
Path.Combine(s.TrimEnd [|'\\'|] , targetFramework) |> normalizePath
1661+
else
1662+
s.TrimEnd [|'\\'|] |> normalizePath
16601663

16611664
tryNextPlat platforms []
16621665

0 commit comments

Comments
 (0)