Windows - Legacy Refactor

Hello guys, I’m going to need to refactor 4 whole processes to Windows version from the Windows - Legacy version. Any tips are very welcome since it’s my the first time doing this.

@rodrigo.simao ,

Bookmark this thread for all known issues and solutions.

All the best :+1:

1 Like

find a landing page for this topic here:

2 Likes

If you are using the last versio o Studio and robot, go ahead, the migration tool is working a lot better now, but even then, here is some tips:

Dont overwrite your Legacy project
Create a new one with _windows in the name or something, If anything goes wrong, your old project will save your skin.

Dont trust the validade project button
You know that button in the Studio upper ribbon where you click and it will check your whole project for errors? Dont trust it. If it is saying that your project dont has any errors, then you HAVE TO try to deploy it first. When deploying, your project will compile and thats where the real errors will happens.

“For Each” activity is your enemy
Most errors I got when doing the refactor was on that activity, always take a second look on them. My suggestion is, copy the inner activities of the loop, create a new For Each and then paste them there.

Assign activities are trolling you
My most commom issue after For-Each was the assign activity. It will give you an error, but if you create a new one and fill it with the exact same values, no errors will occurs.

Check you project dependencies before migratring
If Im not mistaken, the migration tool already do that for you. BUT, it only checks if the dependecy has a Windows version, not if the dependency has the same activites or works the same as the legacy version. Keep that in mind.

Some Errors can be fized by just letting nuget download all your dependencies again
Sometimes cleaning the nuget folder inside app data is your best bet to fix an error.

My last tip:
Please, consider not using the migration tool, but creating a new project and copying everything by hand yourself. A lot of hours was lost in my part trusting the tool, to them get a error while compiling that fix itself with a new project made from zero.

2 Likes

Thank you very much for your time! :slight_smile:

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.