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

Notification

Icon
Error

NCrunch holds open handles to nuget package folders
Tim__
#1 Posted : Tuesday, March 22, 2016 10:58:27 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 7/29/2015(UTC)
Posts: 6

Thanks: 1 times
Was thanked: 1 time(s) in 1 post(s)
Often when I update NuGet packages for a solution, I find that the previous version of the packages cannot be deleted from the packages folder without a restart of visual studio.

I used Sysinternals Process Explorer to look for open handles within the packages folder of the solution and found that the NCrunch EngineHost process contains open handles to these folders.

Is this normal behaviour?



Remco
#2 Posted : Tuesday, March 22, 2016 11:02:26 PM(UTC)
Rank: NCrunch Developer

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

Thanks: 964 times
Was thanked: 1296 time(s) in 1202 post(s)
Hi Tim,

Yes, sadly, this is normal behaviour. NCrunch needs to watch the directories of all dependencies to pick up on file system changes .. and this has a side-effect of locking them at root.

Best practice is to always disable NCrunch when performing Nuget updates. This is because the way in which Nuget updates project files and references can cause consistency issues that make the engine desync from the foreground solution. If the engine is disabled, the packages directory will unlocked.
Tim__
#3 Posted : Tuesday, March 22, 2016 11:04:00 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 7/29/2015(UTC)
Posts: 6

Thanks: 1 times
Was thanked: 1 time(s) in 1 post(s)
Thanks for the information Remco, I will disable NCrunch from now on before performing updates.
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.022 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download