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

Notification

Icon
Error

How to suppress AfterBuild
MikeWard
#1 Posted : Tuesday, May 24, 2016 4:27:22 PM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 10/19/2011(UTC)
Posts: 33
Location: Ann Arbor, MI

Thanks: 1 times
Was thanked: 4 time(s) in 4 post(s)
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?


MikeWard
#2 Posted : Tuesday, May 24, 2016 4:53:22 PM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 10/19/2011(UTC)
Posts: 33
Location: Ann Arbor, MI

Thanks: 1 times
Was thanked: 4 time(s) in 4 post(s)
1 user thanked MikeWard for this useful post.
Remco on 5/24/2016(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.019 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download