Skip to content

WinForms problem with main view using DI #67

@lordofscripts

Description

@lordofscripts

The documentation gives an example of how to use Simple Injector in WinForms projects. The example shows the code for the main view/main form with only a DI constructor.

The problem is, that the code as given throws an exception in one of the SI lines stating that the main view requires a parameterless constructor!

If I put the default constructor then the form does not work well.

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