Custom NuGet Package Install Error

Hi All,

Good day!!

I created a custom nuget packge in .net core version 6 with some dependency on Sysmtem.Security.Cryptography.Xml using visual studio.

In VS I selected the project output to create the nuget package which is generating the required nuget package.

But when I am trying to install it in the UiPath Studio I am getting following error.

Cannot load assembly: C:\Users\sathish.nuget\packages\signenvelope_windows\1.0.0\lib/net6.0/SignEnvelope_Windows.dll : System.IO.FileNotFoundException: Could not load file or assembly ‘System.Security.Cryptography.Xml, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51’. The system cannot find the file specified.
File name: ‘System.Security.Cryptography.Xml, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51’
at System.Reflection.RuntimeAssembly.GetExportedTypes()
at UiPath.Studio.Plugin.Workflow.Services.AssemblyContainerBase.AddAssemblyInternal(Assembly assembly, String path)
at UiPath.Studio.Plugin.Workflow.Services.AssemblyContainerBase.<>c__DisplayClass12_0.b__0(Tuple`2 range)

image

Also when I added the Cryptography XML to the UiPath library I see it in red color means not resolving it.
image

Can anyone please advise what I am doing wrong here.

Thanks and Regards,
Sathish.

@ StefanSchnell Could you please help me with this issue.

Can you import manually the System.Security.Cryptography.Xml namespace in the Imports panel?

Also, try to install System.Security.Cryptography.Xml.7.0.1 in Manage Packages

Thank you for your reply!!

Issue is not when I am adding the Cryptography XML but when I am adding the custom nuget package I created using .net6.

I am able to import the cryptography xml in xaml.

Ok, but in Manage Packages as it seems you didn’t install all its dependencies.

But I only see one dependency for it in Windows library.