Browse Source

Restore nuget packages before building API metadata (while waiting answer for https://github.com/dotnet/docfx/issues/3177)

Virgile Bello 7 years ago
parent
commit
d5f3102845
1 changed files with 8 additions and 0 deletions
  1. 8 0
      en-build.ps1

+ 8 - 0
en-build.ps1

@@ -12,6 +12,14 @@ Start-Transcript -Path build.log
 if ($API)
 if ($API)
 {
 {
     Write-Host "Generating API documentation..."
     Write-Host "Generating API documentation..."
+
+    # Run nuget restore
+    ..\xenko\build\.nuget\nuget restore ..\xenko\build\Xenko.sln
+	if ($LastExitCode -ne 0)
+	{
+		Write-Host "Failed to restore nuget packages"
+		exit $LastExitCode
+	}
     
     
     # Build metadata from C# source
     # Build metadata from C# source
     deps\docfx\docfx.exe metadata en/docfx.json
     deps\docfx\docfx.exe metadata en/docfx.json