public void AddAssemblyReferenceToProject(string assemblyName, string assemblyLocation)
        {
            //build an reference to the assembly
            MonoDevelop.Projects.ProjectReference pr;
            if (string.IsNullOrEmpty(assemblyLocation))
            {
                pr = new MonoDevelop.Projects.ProjectReference
                         (MonoDevelop.Projects.ReferenceType.Package, assemblyName);
            }
            else
            {
                pr = new MonoDevelop.Projects.ProjectReference
                         (MonoDevelop.Projects.ReferenceType.Assembly, assemblyLocation);
            }

            //add the reference if it doesn't match an existing one
            bool match = false;

            foreach (var p in Project.References)
            {
                if (p.Equals(pr))
                {
                    match = true;
                }
            }
            if (!match)
            {
                Project.References.Add(pr);
            }
        }
		public void AddAssemblyReferenceToProject (string assemblyName, string assemblyLocation)
		{
			//build an reference to the assembly
			MonoDevelop.Projects.ProjectReference pr;
			if (string.IsNullOrEmpty (assemblyLocation)) {
				pr = new MonoDevelop.Projects.ProjectReference
					(MonoDevelop.Projects.ReferenceType.Package, assemblyName);
			} else {
				pr =  new MonoDevelop.Projects.ProjectReference
					(MonoDevelop.Projects.ReferenceType.Assembly, assemblyLocation);
			}
			
			//add the reference if it doesn't match an existing one
			bool match = false;
			foreach (var p in Project.References)
				if (p.Equals (pr))
					match = true;
			if (!match)
				Project.References.Add (pr);
		}