As the title suggests, I’m wondering if there is a clear and concise writeup or video on updating custom code that worked with legacy processes (.NET 4) to work with Windows processes (.NET 6). I could technically rewrite them, but I’d prefer if there was a good way to upgrade from one to the other if this is a mandatory step influencing us as this will likely be an issue going forward with later upgrades as well.
Yes, migrating custom code from legacy (.NET Framework) to Windows (.NET 6/7+) in UiPath is a common need now, as UiPath is aligning with modern .NET standards.
Here’s a clear and concise breakdown for you:
Migration Overview (Legacy to Windows - .NET 6)
Project Compatibility
Legacy projects use .NET Framework (4.6.1)
Windows projects use .NET 6+ (cross-platform, modern runtime)
Direct upgrade is not possible – you need to create a new Windows-compatible project and migrate code manually.
Steps to Migrate Custom Code:
1. Create a new Windows-compatible UiPath project
Open UiPath Studio
Choose “Process”
Under Compatibility, select “Windows” (not “Legacy”)
2. Update Dependencies
Use the Windows version of dependencies (many legacy packages are not compatible)
Remove or update any custom libraries that are still on .NET Framework
Are you refering to a specific activity within Studio when writing “custom code” (perhaps Invoke Code) or do you simply mean robots developed as legacy processes?
I have been through migrating a lot of processes, and the task can definently seem overwhelming, but there are ways to go about it.
Create a separate branch in your VCS for the migration
Migrate the process using the wizard
Use Validate Project to check for issues
If legacy dependencies are no longer valid try and find alternatives
Also there are several well written guides within the Forum, that you could use to troubleshoot.
I’m not having issues migrating normal processes or libraries from Legacy to Windows. It has to do with the ChatGPT response above. I’m talking about custom activities created in Visual Studio under the .NET 4 framework. I want to know if there is a good easy way to upgrade that project from a .NET 4 framework to a .NET 6 framework.
Unfortunately I am not the best candidate to answer that.
I have made a few rules for Workflow Analyzer in Visual Studio (C#), but this was done initially on a higher Framework.
I dont have any experience with entire libraries.
I hope you can make some sense of the ChatGPT reply I can see that several links are dead.