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

Notification

Icon
Error

Customize location of NCrunchTemp_* files instead of project directory
nayan
#1 Posted : Saturday, April 21, 2018 2:06:52 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 5/14/2015(UTC)
Posts: 4
Location: United States of America

Thanks: 1 times
Was thanked: 1 time(s) in 1 post(s)
Hi,

Is it possible to customize the location of NCrunchTemp_* files to a temp folder ?

Context: we have a file system watcher which looks at changes to a directory to determine whether to rebuild a project. NCrunch generating a bunch of files under project directory interferes with the watcher and causes over builds.

The following page doesn't have any information related to that - http://www.ncrunch.net/d...nch-with-source-control

Thanks,
Nayan
Remco
#2 Posted : Saturday, April 21, 2018 3:19:29 AM(UTC)
Rank: NCrunch Developer

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

Thanks: 961 times
Was thanked: 1294 time(s) in 1200 post(s)
Hi Nayan,

Thanks for posting.

Unfortunately, this is the one file that we cannot ever move.

The NCrunchTemp files are used by NCrunch during the loading of projects. This involves loading the project XML into MSBuild, and executing build targets within the standard MS platform (and 3rd party tools if they're used) to gain information about the project and its dependencies.

The entire platform and all other build targets are designed under the assumption that the project file is collocated with its source files. This means it is impossible to interrogate the platform for information on the project after it's been moved out of its location. It also isn't possible for us to use the project file in its original form, and MSBuild cannot execute targets in a project file that doesn't exist on disk. So basically we're boxed in by technical limitations with no other feasible options.

A warning about using a FileSystemWatcher targeting the project file directory: VS does some crazy stuff in these directories. It takes quite a sophisticated system to identify what is actually a real source file change and what is just noise created from the IDE or associated toolsets. We've had to do this ourselves in NCrunch, and it's been quite a painful process. If you have other options I recommend looking into them.
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.023 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download