https://msdn.microsoft.com/en-us/library/42x5kfw4(v=vs.120).aspx
http://www.c-sharpcorner.com/article/prepost-build-events-command-line-in-visual-studio/
Pre/Post build events are useful when we wish to perform some operations before/after a project is built. These operations are nothing but the Shell commands being used from the command line.
copy "$(TargetDir)*$(TargetExt)" "$(ProjectDir)..\library"
..\ means it goes one directory up and searches for folder library there.
Valid Statments
copy "D:\jenkins.war" $(SolutionDir)
copy "D:\jenkins.war" "$(SolutionDir)"
xcopy "D:\jenkins.war" "$(SolutionDir)"
copy "D:\jenkins.war"
"D:\MagicPlus\Download\Video\"
copy "D:\jenkins.war"
"D:\MagicPlus\Download\Video"
copy "$(TargetDir)*$(TargetExt)" "$(ProjectDir)sum\library"
robocopy command don’t work: it gives error
robocopy "D:\jenkins.war"
"$(SolutionDir)"
No comments:
Post a Comment