Compile error after converting bot from Windows-Legacy to Windows

I converted a process from Windows Legacy configuration to Windows configuration and getting the below compile issue while trying to run the bot in debug mode -
Unexpected error has occurred during the library compilation process:
The assembly compilation returned the following errors:

  • ‘Tuple’: static types cannot be used as type arguments
  • Assuming assembly reference ‘System.Data.Common, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ used by ‘UiPath.UiAutomation.Activities’ matches identity ‘System.Data.Common, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ of ‘System.Data.Common’, you may need to supply runtime policy
  • Assuming assembly reference ‘System.Data.Common, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ used by ‘UiPath.UiAutomation.Activities’ matches identity ‘System.Data.Common, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ of ‘System.Data.Common’, you may need to supply runtime policy
  • Assuming assembly reference ‘System.Data.Common, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ used by ‘UiPath.UiAutomation.Activities’ matches identity ‘System.Data.Common, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ of ‘System.Data.Common’, you may need to supply runtime policy

Does anyone know how to resolve this?

@tanimukherjee

Welcome to the community

Try this way,
Import the System.Data.Common in the Import menu, refer the below image

Regards,
Gowtham K

Should this be done to every xaml? or just the main xaml?

@tanimukherjee every Xaml you need to do

This did not resolve the issue. I am still getting the below compile error -
Unexpected error has occurred during the library compilation process:
The assembly compilation returned the following errors:

  • ‘Tuple’: static types cannot be used as type arguments