Build/Test Issues

NCrunch fails to build, seems confused by namespace

Started by ryanoneill1970 on 3,006 views

Created a new web api project from File->New, chose WebApi and ticked 'add unit tests'.

Whatever namespace you choose for the web project (for example, MyWebUi) then the template will create another project named MyWebUi.Tests.

This compiles but NCrunch does not like the namespace confusion in the new tests and I can't see how to work around this.

I've tried adding global:: to the front of the using statement and it still compiles, but NCrunch still fails to build.

Tried to attach a screenshot but can't upload images.

Thanks in advance,
After telling NCrunch to rebuild (via the toolbar) this seems to be gone, so it may just be a 'new project' cache thing.

I'm happy now it's working again so no need to investigate, if you want more detail let me know.
Hi, thanks for sharing this issue.

Sometimes when adding templates or performing very large refactorings, the IDE makes a large number of frequent changes to the codebase. I believe that a race condition may exist somewhere in the way these changes are reported, and occasionally NCrunch misses a change. A reset will always fix this.

Post a reply

Log in to reply.