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# (3,742 stars) (738 forks)batch import
Help wantedImprovementUp-for-grabs

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