Monday, March 5, 2018

visual studio build event : prebuild and postbuild


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"



invalid
robocopy command don’t work: it gives error
robocopy "D:\jenkins.war" "$(SolutionDir)"

No comments:

Post a Comment

JMeter Simple Controller

  Simple Controller is just a  container  for user request.