Skip to content

Using EF Core in only UWP class library project #9672

@abnemo

Description

@abnemo

Hello!

Tried to find it out, but without success.

The question is:

Is it possible to use EF Core in an UWP class library project without having an UWP app project as startup project in the same solution? Runnig Add-Migration command fails with this error:

Startup project 'ClassLibrary1' is a class library. Select a Universal Windows Platform app as your startup project and try again.

Further technical details

EF Core version: Microsoft.EntityFrameworkCore.Tools 1.1.1
Database Provider: Microsoft.EntityFrameworkCore.Sqlite 1.1.2
Operating system: Windows 10 Pro 1703
IDE: Visual Studio 2017 Community

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