private void CollectImports(BuildEventArgs e) { ProjectImportedEventArgs importArgs = e as ProjectImportedEventArgs; if (importArgs != null && importArgs.ImportedProjectFile != null) { projectImportsCollector.AddFile(importArgs.ImportedProjectFile); return; } projectImportsCollector.IncludeSourceFiles(e); }
private void CollectImports(BuildEventArgs e) { ProjectImportedEventArgs importArgs = e as ProjectImportedEventArgs; if (importArgs != null && importArgs.ImportedProjectFile != null) { projectImportsCollector.AddFile(importArgs.ImportedProjectFile); return; } // This is different from the official MSBuild because we want to run on MSBuild 14 // and still collect source files mentioned in targets and tasks. // We don't need this in official MSBuild because there we have the ProjectImportedEventArgs // that tells us about all the files. projectImportsCollector.IncludeSourceFiles(e); }