Skip to content

Exception in MainActivity.cs #10

@jporter-ips

Description

@jporter-ips

When running the tutorial an exception is raised in the MaainActivity.cs class.
In this function:
void RegisterServices()
{
ServiceContainer.Register(() => new DatabaseSeedService(ApplicationContext));
}

I get this error:
System.MissingFieldException
Field not found: SimpleInjector.Lifestyle SimpleInjector.Lifestyle.Singleton Due to: Could not find field in class

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