Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

NCrunch fails to build, seems confused by namespace
ryanoneill1970
#1 Posted : Thursday, January 29, 2015 4:49:36 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 1/29/2015(UTC)
Posts: 7
Location: United Kingdom

Thanks: 1 times
Was thanked: 2 time(s) in 2 post(s)
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,
ryanoneill1970
#2 Posted : Thursday, January 29, 2015 5:41:53 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 1/29/2015(UTC)
Posts: 7
Location: United Kingdom

Thanks: 1 times
Was thanked: 2 time(s) in 2 post(s)
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.
Remco
#3 Posted : Thursday, January 29, 2015 9:14:41 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,144

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
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.
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.029 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download