Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Reflection issue v3.22
rodtan
#1 Posted : Friday, December 7, 2018 10:14:07 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 9/5/2018(UTC)
Posts: 4
Location: Norway

Thanks: 2 times
Seems this issue has turned up again: https://forum.ncrunch.ne...7_reflection-issue.aspx

I'm running version 3.22 and experiencing the exact same issue. I'm sure this was fixed in 3.10?
Remco
#2 Posted : Friday, December 7, 2018 11:24:48 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,976

Thanks: 930 times
Was thanked: 1257 time(s) in 1170 post(s)
Hi, thanks for sharing this issue.

Yes, v3.10 did fix the issue. Unfortunately the fix is a moving target, and MS do release new versions of .NET Core all the time. I'm not going to rule out the possibility that it has been rebroken due to platform level changes, or that there is an edge case that hasn't been considered.

I just wanted to check that you have the 'Copy referenced assemblies to workspace' setting turned on for all the projects in your solution?
rodtan
#3 Posted : Monday, December 10, 2018 12:27:25 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 9/5/2018(UTC)
Posts: 4
Location: Norway

Thanks: 2 times
Yes, 'Copy referenced assemblies to workspace' is set to true for all projects.
Remco
#4 Posted : Monday, December 10, 2018 10:45:53 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,976

Thanks: 930 times
Was thanked: 1257 time(s) in 1170 post(s)
rodtan;12907 wrote:
Yes, 'Copy referenced assemblies to workspace' is set to true for all projects.


Thanks for confirming this.

Where we've experienced it before, this problem has been tied to the structure of the relevant .deps file inside your project's build output directory. Normally, this .deps file should specify the dependencies that sit under the DependencyContext. We do quite a bit of processing on the file to allow us to compartmentalise the build system but still have the runtime environment behave more or less the same as it would normally.

The unfortunate problem with the dependency structure detailed in this file is that it's extremely complex, to the point where without a scenario demonstrating the problem, we really have no hope of being able to track it down or resolve it.

If you're able to build a sample solution to reproduce the issue you're seeing here, I should be able to pull things apart and figure it out. You're welcome to submit small test solutions through the NCrunch contact form.
1 user thanked Remco for this useful post.
rodtan on 1/9/2019(UTC)
rodtan
#5 Posted : Wednesday, December 19, 2018 11:21:37 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 9/5/2018(UTC)
Posts: 4
Location: Norway

Thanks: 2 times
Thanks! I've submitted a test solution now, took a while to find the time. :)
Remco
#6 Posted : Wednesday, December 19, 2018 11:30:07 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,976

Thanks: 930 times
Was thanked: 1257 time(s) in 1170 post(s)
Thanks! I'll take a look at get back to you as soon as I have more info (or a fix).
1 user thanked Remco for this useful post.
rodtan on 1/9/2019(UTC)
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.040 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download