| View previous topic :: View next topic |
| Author |
Message |
david
Joined: 27 Aug 2007 Posts: 14
|
Posted: Tue Apr 28, 2009 3:28 am Post subject: error CS0246: The type or namespace name '*' |
|
|
Hello Experts,
I creating a class library. in that i am referring a *.dll. while building the solution the project is building successfully. but when i compile the class file through command prompt it is encountering following error.
here is my command
csc /t:library doctest.cs
when i run this command prompting the following error
DocTest.cs(6,7): error CS0246: The type or namespace name '*' could not b
found (are you missing a using directive or an assembly reference?)
any idea? please helps me...
thanking you in advance,
regards,
vamsi |
|
| Back to top |
|
 |
manoj
Joined: 21 Aug 2007 Posts: 102
|
Posted: Tue Apr 28, 2009 3:34 am Post subject: |
|
|
Hi vamsy,
I guess the problem is with reference dll. you have the specify the location of the dll in the compile command.
command is as follows
csc /t:library /reference:C:\WINNT\Microsoft.NET\Fra
mework\v2.0.50727\*.dll DocTest.cs
try this command..i hope this may helps you...
regards,
manoj |
|
| Back to top |
|
 |
david
Joined: 27 Aug 2007 Posts: 14
|
Posted: Tue Apr 28, 2009 3:54 am Post subject: |
|
|
| Thanks for your solution manoj, it is working fine now......... |
|
| Back to top |
|
 |
|