void NotifyFileRemovedFromProject(ProjectFile file)
{
file.SetProject(null);
if (DependencyResolutionEnabled)
{
if (unresolvedDeps.Contains(file))
{
unresolvedDeps.Remove(file);
}
foreach (ProjectFile f in file.DependentChildren)
{
f.DependsOnFile = null;
if (!string.IsNullOrEmpty(f.DependsOn))
{
unresolvedDeps.Add(f);
}
}
file.DependsOnFile = null;
}
SetDirty();
NotifyModified("Files");
OnFileRemovedFromProject(new ProjectFileEventArgs(this, file));
}