SlowCheetah executes after post-build events

后端 未结 4 531
孤独总比滥情好
孤独总比滥情好 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:54

    Alexey's answer leads to the correct solution but here it is in full:

    • Right-click your project and select Unload Project
    • Now right-click the project and select Edit [your project name].csproj
    • Scroll to the bottom and uncomment the target named AfterBuild and add this attribute AfterTargets="TransformAllFiles"
    • Move your post build actions into this target using the Exec command:

    An example:

    
     
    
    

提交回复
热议问题