cake-build/cake

DotNetCorePublish OutputDirectory is not relative to WorkingDirectory

Open

#1,917 opened on Nov 14, 2017

View on GitHub
 (1 comment) (1 reaction) (0 assignees)C# (738 forks)batch import
Help wantedImprovementUp-for-grabs

Repository metrics

Stars
 (3,742 stars)
PR merge metrics
 (Avg merge 1d 1h) (25 merged PRs in 30d)

Description

DotNetCorePublishSettings has a property WorkingDirectory which I set to my project dir relative to repository root (where my cake.build file is). eg, ./source/MyProject. There is also a property OutputDirectory which I set to ./obj/Docker/publish.

Now I would assume, that output directory would be relative to working dir, but it's not - it is relative to cake.build file (aka repository root).

Contributor guide