Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
19-08-20 04:08 PM
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:
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
------------------------------
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
------------------------------
Answered! Go to Answer.
1 BEST ANSWER
Helpful Answers
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
21-08-20 01:33 AM
Hello,
I am able to get this to compile with the following:

------------------------------
James Man
Professional Services
Blue Prism
Asia/Hong_Kong
------------------------------
I am able to get this to compile with the following:
------------------------------
James Man
Professional Services
Blue Prism
Asia/Hong_Kong
------------------------------
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
21-08-20 01:33 AM
Hello,
I am able to get this to compile with the following:

------------------------------
James Man
Professional Services
Blue Prism
Asia/Hong_Kong
------------------------------
I am able to get this to compile with the following:
------------------------------
James Man
Professional Services
Blue Prism
Asia/Hong_Kong
------------------------------
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
21-08-20 12:29 PM
Thanks, I was missing System.Core.dll.
------------------------------
Nicholas Zejdlik
RPA Developer
------------------------------
------------------------------
Nicholas Zejdlik
RPA Developer
------------------------------
