SlowCheetah executes after post-build events

后端 未结 4 527
孤独总比滥情好
孤独总比滥情好 2021-01-19 03:47

I use SlowCheetah to transform my app.configs. I have a multi-project solution where one of the projects executes a post-build event where the output of the bin is copied el

4条回答
  •  野的像风
    2021-01-19 03:59

    If you are using msbuild 4.0 for building your projects - you can hook to slowcheetah targets with new AfterTargets BeforeTargets attributes.

    I dont know what exactly target name you want to hook after but this code could gave you base concept how to do this

    
        
                
        
    
    

    Edited: I installed SlowCheetah and found that AfterTargets attribute should be "TransformAllFiles". Just set up your target dependency AfterTargets="TransformAllFiles"

提交回复
热议问题