When MS build builds a solution, it will skip projects that are up to date. Is there a way to detect this in the subsequent targets to avoid doing additional unnecessary work?
The case example is one of my projects is creating a NuGet package after the build process targeting an AfterBuild target. If the build is skipped then we can conclude that Nuget package doesn't need to be replaced.
I've tried AfterBuild and CoreCompile
<Target Name="DebugProps" AfterTargets="CoreCompile">
<Message Importance="high" Text="Current Saved Properties are:"/>
Logfile output:
CoreCompile:
Skipping target "CoreCompile" because all output files are up-to-date with respect to the input files.
DebugProps:
Current Saved Properties are: