Having error CS0234: The type or namespace doesn't exist when doing partial make mono class library

Sunday, May 11, 2014

I was trying to add some missing class into the mono class library package. My class make use of other assembly. I have put that assembly reference into .csproj file, but it does not help.

What should I do in order to use the class from other assembly? It seems to me the .csproj file does not get compiled when I do "make".

I have taking some time on Mono Project Contribution page (http://ift.tt/1iDpYPH) but I still cannot find how to do it.

Here is my code:

using System;
using System.ComponentModel.DataAnnotations;
using System.Web.Security;
using System.Linq;
using System.Text.RegularExpressions;

namespace System.Web.Security
AttributeTargets.Property | AttributeTargets.Field |
AttributeTargets.Parameter, AllowMultiple = false)]
public class MembershipPasswordAttribute : ValidationAttribute

I try to use System.ComponentModel.DataAnnotations which is under /mono/mcs/class/System.ComponentModel.DataAnnotations. My class is under System.Web assembly (/mono/mcs/class/http://ift.tt/RCmZBs).

Thank you in advance!