public void AddReferences(string[] referencePaths) { var referencePathsToAdd = referencePaths.Except(References); foreach (var referencePath in referencePathsToAdd) { var referenceFilename = Path.GetFileName(referencePath); if (References.All(existingReferenceFilename => Path.GetFileName(existingReferenceFilename) != referenceFilename)) { Session.AddReference(referencePath); References.Add(referencePath); } } }
public bool NeedsEntryPointAdded() { return(!DefineConstraints.Contains("UNITY_DOTS_ENTRYPOINT") && References.All(r => r.NeedsEntryPointAdded())); }
public override bool IsPossible() => References.Length == 2 && References.All(o => o.Length == References[0].Length);