Esempio 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);

                // skip Unity packages like com.unity.ext.nunit
                if (pdbFile.IndexOf($"{Path.DirectorySeparatorChar}com.unity.", StringComparison.OrdinalIgnoreCase) > 0)
                {
                    continue;
                }

                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.");
            }
        }
Esempio n. 2
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);
                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.");
            }
        }