Visual Studio: Multiple post-build commands?

后端 未结 10 1256
逝去的感伤
逝去的感伤 2020-12-13 16:47

Visual Studio 2008 lets me declare a command and attach it to the post-build event for a project. Like a lot of developers, I use it regularly to xcopy files to the applicat

10条回答
  •  甜味超标
    2020-12-13 17:21

    Adding to womp's answer:

    If you have multiple property sheets with something to do on the same build event you can do the following to chain the commands:

    %(Command)
    echo foo
    

    where %(Command) expands to the previous value of the command.

    Personally I do this for all build events, even if I currently do not have inherited commands, because this ensures there will be no problems if I add property sheets later on.

提交回复
热议问题