MSBuild AfterBuild Step

后端 未结 1 950
不知归路
不知归路 2021-01-29 02:28

I have added the following code to a VisualC++ 2010 .vcxproj file just inside the first tag:


  &l         


        
1条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-29 02:48

    A project can have only one AfterBuild target. Placement is critical, make sure it appears after any directive so you can be sure it is last and the default one is overridden. Bump up the priority of the so you can always see it.

    
    
       ...
       
       ...
       
         
       
    
    

    Output:

    1>------ Build started: Project: ConsoleApplication317, Configuration: Debug Win32 ------
    1>  ConsoleApplication317.vcxproj -> C:\projects2\ConsoleApplication317\Debug\ConsoleApplication317.exe
    1>  It works
    ========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
    

    0 讨论(0)
提交回复
热议问题