MSBuild copy output from another project into the output of the current project

前端 未结 2 986
小鲜肉
小鲜肉 2020-12-18 04:41

I have a situation where I want to copy the output assembly from one project into the output directory of my target application using MSBuild, without hard-coding paths in m

2条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-18 05:20

    I have made this work, though I would love to find a cleaner solution that takes advanctage of the built-in parameters within MSBuild (like $(TargetDir), etc but to point at the project I want to grab the output for). Anyway, here is what I've done:

    
    
    
    

    I would love to see a cleaner solution, but this should do for now.

提交回复
热议问题