Skip to content

[Feature Request] Stop docfx metadata command immediately when restore failed #10970

@filzrev

Description

@filzrev

Is your feature request related to a problem? Please describe.

docfx metadata command failed to restore project.
It show error messages only to console. But processing continues.

It's not counted as error. So it may return ExitCode: 0
It might be better to raise error and stop processing.

if (!config.NoRestore)
{
using var process = Process.Start("dotnet", $"restore \"{path}\"");
await process.WaitForExitAsync();
}

Describe the solution you'd like
When restore operation failed. stop processing and show errors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions