コード例 #1
0
 public CompilePhaseHandlerWithIncremental(CompilePhaseHandler inner)
 {
     _inner                  = inner ?? throw new ArgumentNullException(nameof(inner));
     Context                 = _inner.Context;
     IncrementalContext      = Context.IncrementalBuildContext;
     LastBuildVersionInfo    = IncrementalContext.LastBuildVersionInfo;
     LastBuildMessageInfo    = BuildPhaseUtility.GetPhaseMessageInfo(LastBuildVersionInfo?.BuildMessage, Phase);
     CurrentBuildVersionInfo = IncrementalContext.CurrentBuildVersionInfo;
     CurrentBuildMessageInfo = BuildPhaseUtility.GetPhaseMessageInfo(CurrentBuildVersionInfo.BuildMessage, Phase);
 }
コード例 #2
0
 public LinkPhaseHandlerWithIncremental(LinkPhaseHandler inner)
 {
     if (inner == null)
     {
         throw new ArgumentNullException(nameof(inner));
     }
     _inner                  = inner;
     Context                 = _inner.Context;
     TemplateProcessor       = _inner.TemplateProcessor;
     IncrementalContext      = Context.IncrementalBuildContext;
     LastBuildVersionInfo    = IncrementalContext.LastBuildVersionInfo;
     LastBuildMessageInfo    = BuildPhaseUtility.GetPhaseMessageInfo(LastBuildVersionInfo?.BuildMessage, Phase);
     CurrentBuildVersionInfo = IncrementalContext.CurrentBuildVersionInfo;
     CurrentBuildMessageInfo = BuildPhaseUtility.GetPhaseMessageInfo(CurrentBuildVersionInfo.BuildMessage, Phase);
 }