RoboSharp icon indicating copy to clipboard operation
RoboSharp copied to clipboard

XML Writer for RoboCommand and RoboQueue

Open RFBomb opened this issue 3 years ago • 1 comments

@PCAssistSoftware - Regarding #153 - Since I've worked with the xml serializer in the past, I wrote up this very basic class to serialize RoboCommand and RoboQueue.

Theres a lot more work that needs to be done before this would get released, but I wanted to provide you a starting point to work on it. ( I can review it and chime in, but would rather not dedicate myself to this, as I have other pressing projects, and you are the one primarily requesting it.)

Currently, I had to tag the CopyOptions.FileFilters with [XMLIgnore()] to get it to serialize robocomand. I have not written anything for loading it yet. I also simply mocked in the xml writer call into the current 'Save Job' method within robocommand, which is then wrapped in #IF DEBUG to avoid accidentally releasing it.

In Visual studio the 'Task List' can be seen on things to do (Duplicates show up due to multiple framework targets, so I just filtered down to Net45)

image

Here is the file that RoboCommand serializer spit out. It should deserialize fine, but I haven't tested it. Test.zip

Also, methods for RoboQueue will need to be written and tested.

RFBomb avatar Feb 23 '22 12:02 RFBomb

Excellent - thank you for this, when I have a bit more time myself I will spend a while getting my head around it and see what I can do :) - much appreciated

PCAssistSoftware avatar Feb 23 '22 13:02 PCAssistSoftware

Superceded by #183

RFBomb avatar Oct 18 '23 15:10 RFBomb