Enable restore binlog generation (#46270)
authorViktor Hofer <viktor.hofer@microsoft.com>
Mon, 21 Dec 2020 21:53:43 +0000 (22:53 +0100)
committerGitHub <noreply@github.com>
Mon, 21 Dec 2020 21:53:43 +0000 (22:53 +0100)
eng/Build.props
src/tasks/tasks.proj

index dd722c6..b2d72fb 100644 (file)
@@ -1,6 +1,7 @@
 <Project>
   <PropertyGroup>
-    <RestoreUseStaticGraphEvaluation>true</RestoreUseStaticGraphEvaluation>  
+    <RestoreUseStaticGraphEvaluation>true</RestoreUseStaticGraphEvaluation>
+    <GenerateRestoreUseStaticGraphEvaluationBinlog>true</GenerateRestoreUseStaticGraphEvaluationBinlog>
   </PropertyGroup>
   <ItemGroup>
     <ProjectToBuild Include="$(RepoRoot)Build.proj" />
index cc8732b..4922e0d 100644 (file)
     </ItemGroup>
 
     <MSBuild Projects="@(TaskProject)"
-             Properties="MSBuildRestoreSessionId=$([System.Guid]::NewGuid());Configuration=Debug;Platform=AnyCPU"
-             Targets="Restore"/>
+             Properties="MSBuildRestoreSessionId=$([System.Guid]::NewGuid());Configuration=Debug;Platform=AnyCPU;RESTORE_TASK_BINLOG_PARAMETERS=$(ArtifactsLogDir)Restore-tasks.proj.binlog"
+             Targets="Restore" />
 
     <MSBuild Projects="@(TaskProject)"
              Properties="Configuration=Debug;Platform=AnyCPU"
-             Targets="Build"/>
+             Targets="Build" />
 
     <WriteLinesToFile File="$(TasksIntermediateFile)"
                       Lines="$(TasksIntermediateFile)"