Exemple #1
0
        private static void RemoveAssembly(string path)
        {
            FileInfo f = new FileInfo(path);

            DiskBuildResultCache.RemoveAssembly(f);
            string str = Path.ChangeExtension(f.FullName, ".pdb");

            if (File.Exists(str))
            {
                DiskBuildResultCache.TryDeleteFile(new FileInfo(str));
            }
        }
Exemple #2
0
        private static void RemoveAssembly(string path)
        {
            var f = new FileInfo(path);

            DiskBuildResultCache.RemoveAssembly(f);
            // Delete the associated pdb file as well, since it is possible to
            // run into a situation where the dependency has changed just
            // when the cache item is about to get inserted, resulting in
            // the callback deleting only the dll file and leaving behind the
            // pdb file. (Dev10 bug 846606)
            var pdbPath = Path.ChangeExtension(f.FullName, ".pdb");

            if (File.Exists(pdbPath))
            {
                DiskBuildResultCache.TryDeleteFile(new FileInfo(pdbPath));
            }
        }