Build/Test Issues

Does NCrunch support Probing paths?

Started by rubik on 1,652 views

Hi,

I'm new to NCrunch and trying to determine if it's a good fit for my team. I'm finding there are a lot of configuration options, but I can't seem to find the right one to make it work for my projects.

As background, for various reasons we move all the referenced dll, pdb, and xml files from our output directory into a library folder. This is accomplished by setting
  <probing privatePath="library" />

in the app.config. This keeps our output folders cleaner, as our end users have to muck about a bit in with various configuration settings to get our product running. This doesn't seem to have any downsides in Visual Studio, as it easily finds the relevant files for debugging or whatever else.

In my testing, it doesn't appear NCrunch is capable of honoring the probing setting, and therefore won't run without me restructuring my solution. Am I missing a flag somewhere?

Example File Hierarchy:

MySolution/
  MyExecutableProject1/
    bin/
      debug/
        MyExecutable.exe
        library/
          MyExecutable.pdb
          MyDependency.dll
          MyDependency.pdb
          externalDependency.dll
  MyDependency/
    bin/
      debug/
        MyDependency.dll
        library/
          MyDependency.pdb

Edited

Hi, thanks for posting!

This particular feature isn't supported by NCrunch, as it completely breaks the referencing system we use to short-circuit the builds, which allows them to complete in a fraction of their normal time.

Sorry, other than restructuring your referencing, I can't think of an effective workaround for this without manually loading the assemblies at runtime using Assembly.LoadFrom inside your test code (which would completely negate the purpose of the probing path).

Post a reply

Log in to reply.