Many Thanks
C# Problem - Cant find type or namespace
Started by
Jack Wetson
, May 02 2009 03:36 AM
#1
Posted 02 May 2009 - 03:36 AM
Many Thanks
#2
Posted 21 June 2009 - 06:45 PM
This problem occurs when you have tried to declare or instantiate a variable of a type which the compiler does not recognize.
By looking at the right pane in Visual C#, it looks like you MAY be able to solve this problem by simply adding the following line at the very top of the file:
For example, if the files Lib_Unit.cs, Lib_POS.cs, etc, all looked something like this at the top:
Hope this helps!
By looking at the right pane in Visual C#, it looks like you MAY be able to solve this problem by simply adding the following line at the very top of the file:
using Lib;If this doesn't work, open the files "Lib_Unit.cs," "Lib_POS.cs," etc, and look near the top to see what follows the word namespace. Add this as a using directive at the top of your script file and that should solve it. If those files use more than one namespace, be sure to add using directives for all of them.
For example, if the files Lib_Unit.cs, Lib_POS.cs, etc, all looked something like this at the top:
using System; using System.Text; using System.Collections.Generic; namespace Foo { ...Then you would add this at the top of the script file you had open on the screenshot there:
using Foo;
Hope this helps!
Similar Topics
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users