Skip to content
This repository was archived by the owner on Aug 2, 2025. It is now read-only.
This repository was archived by the owner on Aug 2, 2025. It is now read-only.

Three minor issues #30

Description

@suchoss

Hello,

I found three messages in Visual Studio saying following:
1) IDE0067 - Disposable object created by 'new Process {' is never disposed
in ProcessEx.cs

var process = new Process {

2) CA1031 - Modify 'RunAsync' to catch a more specific exception type, or rethrow the exception.
in ProcessEx.cs

} catch (InvalidOperationException) { }

3) CA1031 - Modify 'RunAsync' to catch a more specific exception type, or rethrow the exception.
in ProcessEx.cs

catch (Exception)
{
    // best effort to try and get a more accurate start time, but if we fail to access StartTime
    // (for instance, process has already existed), we still have a valid value to use.
}

Does it make sense to fix them?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions