private void LoadProject() { // clear any existing converter Converter = null; if (null == Project) { return; } Trace("loading project '{0}' ...", Project.Name); if(null == OutputDirectory) { Warning("output directory is not set."); } using (_report = new ConverterReport()) { Trace("load master project '{0}' ...", Project.Name); // clear collection of source directories _sourcedirectories.Clear(); if (null == Project.XAMLSource) { ConverterReport.Warning("[XOZXWDT5TD] XAML source is not set."); } // convert the main XAML source ... LoadXaml(); GenerateResourceAssembly(); } }
public ConverterReport() { _previous = _current.Value; _current.Value = this; }