close
使用 $(SolutionPath)、$(SolutionName)等開頭的marco,可在評估值看到實際值
使用 %(RootDir)、 %(RecursiveDir)等開頭的macro,需使用echo 印出來
example:
echo "test Start"
echo "(ProjectDir)=" $(ProjectDir)
echo "(SolutionDir)=" $(SolutionDir)
echo "(ProjectExt)=" $(ProjectExt)
echo "(RootDir)" = %(RootDir)
echo "(RecursiveDir)=" %(RecursiveDir)
echo "(FullPath)= %(FullPath)
echo "(Filename)=" %(Filename)
echo "(Directory)=" %(Directory)
copy $(TargetPath) $(SolutionDir)bin
$(SolutionPath)
$(SolutionName)
VC 2017:(專案->屬性->建置事件->建置後事件)
VC6++ :(project settings-> Post-build step)
ref:
https://msdn.microsoft.com/en-us/library/c02as0cs.aspx
全站熱搜
留言列表