cancel
Showing results for 
Search instead for 
Did you mean: 

Issue in Code Stage Using C# Langauge

maryamAshkar
Level 2

Hello, 

 We have created some C# code in Visual Studio that works as expected. Our main goal in this code is to add alphabet letters to duplicate string values in a list. We have imported the DLL's and namespaces of System, System.Data, System.Xml, System.Drawing, System.Collections.

In Visual Studio we downloaded the System.Collections package using NuGet and are referencing that in the imports. We didn't add it to the Blue Prism PATH.

We tried to get the main program to work but it was providing too many errors. We identified the System.Collections library as our primary obstacle. So, we created some simple test code where we just add elements to a list and use the System.Collections library that way, however even this won't work.

It is in global code:

List<int> numbers= new List<int>();

Code stage has been populated by:

numbers.Add(a);

numbers.Add(b);

numbers.Add(c);

The errors we're getting are:

Page: Initialise

Stage: Stage1

Type: Error

Action: Validate

Description: Compiler error at line 1: The type or namespace name 'List<>' could not be found (are you missing a using directive or an assembly reference?)

Repairable: No

 Is anybody able to provide any assistance with this issue?   

Thanks

1 REPLY 1

MichealCharron
Level 7

@maryam Ashkar,

What you are looking for is the namespace System.Collections.Generic and it is covered by the System.dll assembly.

35920.png
Micheal Charron
RBC
Toronto, Ontario
Canada