Skip to content

docfx download throws exception #2805

@bitbonk

Description

@bitbonk

DocFX Version Used:
docfx 2.35.4.0

Steps to Reproduce:

  1. run docfx download -x https://docs.microsoft.com/dotnet/xrefmap.yml

Expected Behavior:
The xrefmap is downloaded so I can build my API documentation even when the internet is broken

Actual Behavior:

[18-05-22 09:39:30.415]Error:System.AggregateException: One or more errors occurred. ---> System.ArgumentException: Phase name cannot be null or white space.
Parameter name: fileName
   at Microsoft.DocAsCode.Common.LoggerFileScope..ctor(String fileName)
   at Microsoft.DocAsCode.Build.Engine.XRefArchiveBuilder.<DownloadAsync>d__3.MoveNext()
   --- End of inner exception stack trace ---
   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
   at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
   at Microsoft.DocAsCode.SubCommands.DownloadCommand.Exec(SubCommandRunningContext context)
   at Microsoft.DocAsCode.Program.ExecSubCommand(String[] args)
---> (Inner Exception #0) System.ArgumentException: Phase name cannot be null or white space.
Parameter name: fileName
   at Microsoft.DocAsCode.Common.LoggerFileScope..ctor(String fileName)
   at Microsoft.DocAsCode.Build.Engine.XRefArchiveBuilder.<DownloadAsync>d__3.MoveNext()<---

[18-05-22 09:39:30.424]Info:Completed in 46,1122 milliseconds


Build failed.
[18-05-22 09:39:30.431]Error:System.AggregateException: One or more errors occurred. ---> System.ArgumentException: Phase name cannot be null or white space.
Parameter name: fileName
   at Microsoft.DocAsCode.Common.LoggerFileScope..ctor(String fileName)
   at Microsoft.DocAsCode.Build.Engine.XRefArchiveBuilder.<DownloadAsync>d__3.MoveNext()
   --- End of inner exception stack trace ---
   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
   at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
   at Microsoft.DocAsCode.SubCommands.DownloadCommand.Exec(SubCommandRunningContext context)
   at Microsoft.DocAsCode.Program.ExecSubCommand(String[] args)
---> (Inner Exception #0) System.ArgumentException: Phase name cannot be null or white space.
Parameter name: fileName
   at Microsoft.DocAsCode.Common.LoggerFileScope..ctor(String fileName)
   at Microsoft.DocAsCode.Build.Engine.XRefArchiveBuilder.<DownloadAsync>d__3.MoveNext()<---

        0 Warning(s)
        1 Error(s)

Metadata

Metadata

Assignees

Labels

dotnetGenerate .NET API reference docsfundamentalEngineering system and core components

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions