Comments (20)
I've released DelegateDecompiler.EntityFrameworkCore.
from delegatedecompiler.
Is there any update or progress on .NET Core / .NET Standard 2.x support?
from delegatedecompiler.
👍 I appreciate you taking the time to figure out what it would take. I use this library like crazy and it's going to end up being a blocker for moving to .NET Core on a lot of my work-related projects (though that won't even be on the table for a long while).
from delegatedecompiler.
@jbogard, probably I will internalize the Mono.Reflection or switch to some other decompiler (Roslyn/Cecil/ILSpy - not sure yet).
from delegatedecompiler.
@jbogard @daveaglick I would happily accept a pull request
from delegatedecompiler.
@jbogard @hazzik looks like the assembly-saver branch of Mono.Reflection has some recent changes that address issues in vNext/Core specifically. Might be able to get @jbevain to put out a new release?
[https://github.com/jbevain/mono.reflection/tree/assembly-saver]
from delegatedecompiler.
@Rdefreitas I dont think that .NET Core has .GetMethodBody() method
from delegatedecompiler.
@hazzik if I'm not mistaken, GetMethodBody is internal but there is the MethodBody property of the MethodImplementation struct.
from delegatedecompiler.
@Rdefreitas System.Reflection.Metadata is a fully managed metadata reader, it's completely separate from the traditional System.Reflection.
If .NET Core doesn't have GetMethodBody()
, Mono.Reflection is going to be difficult to port.
from delegatedecompiler.
@jbevain, my apologies, it seems you're correct. I came across this issue in dotnet/corefx#4543, which mentions that .NET Native won't have access to retrieve MetadataTokens... I would assume this is the reason for the lack of GetMethodBody()
.
(@nguerrera - https://github.com/dotnet/corefx/issues/4543#issuecomment-157491151 ) You can use
GetMetadataToken()
from System.Reflection.TypeExtensions and then drop down to System.Reflection.Metadata to get the IL. I'll post a gist later tonight. Keep in mind that tokens will not be available on .NET Native if you're also expecting this to work there.
Having a windows-only version of Mono.Reflection would kind of defeat the purpose of even having Mono in the name. 👎 Although, maybe having a subproject that is temporarily limited wouldn't be all bad and would at least get the ball rolling (with a delay for cross-platform functionality)... perhaps Mono.Reflection.CoreFx. @hazzik, is DelegateDecompiler Mono-friendly or just using the lib?
Anyway, I was led down this road through a need to see @AutoMapper EF6 extensions ported to EF Core... I'm happy to contribute to make this happen, I just need to find the right starting point.
from delegatedecompiler.
I would also like to see .net core support for use with Automapper EF extensions and would be happy to help contribute if anyone can point in the right direction.
from delegatedecompiler.
@zsvanderlaan we're all waiting for .NET Standard 2.0/.NET Core 2.0 to drop. That's where GetMethodBody comes back. Then this will need to target netstandard20
.
from delegatedecompiler.
In case anyone else is not familiar with this, i did some research, and from what I understand .net core 2.0 will run on top of .net standard 2.0, which is cross platform. .net standard 2.0 is the framework layer where GetMethodBody is defined, and so once .net standard 2.0 is released (suspected May 10th at Build) the Delegate Decompiler library (and its Mono.Reflection dependency) should be able to target .net standard 2.0 instead of the full .net framework currently being referenced.
from delegatedecompiler.
Btw, I made a PR to support .NET Standard 2.0 to Mono.Reflection: jbevain/mono.reflection#16
from delegatedecompiler.
Hi guys, Are there any updates now that .NET Standard/Core 2.0 specifications are complete?
from delegatedecompiler.
@tb-mtg I'm waiting on Mono.Reflection dependency. However you can easily reference DelegateDecompiler/Mono.Reflection from .NET Standard 2.0 assembly using compatibility mode
from delegatedecompiler.
DelegateDecompiler.EntityFramework should reference Microsoft.EntityFrameworkCore for .NET Standard/Core 2.0 or better introduce new package DelegateDecompiler.EntityFrameworkCore?
from delegatedecompiler.
from delegatedecompiler.
Are you still waiting for Mono.Reflection dependency? Will that even happen this year?
I'm eagerly awaiting support for EF Core :)
from delegatedecompiler.
I had to release own version of Mono.Reflection to be able to proceed.
from delegatedecompiler.
Related Issues (20)
- Auto Detect ShouldDecompile members
- ArgumentException for a simple method HOT 1
- Decompiler does not remove transparent identifier expression on root level HOT 2
- Error decompiling unary operator Not for enum parameter
- DelegateDecompiler.EntityFrameworkCore .Net 5 support HOT 1
- NullReferenceException only dotcover test coverage runner HOT 8
- ArgumentException Type must not be ByRef under dotcover HOT 9
- InvalidOperationException on array of enums HOT 1
- No implementation of Decompile extension method for non-generic IQueryable
- Abstract property in hierachy with intermediate generic classes decompiled as default
- EntityFramework Core 6 (.NET6) HOT 1
- Exception using SelectMany
- No coercion operator is defined between types 'System.Int32' and 'System.Nullable`1[System.Boolean]'. - regression between 0.29.1 and 0.30.0 HOT 1
- Automatically decompile using a IDbContextOptionsExtension like LinqKit does? HOT 3
- Unit test failure HOT 3
- Bug: Cannot Decompile IQueryable<T> after using constrained generic when TInterface has multiple implementations HOT 5
- Delegate Decompiler with in-memory databases HOT 1
- Null reference error in TypeHierarchy.BuildChildren
- Performance regression from 0.31.0 to 0.32.0
- .net 8 or vs || HOT 1
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 delegatedecompiler.