I updated to Studio 24.10.1 recently and have since been unable to package automations. Anytime I add a coded workflow to a project, publishing will fail with the following messages:
Unexpected error has occurred during the library compilation process:
The assembly compilation returned the following errors:
* \\Mac\Home\Documents\UiPath\BlankProcess1\.local\.codedworkflows\CodedWorkflow.cs(37,19): error CS0246: The type or namespace name 'ConnectionsManager' could not be found (are you missing a using directive or an assembly reference?)
* \\Mac\Home\Documents\UiPath\BlankProcess1\.local\.codedworkflows\CodedWorkflow.cs(26,22): error CS0246: The type or namespace name 'ConnectionsManager' could not be found (are you missing a using directive or an assembly reference?)
* \\Mac\Home\Documents\UiPath\BlankProcess1\.local\.codedworkflows\CodedWorkflow.cs(32,48): error CS0246: The type or namespace name 'ConnectionsManager' could not be found (are you missing a using directive or an assembly reference?)
* \\Mac\Home\Documents\UiPath\BlankProcess1\.local\.codedworkflows\CodedWorkflow.cs(32,78): error CS0246: The type or namespace name 'ConnectionsManager' could not be found (are you missing a using directive or an assembly reference?)
* \\Mac\Home\Documents\UiPath\BlankProcess1\.local\install\Workflow+WorkflowActivity.cs(47,17): warning SYSLIB0046: 'ControlledExecution.Run(Action, CancellationToken)' is obsolete: 'ControlledExecution.Run method may corrupt the process and should not be used in production code.'
Theses particular messages come from a new, blank project in which I created a coded workflow file and did nothing else. Publishing a new project without creating the coded workflow is successful.
I have already attempted uninstalling and reinstalling Studio, as well as clearing my nuget package cache as a precaution, with no luck. The processes I’m trying to publish also run without issue in Studio.
I have no idea why the ConnectionsManager error is being thrown, as the file for it exists in the project and in the expected namespace. I can even use “Go to definition” to access the CodedWorkflows file, then the ConnectionsManager file from there.
Should I simply go into the files generated by Studio and disable the warnings for the relevant lines of code? I’ve avoided altering such files until now, since I’ve not found anyone else mentioning this problem. At the same time, I’m unsure how it could be the result of something I’m doing, considering this happens on new projects.