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.
I don't do this outside of the IDE, but here is the syntax that I believe you need (which is why I asked what you were trying):
csc.exe /t:library /r:bin\SomeDependantAssembly.dll /r:bin\SomeOtherAssembly.dll
Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.
Viewers will learn about basic arrays, how to declare them, and how to use them.
Introduction and definition:
Declare an array and cover the syntax of declaring them:
Initialize every index in the created array:
Example/Features of a basic arr…
The viewer will receive an overview of the basics of CSS showing inline styles.
In the head tags set up your style tags:
Reference the nav tag and set your properties.: (CODE)
Set the reference for the UL element and styles for it to ensu…