Library Compilation Error

I am encountering the following error during library compilation in UiPath Studio:

Unexpected error has occurred during the library compilation process:
The assembly compilation returned the following errors:

  • (1,1078715): error CS0664: Literal of type double cannot be implicitly converted to type ‘float’; use an ‘F’ suffix to create a literal of this type

What I Have Tried:

  • Checked all Invoke Code activities but could not find any.
  • Reviewed the main workflow and verified variable types (mostly double, string, and int). There is no variable type float.

UiPath Details:

  • UiPath Studio version: 2025.0.157
  • License Type: Community
  • Project type: Library
  • Target Framework: Windows

I would appreciate any insights or guidance on resolving this issue. Has anyone encountered something similar during compilation?
@UiPath MVPs


Hello @nrlizt

I found this post that might be of help to you.

Perhaps check your Invoke Code(s) to see if there are any Double that are expected to be type Float.
Or experiment by typing an f in the end of them to see which one might be causing the problem.

Regards
Soren