Comments (15)
Fixed in latest daily build! Thanks for the help with debugging this
from efcorepowertools.
@ErikEJ Is this working now? I get an error saying that only v2.0 is supported (not 2.1) for modeling.
from efcorepowertools.
have you tried the latest daily build (.614 or later) ?
from efcorepowertools.
from efcorepowertools.
Link iin readme: https://github.com/ErikEJ/EFCorePowerTools
from efcorepowertools.
Oh yes, it helps if I read the ReadMe. :)
from efcorepowertools.
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.
@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.
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.
I Will give it a try, but believe I am unable to repro. Which Windows version and VS version do you use?
from efcorepowertools.
from efcorepowertools.
Does the extension folder contain the handlebars DLL,? In %appdata% local Microsoft VisualStudio ?
from efcorepowertools.
from efcorepowertools.
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.
Perfect! I will force it there!
from efcorepowertools.
Related Issues (20)
- SqlLite computed columns HOT 5
- Oracle Data source not listed HOT 5
- Add help link on Data Source screen
- Unable to install VSIX for ARM64 HOT 21
- Code error in DbContextExtensions.Sync.cs HOT 5
- How to add Metadata to identity column when create dbcontext HOT 2
- *Procedures.cs missing OnModelCreatingGeneratedProcedures method HOT 8
- Wrong generation or conceptual error? HOT 4
- Using the Clean Architect structure, I need to split dbcontext and entities into multiple projects. HOT 11
- Feature: Generate ER diagram (Mermaid) HOT 12
- calling Stored Procedure doesn't return anything when calling it sync HOT 15
- Fix Postgres server explorer connection name
- entity.HasComment causes a CS0252 under NET 8.0.4 HOT 6
- Prefer 'non-async' calls causes invalid code generation HOT 2
- Problem with default handlebar templates in 2.6.200 HOT 2
- System Tables import HOT 4
- EF Core 7 cannot be seleted HOT 2
- Many to many entity is scaffolded but it should be navigation property HOT 8
- Debugging migrations tools HOT 4
- ajout composant Razor entityFramework CRUD erreur exception of type system.invalidOperationException HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from efcorepowertools.