calling of dll from another dll when both are in same folder
-
my first dll is using System; namespace myfirst { public class demo { public string getmessage() { return "Hi!How Are You"; } } } in folder e:\prac and more dll is using System; using myfirst; namespace mysecond { public class demo1 { public string getmessage1() { demo d=new demo(); string str1=d.getmessage(); Console.WriteLine(str1); } } } and now i am using csc /t:library mysecond.cs then i have following error and problem was same.please help me mysecond.cs(2,7): error CS0246: The type or namespace name 'myfirst' could not be found (are you missing a using directive or an assembly reference?)
-
my first dll is using System; namespace myfirst { public class demo { public string getmessage() { return "Hi!How Are You"; } } } in folder e:\prac and more dll is using System; using myfirst; namespace mysecond { public class demo1 { public string getmessage1() { demo d=new demo(); string str1=d.getmessage(); Console.WriteLine(str1); } } } and now i am using csc /t:library mysecond.cs then i have following error and problem was same.please help me mysecond.cs(2,7): error CS0246: The type or namespace name 'myfirst' could not be found (are you missing a using directive or an assembly reference?)
vikas shukla wrote:
are you missing a using directive or an assembly reference?
that tells you what is missing. csc.exe has a lot of switches, try "csc /?" to get its help, and discover what "/r" does for you. FYI: csc is part of .NET, hence look in a folder such as C:\Windows\Microsoft.NET\Framework\v2.0.50727 :)
Luc Pattyn [Forum Guidelines] [My Articles]
I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages
-
my first dll is using System; namespace myfirst { public class demo { public string getmessage() { return "Hi!How Are You"; } } } in folder e:\prac and more dll is using System; using myfirst; namespace mysecond { public class demo1 { public string getmessage1() { demo d=new demo(); string str1=d.getmessage(); Console.WriteLine(str1); } } } and now i am using csc /t:library mysecond.cs then i have following error and problem was same.please help me mysecond.cs(2,7): error CS0246: The type or namespace name 'myfirst' could not be found (are you missing a using directive or an assembly reference?)