Daily Usage Issues

NCrunch is trying to compile HTML!

Started by srobertjames on 6,613 views

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.
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
Thanks, with the information you gave I was able to fix the problem.

Post a reply

Log in to reply.