示例#1
0
        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);
                }
            }
        }
示例#2
0
 public bool NeedsEntryPointAdded()
 {
     return(!DefineConstraints.Contains("UNITY_DOTS_ENTRYPOINT") && References.All(r => r.NeedsEntryPointAdded()));
 }
示例#3
0
 public override bool IsPossible() => References.Length == 2 && References.All(o => o.Length == References[0].Length);