Skip to content

Commit e9bb0b5

Browse files
authored
Merge pull request #4159 from Koala06/fix_4157
Do not append TargetFramework subdirectory to OutputPath
2 parents 80d1c2c + 22ce9a3 commit e9bb0b5

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)