Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

System.Reflection.TargetParameterCountException #10

Open
sekulicb opened this issue Apr 7, 2020 · 4 comments
Open

System.Reflection.TargetParameterCountException #10

sekulicb opened this issue Apr 7, 2020 · 4 comments
Assignees
Labels
question Further information is requested

Comments

@sekulicb
Copy link

sekulicb commented Apr 7, 2020

Hi. Out of the blue, now I get exception: System.Reflection.TargetParameterCountException with message: Parameter count mismatch. The library was working fine for couple of months, but now these are thrown when comparing custom types, and collections of custom types. Nothing changed when it comes to the part that is comparing objects. I don't understand what could cause this.

output window:

Exception thrown: 'System.Reflection.TargetParameterCountException' in System.Private.CoreLib.dll
Exception thrown: 'System.Reflection.TargetParameterCountException' in TypeSupport.dll

@sekulicb
Copy link
Author

sekulicb commented Apr 7, 2020

Looks like the problem was in "Just my code" option in Visual Studio. I don't remember why I enabled it, but again why does the library throws so many exceptions ?

@replaysMike
Copy link
Owner

that's a really good question, I'll take a look and see if I can reproduce this

@replaysMike
Copy link
Owner

if you are using .Net Core 3, it's possible this is due to changes in that particular runtime. The last AnyDiff update included some changes to address breaking changes the .net core team introduced. There are differences with IEnumerable<> as well as supporting libraries such as TypeSupport which is required by AnyDiff.

@replaysMike replaysMike self-assigned this Apr 22, 2020
@replaysMike replaysMike added the question Further information is requested label Apr 22, 2020
@andyesys
Copy link

I'm using .Net Core 3.1 and I get those Exceptions as well, which really slow down the Diff.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants