Error BC32045: 'Collection' Has No Type Parameters So Cannot Have Type Arguments

How to resolve error BC32045: 'Collection' has no type parameters and so cannot have type arguments?

Issue Description:

The error "BC32045: 'Collection' has no type parameters and so cannot have type arguments" can occur when converting a project from Windows Legacy to Windows Compatibility.

Resolution:

Workaround #1:
Open Studio in a different machine and try to convert it. This can help in cases where some variable do not get referenced correctly for a Specified Studio instance.

Workaround #2:

  1. Go to "%userprofile%\AppData\Local\UiPath\Logs" and find the more recent Studio log
  2. Find the error "BC32045: 'Collection' has no type parameters and so cannot have type arguments."
  3. It will have a XAML and a variable name also
  4. Open Studio
  5. Go to the specified XAML
  6. Find the referenced variable
  7. Change its type for any other one and save the project
  8. Change it back
  9. Try converting the project again.