I am trying to compile and publish a library that has been working for several years, but all of a sudden fails with the following error:
The type ‘ILocalResource’ is defined in an assembly that is not referenced. You must add a reference to assembly ‘UiPath.Platform, Version=22.10.2.0, Culture=neutral, PublicKeyToken=null’
I have tried installing the package “UiPath.Platform”, but it is automatically uninstalled during compiling/publishing and then followed by the excact same error.
we would assume that some packages were updated before the publishing, right?
In general we would recommend to downgrade the UiPath.System.Activities to a Level that is not defining a dependency to UiPath.Platform Version=22.10.xxx
The current published version already contains the newest packages, so it seems to relate to the version of Studio that I am running, since it is the only thing that has changed between publishing.
I am hindered in rolling back UiPath.System.Activities and UiAutomation.Activities as many of the other dependencies are relying on the newest version
we were talking about downgrading (going to lower versions)
When
then
it was not defining the latest versions (as for years back 22.10X was not existing) when it was working the last time back
However you can detect a few resolving block be expanding the subdependencies and and checking the ligth blue references (light blue - indicating that the package was resolved alternately)
I know that you are asking me to downgrade, but it strikes me as strange that the current version of this library already have all the newest packages installed, and is working fine.
But when changing a simple log message and publishing a new version (without changing any packages/dependencies) then all of a sudden it fails and complains over missing references.
I am not able to downgrade the 2 packages in this library, as other dependencies are relying on the newest versions of System.Activities and UiAutomation.Activities, and this library (which is failing to publish) is relying on changes in those other dependencies.
I have now downgraded one of my developer-machines to UiPath Studio 22.4.1.
Compiling completes on this version, so it must be related to newest version of UiPath Studio.