-
-
Notifications
You must be signed in to change notification settings - Fork 327
Open
Description
Bug description / exact reproduction steps
I just noticed that I am able to use the following options with the version 2.6.1186
"Reverse Engineer, Visualize Database Schema and ER Diagram"
The tool is now providing the mmd and dgml files and is able to generate the models (Reverse Engineer)
Problem
The options for DbContext "Add DbContext Diagram", "ViewDbContext DDL SQL" are throwing the error that I posted in my previous comment.
Thanks for looking into it, I am sure we are very close to resolving it.
Your code
`System.InvalidOperationException: Error:
System.IO.FileLoadException: Could not load file or assembly 'C:\Projects\Umbraco\mymy.COM (Umbraco)\mymycms\bin\Debug\net9.0\mymycms.dll'. The assembly architecture is not compatible with the current process architecture.
File name: 'C:\Projects\Umbraco\mymy.COM (Umbraco)\mymycms\bin\Debug\net9.0\mymycms.dll'
at System.Runtime.Loader.AssemblyLoadContext.LoadFromAssemblyPath(String assemblyPath)
at System.Reflection.Assembly.LoadFile(String path)
at Modelling.EfCoreModelBuilder.Load(String assemblyPath) in C:\dev\GitHub\EFCorePowerTools\src\Core\efpt80.core\EFCoreModelBuilder.cs:line 104
at Modelling.EfCoreModelBuilder.GetOperations(String outputPath, String startupOutputPath) in C:\dev\GitHub\EFCorePowerTools\src\Core\efpt80.core\EFCoreModelBuilder.cs:line 89
at Modelling.EfCoreModelBuilder.BuildResult(String outputPath, String startupOutputPath, Boolean generateDdl) in C:\dev\GitHub\EFCorePowerTools\src\Core\efpt80.core\EFCoreModelBuilder.cs:line 35
at Modelling.EfCoreModelBuilder.GenerateDebugView(String outputPath, String startupOutputPath) in C:\dev\GitHub\EFCorePowerTools\src\Core\efpt80.core\EFCoreModelBuilder.cs:line 23
at Modelling.Program.Main(String[] args) in C:\dev\GitHub\EFCorePowerTools\src\Core\efpt80.core\Program.cs:line 39
at async Task EFCorePowerTools.Handlers.ModelAnalyzerHandler.GenerateAsync(string outputPath, Project project, GenerationType generationType)`
Stack traces
`System.InvalidOperationException: Error:
System.IO.FileLoadException: Could not load file or assembly 'C:\Projects\Umbraco\mymy.COM (Umbraco)\mymycms\bin\Debug\net9.0\mymycms.dll'. The assembly architecture is not compatible with the current process architecture.
File name: 'C:\Projects\Umbraco\mymy.COM (Umbraco)\mymycms\bin\Debug\net9.0\mymycms.dll'
at System.Runtime.Loader.AssemblyLoadContext.LoadFromAssemblyPath(String assemblyPath)
at System.Reflection.Assembly.LoadFile(String path)
at Modelling.EfCoreModelBuilder.Load(String assemblyPath) in C:\dev\GitHub\EFCorePowerTools\src\Core\efpt80.core\EFCoreModelBuilder.cs:line 104
at Modelling.EfCoreModelBuilder.GetOperations(String outputPath, String startupOutputPath) in C:\dev\GitHub\EFCorePowerTools\src\Core\efpt80.core\EFCoreModelBuilder.cs:line 89
at Modelling.EfCoreModelBuilder.BuildResult(String outputPath, String startupOutputPath, Boolean generateDdl) in C:\dev\GitHub\EFCorePowerTools\src\Core\efpt80.core\EFCoreModelBuilder.cs:line 35
at Modelling.EfCoreModelBuilder.GenerateDebugView(String outputPath, String startupOutputPath) in C:\dev\GitHub\EFCorePowerTools\src\Core\efpt80.core\EFCoreModelBuilder.cs:line 23
at Modelling.Program.Main(String[] args) in C:\dev\GitHub\EFCorePowerTools\src\Core\efpt80.core\Program.cs:line 39
at async Task EFCorePowerTools.Handlers.ModelAnalyzerHandler.GenerateAsync(string outputPath, Project project, GenerationType generationType)`
EF Core Power Tools version
2.6.1186
EF Core Power Tools CLI version
No response
Database provider
SQL Server (Express)
Target framework
.NET 9.0
IDE
Visual Studio Insiders 2026
Additional features in use
- T4 templates
- SQL Server .dacpac
- Handlebars template
Metadata
Metadata
Assignees
Labels
No labels