msbuildtasks icon indicating copy to clipboard operation
msbuildtasks copied to clipboard

Problem with FtpUpload on Mono

Open ikolev21 opened this issue 10 years ago • 1 comments

The FtpUpload task is not working on Mono 4.0. When the existing directories are checked, it looks like a trailing / is required to make the server return the requested path, otherwise it returns the parent path. For example, to get the contents of /pub the task currently asks for ftp://server/pub, but the server returns the contents of the root directory, not of pub. To fix that the URL needs to be ftp://server/pub/

Since I direly needed this functionality on OS X, I've applied a temporary fix which is probably not the best one, I changed line 261 in FtpUpload.cs to

string parentDir = ParentPath(dirString) + '/';

ikolev21 avatar Jul 15 '15 11:07 ikolev21

Any comments on this one? Almost 2 years later I switched to the latest version of MSBuildTasks and when the builds failed it took me some time to remember about this issue...

ikolev21 avatar May 19 '17 16:05 ikolev21