I get an error when I migrate a project from Windows Legacy to Windows

Hello there ,
I have an issue. I get an error when I want migrate a project from Windows Legacy to Windows and publish :
[Error] Unexpected error has occurred during the library compilation process:
The assembly compilation returned the following errors:

  • ‘Enumerable’ is not declared. It may be inaccessible due to its protection level.
  • ‘Enumerable’ is not declared. It may be inaccessible due to its protection level.
    Annotation 2024-01-23 102255

Hi @ahmetozsoy

Welcome to Community!!

Check on the below

Cheers!!

Hi @ahmetozsoy

May be it occurs due to namespace. Import the System.Linq from the Imports panel.

Hope it helps!!

Try to upgrade your Studio to 23.4.6 or 23.10.3 and then reopen the project and retry.

The installers can be found here:

https://download.uipath.com/versions/23.10.3/UiPathStudio.msi
https://download.uipath.com/versions/23.4.6/UiPathStudio.msi

It seems already imported. Thanks for the advice

1 Like

You can check on XAML base (take a Backup before, ensured that the file is closed)

  • open the XAML within a texteditor (e.g. notepad++)
  • check if the assembly reference is set to
    grafik
    Add it when it is missing:
<AssemblyReference>System.Linq</AssemblyReference>
  • Check the import of the namespace
    grafik

Feel free to share the XAML / Project with us