bool InternalAddReference(string assemblyLocation) { var refc = new CompileReference(assemblyLocation); var existed = _references.Find(p=>p.MetadataReference.Equals(refc)); if (existed!=null) return false; _references.Add(refc); return true; }
bool InternalAddReference(IArtifact artifact) { var refc = new CompileReference(artifact); var existed = _references.Find(p => p.MetadataReference.Equals(refc)); if (existed != null) return false; _references.Add(refc); return true; }