How can we upgrade the run time .net framework from 4.6 to 4.8

We have created the new nuget package with .net framework 4.8, i am not able to add this new nuget package to UiPath project dependency.

Error: NU1202: Package ABCd.efgh.UiPath.Activities is not compatible with net461 (.NETFramework,Version=v4.6.1). Package ABCD.efgh.UiPath.Activities supports: net48 (.NETFramework,Version=v4.8)

Please do let me know the solution for the same.

Thanks in advance !

Hi @kavitab1

You would have to recreate your package in .net 4.6 because it’s not forward compatibile.

Could you try creating your project in Windows compatibility?


This compatibility mode is using .net6 or .5 I always forgets which. It may run according to this artice:
Version compatibility in .NET Framework - .NET Framework | Microsoft Learn
.Net is backward compatible. However in UiPath packages from 4.6 are not woring on Windows compatibility so you should try first.

I just saw this but the answer above is not fully accurate.

The framework for windows legacy is fixed at 4.6. Your addin is not supported due to this as the language version is too high.

The next compatibility option is Windows, this is using .net core and 64 bit compatibility.
The min is 5.0

So your code sadly falls outside of scope for either compatibility.
Considering the 4.6 projects are being phased out I’d recommend updating your package to one supported by the Windows Compatibility.