I am using the following to sign my output dll.
The problem is that this makes signing to run every time the build is done which kills incremental build.
I tried using Inputs="$(TargetPath)" Outputs="$(TargetPath)"
, but this doesn't run sign task at all.
A possible solution is to compile into different folder and then copy with signing which makes this more cumbersome.
Is there something simpler?
<Target Name="Sign" AfterTargets="Build">
<Exec Command="signtool sign /f "$(SolutionDir)my.pfx" /p password /t http://timestamp.verisign.com/scripts/timstamp.dll "$(TargetPath)"" />
</Target>