Exemplo n.º 1
0
        public void SyncIfNeeded(string[] addedFiles, string[] deletedFiles, string[] movedFiles, string[] movedFromFiles, string[] importedFiles)
        {
            _generator.SyncIfNeeded(addedFiles.Union(deletedFiles).Union(movedFiles).Union(movedFromFiles), importedFiles);

            foreach (var file in importedFiles.Where(a => Path.GetExtension(a) == ".pdb"))
            {
                var pdbFile = FileUtility.GetAssetFullPath(file);
                var asmFile = Path.ChangeExtension(pdbFile, ".dll");

                if (!File.Exists(asmFile) || !Image.IsAssembly(asmFile))
                {
                    continue;
                }

                if (Symbols.IsPortableSymbolFile(pdbFile))
                {
                    continue;
                }

                UnityEngine.Debug.LogWarning($"Unity is only able to load mdb or portable-pdb symbols. {file} is using a legacy pdb format.");
            }
        }