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,
Build/Test Issues
NCrunch fails to build, seems confused by namespace
Started by ryanoneill1970 on 3,006 views
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.
I'm happy now it's working again so no need to investigate, if you want more detail let me know.
Remco NCrunch Developer
#6891
29 Jan 2015 21:14 UTC
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.
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.