Migrating from .NET 6 to .NET 8

Hi everyone,

I have some automations developed and running on dotnet 6.0 using UiPath Studio 24.10.13. However, my OS is finding vulnerabilities related to dotnet 6.0 being EOL. So I plan to move to dotnet 8.0, but I’m not finding how to migrate from dotnet versions. Is it possible at all?

Thank you for your attention,
Natan Figueira

@natanfigueira

are you talking about the custom activities you created?

if not then project doesnt have specific .net requirement…net 6 or higher can be used for studio based projects and robots..but newer studio automatically downloads the needed version

Hi, @natanfigueira

No direct switch, but you’re good on Studio 24.10.13 it builds new projects on .NET 8 already.

Update Robot to 2024.10+ (native .NET 8).

Open .xaml in Studio, test publish. Vulns? Rebuild custom libs: swap net6.0 to net8.0 in .csproj, repub.

Re-scan. Fixed. Share vuln deets if not.

Not custom functions.

Just that I’ve developed the project on .net6, so I assume all my packages are compatible with .net6. I also assume that in order to change the .net version on my OS I need to upgrade the automation packages to avoid incompatibility problems.

Am I getting something wrong?

What are .csproj and repub?

The automation is good and running. The problem I have is that my infra team needs to get rid of dotnet 6 because it’s EOL and raises some warning on our VM’s. And I assume I’d need to update all my packages before changing the .net version to avoid incompatibilities.

So you’re saying I should just upgrade to latest studio and it will replace .net 6 by .net 8 and my automations will keep running smoothly with that change?

@natanfigueira

csproj = C# project config file (open in Notepad, swap net6.0 to net8.0).

repub = republish package (Studio: right-click > Publish).

No, Studio upgrade won’t auto-fix existing projects—they stay .NET 6 compatible until:Update Robot to 2024.10+ (.NET 8 runtime).

Update all packages first (Manage Packages > Update All).

Reopen/publish projects in latest Studio.

Infra warnings = leftover .NET 6 files on VMs from old packages/runtimes. This clears them, bots run fine.

Test 1 process first. Share package list if stuck.

@natanfigueira

ideally you don’t need to do anything in the project

version is handle automatically

cheers

Sorry, I’m not getting it.
I don’t have csproj, I don’t use C#
I have a project.json, and it shows nothing related to the framework version. I can’t find an option to ‘convert’ anywhere

My question is: How do I get my .NET6 bot to run on .NET8?
As I said, my studio and robot version are already 24.10.13 so it is 2024.10+. And I’m pretty sure that if I just republish the bot, it’ll keep running on .NET6

So how do I make my automation to stop using .NET 6 when running? I’ve seen that new projects will be .NET8 by default. But what about old projects in .NET6, is there a way to convert them? I can’t find anything related to the .NET version on Project.Json or Project Settings

Hi @natanfigueira ,

As @Anil_G said you don’t have to do anything

There’s no way to convert an existing UiPath project from .NET 6 to .NET 8. The .NET version is fixed when the project is created and isn’t exposed in project.json or Project Settings. Republishing won’t change it. The only option is to create a new .NET 8 project and migrate your workflows into it.

1 Like

Got it!

Thank you so much

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