GenerateReferenceAssemblies.ps1 831 B

12345678910111213141516171819202122
  1. param(
  2. [switch]$ci
  3. )
  4. $ErrorActionPreference = 'stop'
  5. $repoRoot = Resolve-Path "$PSScriptRoot/../.."
  6. try {
  7. # eng/common/msbuild.ps1 builds the Debug configuration unless there's a $Configuration variable. Match that here.
  8. & "$repoRoot\build.ps1" -ci:$ci -nobl -noBuildRepoTasks -noRestore -buildNative -configuration Debug
  9. Remove-Item variable:global:_BuildTool -ErrorAction Ignore
  10. $excludeCIBinarylog = $true
  11. $msbuildEngine = 'dotnet'
  12. & "$repoRoot\eng\common\msbuild.ps1" -ci:$ci "$repoRoot/eng/CodeGen.proj" /t:GenerateReferenceSources
  13. } finally {
  14. Remove-Item variable:global:_BuildTool -ErrorAction Ignore
  15. Remove-Item variable:global:_DotNetInstallDir -ErrorAction Ignore
  16. Remove-Item variable:global:_ToolsetBuildProj -ErrorAction Ignore
  17. Remove-Item variable:global:_MSBuildExe -ErrorAction Ignore
  18. }