cancel
Showing results for 
Search instead for 
Did you mean: 

Use DLL from nuget for C#

jefuytterhoeven
Level 4

Hi all,

I was wondering how to use a libary from nuget in blue prism.
I need to used the Identy.clinet libary for a project. And I have downloaded it from the nuget package explorer. And was succesful on importing it to my object.

However when I run the code I get this error on every line I try to use the dll.

Initialise Stage1 Error Validate Compiler error at line 35: The type 'Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. No


This is the libary I try to use.
NuGet Gallery | Microsoft.Identity.Client 4.48.1

Do I need to do something special to this libary? I downlaoded both the XML and DLL file

A few screenshots for extra information.

35165.png35166.png


Thanks in advance
Jef

1 BEST ANSWER

Best Answers

ewilson
Staff
Staff
Hi @jefuytterhoeven,

Try adding a reference to netstandard.dll to your Code Options -> External References settings.

Cheers,
Eric​

View answer in original post

3 REPLIES 3

ewilson
Staff
Staff
Hi @jefuytterhoeven,

Try adding a reference to netstandard.dll to your Code Options -> External References settings.

Cheers,
Eric​

Hello,

Try to use DLL from the "net35/net45" folder and see.

I believe this is due to the wrong DLL version from the Nuget package. I would suggest putting different versions of DLL one by one and reset your object to see if these errors are gone. Do this carefully put one DLL, reset and check, remove the old DLL and paste a new one, and repeat.

See if this helps to find the right DLL version.

jefuytterhoeven
Level 4
Thanks @ewilsonand @Tejaskumar_Darji

Adding the netstandard.DLL seems to have done it. I have no compiling errors anymore.

​​​