bizarrosephiroth
New Member
Hi<BR><BR>I'm used to programming java. Trying to compile two classes where class1 uses class2 was quite easy there, but the same little task using c# has f*** up my weekend. Please help.<BR><BR>Sample:<BR>namespace mySpace{<BR> public class class1{} //in file class1.cs<BR>}<BR><BR>namespace mySpace{<BR> public class class2{ //in file class2.cs<BR> private class1 myClass1;<BR> }<BR>}<BR><BR>trying to compile: csc class1.cs -> ok<BR>csc class2.cs<BR>-> class2.cs(3,7): error CS0246: The type or namespace name 'class1' could not be found (are you missing a using directive or an assembly reference?)<BR><BR>What could be the problem? how do I have to tell the compiler that class1 lies directliy to its feet? is that guy blind or just stoopid?<BR><BR>btw. i don't have VS installed, just the sdk.<BR><BR>Any help is greatly appreciated<BR><BR>Thanx<BR>Didosa<BR><BR>www.loomgmbh.ch<BR>you can compile like this:<BR><BR>csc class1.cs class2.csCool. Thanx, you just saved my day.