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

Notification

Icon
Error

Weird nuGet issues when NCrunch enabled and reloading a solution
mcse3010
#1 Posted : Sunday, June 4, 2017 5:17:22 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 6/4/2017(UTC)
Posts: 3
Location: United States of America

Hello! I have a weird error I've encountered (and it's really only recently just started doing this)... Where when I have nCrunch enabled and I load my solution -- it says certain projects nuGet configuration is invalid... if I manually unload and reload the particular project, it starts working... Also when performing updates with nuGet with nCrunch enabled, it says certain assemblies are in use and can't be removed without a restart (like EF). This forces me to restart VS to 'fix' the in-use assembly, and then I end up with the problem above.

The work around I've found is to disable nCrunch while doing nuGet configuration and then re-enable after all is said and done, but I didn't know if there's some setting I'm missing that will help with this issue?

I appreciate any thoughts you might have...

Thanks
Chadwick

PS I'm using VS2015 Community, with nCrunch 3.7.0.7
Remco
#2 Posted : Sunday, June 4, 2017 11:03:24 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,145

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
Hi Chadwick,

Thanks for posting!

Much of the synchronisation handling around projects and Nuget was adjusted in NCrunch v3.8. I recommend upgrading to see if this helps.

I am aware of a race condition that can cause a clash between VS trying to perform restore action on projects at the same time as NCrunch is loading them. In my tests, this has only appeared very rarely, but it is on the list of things to address.

I always recommend disabling NCrunch when performing a Nuget update. This is because Nuget sets off a cascade of different parallel actions that are extremely difficult to reliably track using any integration code, so NCrunch cannot properly respond to these actions or get out of the way in time.
mcse3010
#3 Posted : Sunday, June 4, 2017 11:05:42 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 6/4/2017(UTC)
Posts: 3
Location: United States of America

Thanks... Will do!
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.026 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download