=====================================
=自定义基类
=====================================
namespace MERP.DataAccess
{
abstract public class SqlBase
{
public SqlBase()
{
} /// <summary>
/// Makes sure that everything is clear and ready for a new query 
/// </summary>
protected void ResetSql()
{
} /// <summary>
/// Runs our command and returns the dataset 
/// </summary>
/// <returns></returns>
protected DataSet ExecuteQuery()
{
}
}
}
=================================
继承类
=================================using MERP.DataAccess;namespace MERP.BusinessRules.Security
{
/// <summary>
/// Summary description for UserLoginValidate.
/// </summary>
public class UserLoginValidate : SqlBase
{
public UserLoginValidate() : base()
{
}

public string AuthenticateUser(System.Web.SessionState.HttpSessionState objSession, System.Web.HttpResponse objResponse, string userId, string password, bool bPersist)
{
try
{
Login(userId, password, ref sLoginName, ref nLoginType); 
}
} private void Login(string userid, string password, ref string sLoginName, ref int nLoginType)
{

}
}
}
=================================
调用自定义类的Aspx页面using MERP.BusinessRules.Security;
//调用数据访问类SqlDBConnection
//
UserLoginValidate ulv = new UserLoginValidate(); 
redirect = ulv.AuthenticateUser(this.Session, this.Response, userId, password, saveAsCookie);
=======================================
在编译时出现一个错:
c:\Inetpub\wwwroot\web\bin\MERP.BusinessRules.dll Referenced class 'MERP.BusinessRules.Security.UserLoginValidate' has base class or interface 'MERP.DataAccess.SqlBase' defined in an assembly that is not referenced.  You must add a reference to assembly 'MERP.DataAccess'.请问各位英雄:为何出现这个错误?如何解决?
(由于编幅关系,只将函数名贴上)另外,在一个工程中有三个project(三层结构),为何在编译时,有其中一个会被skip的?------ Skipped Build: Project: BusinessRules, Configuration: Debug .NET ------Project configuration skipped because it is not selected in this solution configuration