Comments (9)
This code is more appropriate if you have access to EnvDTE: https://github.com/aspnet/EntityFrameworkCore/blob/dev/src/EFCore.Tools/tools/EntityFrameworkCore.psm1#L757-L872
from efcorepowertools.
I do not, but thanks
from efcorepowertools.
@bricelam I actually do have access to EnvDTE, thanks for the hint!
from efcorepowertools.
@bricelam Does this mean I MUST intall EFCore.Design 2.2.4 in order to make this work? (It works if I do)
dotnet exec --depsfile "C:\Users\Erik\Downloads\ConsoleApp3\ConsoleApp3\bin\Debug\netcoreapp2.2\ConsoleApp3.deps.json" --additionalprobingpath "C:\Users\Erik\.nuget\packages" --additionalprobingpath "C:\Program Files\dotnet\sdk\NuGetFallbackFolder" --runtimeconfig "C:\Users\Erik\Downloads\ConsoleApp3\ConsoleApp3\bin\Debug\netcoreapp2.2\ConsoleApp3.runtimeconfig.json" "C:\Users\Erik\AppData\Local\Temp\efpt\efpt.dll" "C:\Users\Erik\Downloads\ConsoleApp3\ConsoleApp3\bin\Debug\netcoreapp2.2\ConsoleApp3.dll"
Error:
System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.EntityFrameworkCore.Design, Version=2.2.4.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. The system cannot find the file specified.
File name: 'Microsoft.EntityFrameworkCore.Design, Version=2.2.4.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'
at ReverseEngineer20.EfCoreModelBuilder.BuildResult(String outputPath, Boolean generateDdl)
at ReverseEngineer20.Program.Main(String[] args) in C:\Code\EFCorePowerTools\src\GUI\efpt\Program.cs:line 44
from efcorepowertools.
All dependencies of efpt.dll must be installed in the app. I think you can relax assembly version requirements by hooking AppDomain.CurrentDomain.AssemblyResolve
:
AppDomain.CurrentDomain.AssemblyResolve += (sender, args) =>
{
var fullName = new AssemblyName(args.Name);
// Ignore Version, Culture, and PublicKeyToken
return Assembly.Load(fullName.Name);
}
from efcorepowertools.
Thanks, just now I refer to version 2.1.0 and 2.2.0 of EfCore.Design, and it seems to work fine.
from efcorepowertools.
Does AppDomain exist in .NET Core??
from efcorepowertools.
Parts of it were added to 2.0. You can't create new ones though, so there is only ever one app domain per process.
from efcorepowertools.
As an alternative they've added custom load contexts and enabled unloading assemblies.
from efcorepowertools.
Related Issues (20)
- [Feature] Map simple postgress stored procedures
- Add script generation to migrations tool HOT 6
- [Question] Compare DbContext to Database Using CLI HOT 4
- [Feature request] Add refresh option to rightclick csproj HOT 11
- Drop "Migrations tool (preview)" - built into VS now
- Add support for Fiebird EF Core 8 provider
- Sync vsct files
- EFCore Power Pack VSIX Failed to install (Extension Not signed) HOT 2
- Test new build tools
- How to add a new datasource support which has efcore integration HOT 8
- Support for Postgres version 10 (column p.prokind does not exist) HOT 25
- After project update to .Net Core 8 - calling MS SQL Stored Procs result in "Cannot create a DbSet" HOT 5
- "Failed to find or load the registered .Net Framework Data Provider". HOT 2
- Can't Custom T4 Template Path HOT 2
- [Feature request] Description for navigation property HOT 5
- Multiple result sets - Question HOT 4
- Unable to do "Update Database" in Migrations Tool dialog HOT 5
- [Feature] Map TVP parameters to a class, not just a DataTable HOT 12
- Reverse engineering a non-nullable bit column with DEFAULT constraint incorrectly ignores the default value HOT 2
- [Bug] CLI column removal check is too restricitive HOT 20
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.