SlowCheetah executes after post-build events

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

    If you need to copy/move other .config files (other than web.config) around after the build before publishing here is how it can be done with Visual Studio 2013 (I didn't test it on earlier versions). This section can be added at the end of the .csproj file right before the closing tag and it'll be fired just before MSDeploy starts the Publishing process.

    
        
    
    

    The company I work for purchased a third party product that needs to have a .config files in the bin folder along with its assembly in order to work.

    At the same time we need to process the product's .config file and be able to move it to the bin folder after transformations.

    The $(IntermediateOutputPath)Package\PackageTmp folder contains the whole application that will be copied over the target server.

提交回复
热议问题