[Mono-dev] mcs Cannot find custom type

Christopher Bergström cbergstrom at netsyncro.com
Fri Aug 12 12:55:12 EDT 2005


I have a classes directory and I'm trying to compile everything into one
library. From inside the /classes directory I run..  Below is the source
from that page.. I'm trying to port over some forum software to Mono and
eventually away from MSSQL server to Postgresql.

I'm guessing this is a quick and easy fix..


mcs -target:library *  -r:System.Web  /out:yaf.dll

AdminPage.cs(9) error CS0246: Cannot find type 'pages.ForumPage'



using System;

namespace yaf
{
    /// <summary>
    /// Summary description for AdminPage.
    /// </summary>
    public class AdminPage : pages.ForumPage
    {
        /// <summary>
        /// Creates the Administration page.
        /// </summary>
        public AdminPage() : base(null)
        {
            this.Load += new EventHandler(AdminPage_Load);
        }

        private void AdminPage_Load(object sender,EventArgs e)
        {
            if(!IsAdmin)
                Data.AccessDenied();

#if false
            if(!IsPostBack)
            {
                controls.PageLinks ctl = new controls.PageLinks();
                ctl.AddLink(BoardSettings.Name,Forum.GetLink(Pages.forum));
               
ctl.AddLink("Administration",Forum.GetLink(Pages.admin_admin));
                Controls.AddAt(0,ctl);
            }
#endif
        }
    }
}






More information about the Mono-devel-list mailing list