Build/Test Issues

How to suppress AfterBuild

Started by MikeWard on 5,099 views

I've got an AfterBuild step in my .csproj as follows:

```
<Target Name="AfterBuild">
<CallTarget Targets="ConcatenateVendorScripts" />
<CallTarget Targets="ConcatenateVendorCss" />
</Target>
```

Obviously, these steps concat files. They're not needed for CS unit tests. However, the "AfterBuild" targets reference files from the /node_modules folder.

OK, no problem, just include the folder. Problem: some of the paths are too long, build fails.

OK, include just specific files from /node_modules. Problem: NCrunch does let me reference subfolders or files in the /node_modules folder.

OK, exclude the POST build step in the settings. Problem: NCrunch does not honor suppressing the AfterBuild when the Post Build option is turned off.

OK, I'm stuck :)

Suggestions?


Found the answer in another post:

http://forum.ncrunch.net/yaf_postst193_Problem-building-a-project-with-custom-BeforeBuild-target.aspx

Post a reply

Log in to reply.