Code Monkey home page Code Monkey logo

Comments (15)

ErikEJ avatar ErikEJ commented on August 23, 2024 1

Fixed in latest daily build! Thanks for the help with debugging this

from efcorepowertools.

tonysneed avatar tonysneed commented on August 23, 2024

@ErikEJ Is this working now? I get an error saying that only v2.0 is supported (not 2.1) for modeling.

from efcorepowertools.

ErikEJ avatar ErikEJ commented on August 23, 2024

have you tried the latest daily build (.614 or later) ?

from efcorepowertools.

tonysneed avatar tonysneed commented on August 23, 2024

from efcorepowertools.

ErikEJ avatar ErikEJ commented on August 23, 2024

Link iin readme: https://github.com/ErikEJ/EFCorePowerTools

from efcorepowertools.

tonysneed avatar tonysneed commented on August 23, 2024

Oh yes, it helps if I read the ReadMe. :)

from efcorepowertools.

tonysneed avatar tonysneed commented on August 23, 2024

Interesting thing is that after I uninstalled the version from the marketplace 1.0.604 and installed the daily build version 1.0.616, I got the assembly binding error:

System.IO.FileNotFoundException: Could not load file or assembly 'Handlebars, Version=1.9.4.0, Culture=neutral, PublicKeyToken=22225d0bf33cd661' or one of its dependencies. The system cannot find the file specified.
File name: 'Handlebars, Version=1.9.4.0, Culture=neutral, PublicKeyToken=22225d0bf33cd661'
   at EntityFrameworkCore.Scaffolding.Handlebars.HbsHelperService.RegisterHelpers()
   at EntityFrameworkCore.Scaffolding.Handlebars.HbsCSharpModelGenerator.GenerateModel(IModel model, String namespace, String contextDir, String contextName, String connectionString, ModelCodeGenerationOptions options)
   at Microsoft.EntityFrameworkCore.Scaffolding.Internal.ReverseEngineerScaffolder.ScaffoldModel(String connectionString, IEnumerable`1 tables, IEnumerable`1 schemas, String namespace, String language, String contextDir, String contextName, ModelReverseEngineerOptions modelOptions, ModelCodeGenerationOptions codeOptions)
   at ReverseEngineer20.EfCoreReverseEngineer.GenerateFiles(ReverseEngineerOptions reverseEngineerOptions)
   at EFCorePowerTools.Handlers.ReverseEngineerHandler.<ReverseEngineerCodeFirst>d__2.MoveNext() in C:\projects\efcorepowertools\src\GUI\EFCorePowerTools\Handlers\ReverseEngineerHandler.cs:line 153

Can you check to see if the Handlebars.Net assembly has the right public key token?

from efcorepowertools.

ErikEJ avatar ErikEJ commented on August 23, 2024

@tonysneed It does, and I am unable to repro - maybe you have two instances of the extension on disk - have a look - you can also use https://github.com/remcoros/DuplicateExtensionFinder

from efcorepowertools.

tonysneed avatar tonysneed commented on August 23, 2024

The tool tells me there are no duplicate extensions. I only get the assembly binding error when installing extension.vsix from the VSIX Gallery link under Daily Builds in the ReadMe. If I uninstall the daily build and install the latest version from the marketplace, then this error does not occur. I've been able to repro several times on my end, so I imagine it should be relatively straightforward to repro on your end if you follow the same steps.

The way to troubleshoot this is to turn on assembly binding logging.

To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.

from efcorepowertools.

ErikEJ avatar ErikEJ commented on August 23, 2024

I Will give it a try, but believe I am unable to repro. Which Windows version and VS version do you use?

from efcorepowertools.

tonysneed avatar tonysneed commented on August 23, 2024

from efcorepowertools.

ErikEJ avatar ErikEJ commented on August 23, 2024

Does the extension folder contain the handlebars DLL,? In %appdata% local Microsoft VisualStudio ?

from efcorepowertools.

tonysneed avatar tonysneed commented on August 23, 2024

from efcorepowertools.

tonysneed avatar tonysneed commented on August 23, 2024

It looks like Handlebars.dll is missing from the installation folder. And when I copy it to the folder, the error goes away. :-)

from efcorepowertools.

ErikEJ avatar ErikEJ commented on August 23, 2024

Perfect! I will force it there!

from efcorepowertools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.