Visual Studio: Multiple post-build commands?

后端 未结 10 1254
逝去的感伤
逝去的感伤 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:26

    The approach suggested by womp works in Visual Studio 2015/2017 (Windows), but doesn't work in Visual Studio for Mac (Preview), which seems to execute only the first of the commands. The only approach that I found working in both Mac and Windows versions of Visual Studio was chaining 2 MSBuild commands:

    
    
    
    
    
    
    

    The above example uses "AfterResolveReferences" event but should obviously work for PostBuild event too.

提交回复
热议问题