예제 #1
0
 internal BuildResult(
     string solutionPath,
     string[] outputFiles, BuiltProject[] projectsBuilt,
     string[] targetFiles, BuiltItem[] allItemsBuilt
 )
 {
     SolutionPath = solutionPath;
     OutputFiles = outputFiles;
     ProjectsBuilt = projectsBuilt;
     TargetFilesUsed = targetFiles;
     AllItemsBuilt = allItemsBuilt;
 }
예제 #2
0
        public void Initialize(IEventSource eventSource)
        {
            eventSource.ProjectStarted += (sender, args) => {
                var parentId = args.ParentProjectBuildEventContext.ProjectInstanceId;

                BuiltProject parentProject;
                ProjectsById.TryGetValue(parentId, out parentProject);

                var obj = new BuiltProject {
                    Parent = parentProject,
                    Id     = args.ProjectId,
                    File   = args.ProjectFile
                };

                ProjectsById[args.ProjectId] = obj;
            };
            eventSource.TargetStarted += (sender, args) =>
                                         TargetFiles.Add(args.TargetFile);
        }
예제 #3
0
        public void Initialize(IEventSource eventSource)
        {
            eventSource.ProjectStarted += (sender, args) => {
                var parentId = args.ParentProjectBuildEventContext.ProjectInstanceId;

                BuiltProject parentProject;
                ProjectsById.TryGetValue(parentId, out parentProject);

                var obj = new BuiltProject {
                    Parent = parentProject,
                    Id = args.ProjectId,
                    File = args.ProjectFile
                };

                ProjectsById[args.ProjectId] = obj;
            };
            eventSource.TargetStarted += (sender, args) =>
                TargetFiles.Add(args.TargetFile);
        }