cancel
Showing results for 
Search instead for 
Did you mean: 

Type 'HashSet' not defined

NicholasZejdlik
Level 9
I'm attempting to use a HashSet in a Blue Prism code stage, but it keeps coming up with an error saying that "Type 'HashSet' is not defined". The specific line of code that is generating the error is this:
Dim Values As New System.Collections.Generic.HashSet(Of Object)

I have System.Collections.Generic in the NameSpace imports, and System.Collections.dll in the references list. I'm on Blue Prism version 5.24, which according to System.Environment.Version is using .net framework 4.0. If I take this line of code and slap it in a Visual Studio project targeting framework 4.0, it compiles just fine.

Is there something that I'm missing? I can workaround it by using a Dictionary instead, but I'm curious why this won't compile.

------------------------------
Nicholas Zejdlik
RPA Developer
------------------------------
1 BEST ANSWER

Helpful Answers

james.man
Staff
Staff
Hello,

I am able to get this to compile with the following:
26849.png

26850.png


------------------------------
James Man
Professional Services
Blue Prism
Asia/Hong_Kong
------------------------------

View answer in original post

2 REPLIES 2

james.man
Staff
Staff
Hello,

I am able to get this to compile with the following:
26849.png

26850.png


------------------------------
James Man
Professional Services
Blue Prism
Asia/Hong_Kong
------------------------------

Thanks, I was missing System.Core.dll.

------------------------------
Nicholas Zejdlik
RPA Developer
------------------------------