UiPathTeam.TwoStepAuthentication.Activities in Library

I have used this package many times in a library with great success. However, since Mail v 1.21.1 is so far out of date, I need to bring in Bouncy Castle Portable 1.9.0 which I have done. It even works quite well before I publish it. HOWEVER, when I publish the library with just a “Get Credentials” activity and the “Get Google Token” activity, I cannot use it in a subsequent process without reimporting the Bouncy Castle package into said subsequent process.

How do I create the library so that I don’t get this error in the process: {Could not load file or assembly ‘BouncyCastle.Crypto, Version=1.9.0.0, Culture=neutral, PublicKeyToken=null’. The system cannot find the file specified.}?

Studio 24.10.1 in C# with Windows format

@gregg.rubright

Did you try adding bouncy as a dependency in library explicitly?

Cheers

Hi @gregg.rubright

Check the below thread

Hope it helps!!

If you are adding the dependency, but it keeps getting removed, try checking the project settings, there is a flag to remove unused dependencies, its quite possible this is being falsely detected as ‘unused’ and then removed.

Its quite surprising this issue has still not been fixed in the package itself.

Yes, I had added Bouncy Castle explicitly but did not realize that it was getting removed at publish.

1 Like

Thanks to all for your time and help with my issue. It now works if I uncheck the “Remove unused dependencies” checkbox during the publish.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.