I'm trying to set up a third party library's signing tool as an external tool. The arguments are supposed to be as follows:
sign.exe "c:\projectdir\bin\debug\exename.exe" "c:\projectdir\bin\debug\exename.lic"
I have the arguments configured like this:
$(TargetPath) $(TargetDir)$(TargetName).lic
It works, but it points to \obj\debug
instead of \bin\debug
. Is there a way to either copy the resulting file to the \bin\debug
folder or have file generated copied from \obj\debug
to bin\debug
? I've looked at the documentation here, but I don't see any way to do it.
I figured it out by opening the dialog window and playing with the parameters. The following achieves what I want. Interestingly, Visual Studio 2010 is smart about putting in the slashes/periods when necessary to make a sane path. Impressive!
$(BinDir)$(TargetName)$(TargetExt) $(BinDir)$(TargetName).lic
Incidentally, the dialog window is WAY too small and non-sizable. A quick Google search turned up this tool from this Superuser question. VERY handy for this particular issue...