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

Notification

Icon
Error

NCrunch is trying to compile HTML!
srobertjames
#1 Posted : Tuesday, December 25, 2012 3:30:16 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 12/25/2012(UTC)
Posts: 5

Was thanked: 2 time(s) in 2 post(s)
My project ( a HTML parser) has a folder with numerous HTML files used as test cases.
VS is set to to Build Action: Content. Basically, they stay there and are available for tests, but that's it.

However, NCrunch tries to compile them (as HTML)! Since many of the files are intentionally malformed, it gives me hundreds and hundreds of errors in the errors list. This is despite the fact that all tests pass.

How can I tell NCrunch to _not_ build those files? Or better yet, follow VS Build Action: If it's set to Content, don't build it.
Remco
#2 Posted : Tuesday, December 25, 2012 10:44:44 PM(UTC)
Rank: NCrunch Developer

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

Thanks: 957 times
Was thanked: 1286 time(s) in 1193 post(s)
Hi, thanks for posting!

NCrunch should only be executing a normal build process against your project. This would be the same as just running a command-line MSBuild against the project file itself - so the errors are coming from your build process rather than NCrunch itself.

Do you have any steps in your build process that might produce this kind of output? You can roughly reproduce the build logic of NCrunch by going to the project directory and running msbuild.exe. Note that NCrunch will, however, automatically suppress pre/post build events (this is configurable in the configuration pane) - so if you're using these events to somehow disable a build step, NCrunch won't be running them by default.


Cheers,

Remco
srobertjames
#3 Posted : Wednesday, December 26, 2012 9:26:59 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 12/25/2012(UTC)
Posts: 5

Was thanked: 2 time(s) in 2 post(s)
Thanks, with the information you gave I was able to fix the problem.
1 user thanked srobertjames for this useful post.
Remco on 12/26/2012(UTC)
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.028 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download