Build/Test Issues

NCrunchCacheStoragePath error

Started by Stipe on 4,532 views

NCrunch Console Tool starting from the version v3.17.0.2 gives me this error:

ERROR: The NCrunchCacheStoragePath must be set when using the console tool. NCrunch needs to store its cache outside of the solution directory to function properly.

which results in
Unhandled Exception: System.IO.DirectoryNotFoundException: Could not find a part of the path ...\TestResultsInNUnitFormat.xml.

Any hints?

Thanks,
Stipe
Since version 3.15 the NCrunchCacheStoragePath option needs to be set. You can do this from the CLI parameters or in the referenced configuration. This
option always should be set when using the console tool under a CI system for the console tool to function
properly between different runs.
I have this option set in the ncrunch solution configuration. Is there any other way I need to set this? What changed in 3.15 because before we didn't have the issue?
Thanks for coming back so quickly. Would you mind trying to set the configuration from the CLI or the configuration file that is supplied to the console tool? I would like to make sure that that solves the problem.

In version 3.15 we added a check at the start of the console tool that checks if this option is set, we did this because not setting this could give a lot of unintended side effects (like broken impact detection).
Hi,

We had a closer look at this. We've found an issue with this and we will fix this. As a work around specifying the setting via the command line should work.

Thanks for bringing this to our attention!
Ok, thank you for the quick response.

Post a reply

Log in to reply.