Failed to install package in orchestrator after converting to windows version from windows legacy

RemoteException wrapping System.Exception: Failed to install package ‘Ft_54.1.0.3’ —> RemoteException wrapping System.Exception: NU1202: Package Ft_54 1.0.3 is not compatible with net5.0-windows7.0 (.NETCoreApp,Version=v5.0). Package Ft_54 1.0.3 supports: net6.0-windows7.0 (.NETCoreApp,Version=v6.0)
NU1202: Package Ft_54 1.0.3 is not compatible with net5.0-windows7.0 (.NETCoreApp,Version=v5.0) / win10-x64. Package Ft_54 1.0.3 supports: net6.0-windows7.0 (.NETCoreApp,Version=v6.0)

i updated the studio version to 2022.10.7. It prompted me to change from windows legacy to windows. The code run perfectly as an attended robot. But as an unattended robot i am getting the error mentioned above. I updated to lastest .net version but its not helping.

Has any one faced a similar issue? Please help. Thanks in advance

Hello @Shreya_Gurikar , Uncheck the Include prerelease and downgrade the package and upload the process in Orchestrator. Then try to run it.

@Shreya_Gurikar

If that is your custom package or third party package,
You need to check if the package is compatible with the .Net5, either you can find a alternative for that package
OR
If you are using custom package update your code to .Net5, If this is third party then you have to check with the publisher for updating their package to support in .Net5

Hope this may help you

Thanks,
Srini

I guess the issue is because only the dev environment was updated and not the production one also.