Skip to content

DependencyContext null #8

@dsjohnston

Description

@dsjohnston

Using an application that is .netfull only (UI or UnitTest), one can get a NULL DependencyContext. causing the 'Init' function to throw an NullReferenceException. This occurs due to the lack of a manifest file.

Consider null check + warning: "return context == null ? new List() : context"

return context.RuntimeLibraries

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions