public ProjectFinalizer(SolutionFinalizer solutionFinalizer, string directory) { this.BaseMembers = new Dictionary<ulong, Tuple<string, ulong>>(); this.ImplementedInterfaceMembers = new MultiDictionary<ulong, Tuple<string, ulong>>(); this.SolutionFinalizer = solutionFinalizer; ReferencingAssemblies = new List<string>(); this.ProjectDestinationFolder = directory; this.referencesFolder = Path.Combine(directory, Constants.ReferencesFileName); this.AssemblyId = string.Intern(Path.GetFileName(directory)); ReadProjectInfo(); ReadDeclarationLines(); ReadBaseMembers(); ReadImplementedInterfaceMembers(); }
private static void FinalizeProjects(bool emitAssemblyList) { GenerateLooseFilesProject(Constants.MSBuildFiles, Paths.SolutionDestinationFolder); GenerateLooseFilesProject(Constants.TypeScriptFiles, Paths.SolutionDestinationFolder); using (Disposable.Timing("Finalizing references")) { try { var solutionFinalizer = new SolutionFinalizer(Paths.SolutionDestinationFolder); solutionFinalizer.FinalizeProjects(emitAssemblyList, mergedSolutionExplorerRoot); } catch (Exception ex) { Log.Exception(ex, "Failure while finalizing projects"); } } }
private static void FinalizeProjects(IDictionary<string,string> extraArgs) { GenerateLooseFilesProject(Constants.MSBuildFiles, Paths.SolutionDestinationFolder); GenerateLooseFilesProject(Constants.TypeScriptFiles, Paths.SolutionDestinationFolder); using (Disposable.Timing("Finalizing references")) { try { var solutionFinalizer = new SolutionFinalizer(Paths.SolutionDestinationFolder); solutionFinalizer.FinalizeProjects(mergedSolutionExplorerRoot, extraArgs); } catch (Exception ex) { Log.Exception(ex, "Failure while finalizing projects"); } } }
public static void FinalizeProjects(bool emitAssemblyList = true) { GenerateLooseFilesProject(Constants.MSBuildFiles, Paths.SolutionDestinationFolder); GenerateLooseFilesProject(Constants.TypeScriptFiles, Paths.SolutionDestinationFolder); using (Disposable.Timing("Finalizing references")) { SolutionFinalizer solutionFinalizer = null; bool error = false; try { solutionFinalizer = new SolutionFinalizer(Paths.SolutionDestinationFolder); solutionFinalizer.FinalizeProjects(emitAssemblyList, mergedSolutionExplorerRoot); } catch (Exception ex) { error = true; Log.Exception(ex, "Failure while finalizing projects"); } Extend.ExtendGenerator.Finalize(solutionFinalizer, mergedSolutionExplorerRoot, error); } }