Skip to content

EF DbContext generator doesn't work. "overwrite the replacement token '$edmxInputFile$'" #9168

@sorokinDev

Description

@sorokinDev

Problem:

EF DbContext Generator doesn't work in Visual Studio. Just today's morning everything worked fine, but later I noice following problem.

Error:

Running transformation: Please overwrite the replacement token '$edmxInputFile$' with the actual name of the .edmx file you would like to generate from.

Steps to reproduce:

Create New project. Click on EF DbContext Generator(5 or 6 version doesn't matter). It doesn't show selector with options "from database, code first..." as always. Instead it just generates 2 files: "Model1.Context.tt" and "Model1.tt" and shows the error above.

Screens:

ef_1
ef_2

Also:

I noticed in "Model1.Context.tt", that it has link and it returns 404.

private const string ExternalTypeNameAttributeName = @"http://schemas.microsoft.com/ado/2006/04/codegeneration:ExternalTypeName";

Further technical details:

I tried this on 3 PC: two with VS2017 and one with VS2015, all win10 x64.

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