Error while publishing the project(Unexpected error has occurred during the library compilation process:)

While i try to publish the project its throwing me

Unexpected error has occurred during the library compilation process:
The assembly compilation returned the following errors:
*\content.local.codedworkflows\CodedWorkflow.cs(32,19): error CS0246: The type or namespace name ‘ConnectionsManager’ could not be found (are you missing a using directive or an assembly reference?)

  • \content.local.codedworkflows\CodedWorkflow.cs(21,22): error CS0246: The type or namespace name ‘ConnectionsManager’ could not be found (are you missing a using directive or an assembly reference?)
    *\content.local.codedworkflows\CodedWorkflow.cs(27,48): error CS0246: The type or namespace name ‘ConnectionsManager’ could not be found (are you missing a using directive or an assembly reference?)
  • content.local.codedworkflows\CodedWorkflow.cs(27,78): error CS0246: The type or namespace name ‘ConnectionsManager’ could not be found (are you missing a using directive or an assembly reference?)

error. Is it related to any version problem of studio ?

Compilation failed. Remove unused imports and try again.

Hi!

Coded Worflows and the Workflow analyser, at least in v23, can be quite buggy.
You could try to close Studio, delete your .local folder in the project folder and the open the project again.

Following are couple of options you could try in this case as issue is mainly related to dependency packages. Kind of a glitch

  1. Check if you have installed the required UiPath dependencies (e.g., UiPath.System.Activities, UiPath.UIAutomation.Activities. If yes - Try the option of upgrade / reinstall

  2. Close UiPath Studio.

  • Delete the .local folder inside your project.
  • Restart UiPath Studio and rebuild the project.
  • Try publishing again.
  1. Manually add the necessary DLL references in Dependencies

Tried those steps, but it didn’t work.

My Studio and Assistant were updated to 2024.10.9 today and after that I cannot publish anymore. Tried booting, restarting Studio, removing unused imports, removing .local folder. No luck, same error with every project.

Anyone found solution for this?

Try deleting the project file and open Main file again to see what the error you are getting

Tried that, still the same error:

...\.local\.codedworkflows\CodedWorkflow.cs(40,19): error CS0246: The type or namespace name 'ConnectionsManager' could not be found (are you missing a using directive or an assembly reference?)

I created a new empty project and I can publish that, so it’s not totally broken.