private void RemoveSourceFile(string fullPath)
 {
     if (_sourceFiles.Remove(fullPath))
     {
         _context.RemoveSourceFile(fullPath);
     }
 }
Beispiel #2
0
        private void RemoveSourceFile(string fullPath, IWorkspaceProjectContext context)
        {
            fullPath = _project.MakeRooted(fullPath);

            if (_sourceFilesByContext.TryGetValue(context, out HashSet <string> sourceFiles) && sourceFiles.Remove(fullPath))
            {
                context.RemoveSourceFile(fullPath);
            }
        }
 protected override void RemoveFromContext(string fullPath, IProjectLogger logger)
 {
     logger.WriteLine("Removing source file '{0}'", fullPath);
     _context.RemoveSourceFile(fullPath);
 }
 protected override void RemoveFromContext(string fullPath)
 {
     _context.RemoveSourceFile(fullPath);
 }