I created a .cs file with a namespace myNamespace and contains myClass. Then I opened VS.NET Command prompt and typed:
csc /out:bin/myTestDLL.dll /target:library myTestFile.cs
It compiled successfully and placed a myTestDLL.dll in my bin directory. In my .aspx page I placed this on the page:
<%@ Import Namespace="myNamespace"%>
But I get an error: "The type or namespace name 'myNamespace' could not be found (are you missing a using directive or an assembly reference?)"
PLEASE NOTE: I am not building my application in VS.NET even though I have it. I know you can go into VS.NET and just Add Reference but I really want to know how to do this just from the csc command prompt.
My file is a Class that doesn't reference any other one I've built. It uses:
What am I missing or doing wrong? I'm posting on EE because I have Googled and read as many articles as I could find but there's always something missing or not exactly what I need. Please don't send me links as I have probably read them to no avail and would like an Expert to help me instead.