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



[Solved] - Build event fails because git directory is missing
#1 Posted : Friday, April 12, 2019 4:22:24 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 4/12/2019(UTC)
Posts: 1
Location: United States of America

Was thanked: 1 time(s) in 1 post(s)

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:

:: Report no error when command fails

This will prevent the pre or post build events from returning an error, allowing NCrunch to build the project.
1 user thanked Mykezero for this useful post.
Remco on 4/12/2019(UTC)
Users browsing this topic
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.017 seconds.