Hi,
Just posting a solution I had when my prebuild events were failing.
When NCrunch builds a project, it will copy the project into its own folder and attempts to build it.
However, NCrunch does not copy any of the other folders.
Since my Prebuild command attempts to use git and the project did not contain the .git directory, the Prebuild event would fail (.git was at the solution level).
The solution to prevent the build error was to add the following at the bottom of the build command:
Quote::: Report no error when command fails
SET ERRORLEVEL = 0
This will prevent the pre or post build events from returning an error, allowing NCrunch to build the project.