Skip to content

Conversation

@jamiehumphries
Copy link
Contributor

While NCrunch is running it creates little temporary files in the pattern nCrunchTemp_*. These are automatically cleaned up, but a badly timed git status or git add -A can catch them momentarily.

Unfortunately I can't find any official documentation that discusses these files, but here are a few examples of public GitHub repos were people have added an ignore rule like this:

and some mention of the files on NCrunch forums:

@shiftkey
Copy link
Member

shiftkey commented Jul 2, 2015

ping @remcomulder - a couple of questions before I merge this:

  • can I get a 👍 that this is intended behaviour and not a bug?
  • and if that's the case, what's the best way to get this reflected in the docs?

@remcomulder
Copy link

NCrunch generates these temporary files to work around the limitations of MSBuild while loading projects. Under normal operation, they only exist for a couple of seconds and are usually immediately removed. Sometimes a critically timed crash or source control operation can lead to the files being noticed. They should not be submitted to source control. I've just now updated the NCrunch documentation accordingly.

@jamiehumphries
Copy link
Contributor Author

Cool, thanks @remcomulder! That docs link then (for future thread visitors): http://www.ncrunch.net/documentation/considerations-and-constraints_using-ncrunch-with-source-control

@shiftkey
Copy link
Member

shiftkey commented Jul 2, 2015

@remcomulter fantastic, thanks for the speedy response!

shiftkey added a commit that referenced this pull request Jul 2, 2015
Ignore NCrunch temporary files.
@shiftkey shiftkey merged commit a2f49b7 into github:master Jul 2, 2015
peterblazejewicz added a commit to peterblazejewicz/generator-aspnet that referenced this pull request Jan 6, 2016
This commit updates file state with upstream project.
Thanks!
u9E9F pushed a commit to u9E9F/gitignore that referenced this pull request Jul 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants