Hi,
I've installed the CSharp DropBox SDK in a Console App (in part of my CI toolchain, although created in Visual Studio 2013 it is sitting in a Xamarin solution that is built using Jenkins on Mac using .Net v4.0.30319).
I call the dropbox SDK immediately after successfully copying an iPhone .IPA to a temp directory so that I can upload it to dropbox, however part of the following does not work:
LogMessage(" : In UploadToDropBox(...)");
using (var mem = new MemoryStream(Encoding.UTF8.GetBytes(content)))
{
LogMessage(" : In using (var mem = new MemoryStream(Encoding.UTF8.GetBytes(content)))");
try
{
var updated = await dbx.Files.UploadAsync(
folder + "/" + file,
WriteMode.Overwrite.Instance,
body: mem);
}
catch(Exception ex)
{
LogMessage(string.Format(" : ERROR: {0}", ex.Message));
}
LogMessage(" : Processed var updated = await dbx.Files.UploadAsync(...)");
LogMessage(" : Exiting using (var mem = new MemoryStream(Encoding.UTF8.GetBytes(content)))");
}
The first two Log messages get written to my log file, however none of the other messages do, nor does the try-catch throw and cause that message to be written to the log file.
The value in folder is "test", and the value in file is "test.txt", and the value of content is "Hello DropBox".
But the results are not written to dropbox, despite that the folder exists.
Any ideas on how to resolve this CSharp SDK issue?
Anthony