Arg! C# is killing me! Compile problems. :(

Soldato
Joined
12 Jan 2004
Posts
6,824
Location
Londinium
Can someone please try and run this example:

http://www.dotnetjunkies.com/Article/E1F97CE9-7834-46FA-BED9-866F720AB013.dcik

I am trying to do the same thing but keep getting compilation errors:

Code:
UserControlProperty.aspx.cs(10,42): error CS0234: The type or namespace name 'MyUserControl01' does not exist in the class or namespace 'DotNetJunkies.Samples.A001' (are you missing an assembly reference?)

Note, I am using ASP.NET 1.1 and using these commands to compile:

Code:
C:\Inetpub\ComCalc\Test>C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\csc /t:library /out:..\Bin\Test1.dll MyUserControl.ascx.cs

[successfull]

C:\Inetpub\ComCalc\Test>C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\csc /t:library /out:..\Bin\Test2.dll UserControlProperty.aspx.cs

[fails]

Someone please stop me from going insane and tell me if it works for you!
 
Okay I think my problem is that Im not compiling the different files correctly, as when I put the classes on the same page it compiles fine, somehow they are not being linked.

What is the proper way to compile multiple files to be part of the same namespace?
 
Back
Top Bottom