Msbuild copy to several locations based on list of destination parameter?

前端 未结 4 1905
-上瘾入骨i
-上瘾入骨i 2021-01-12 11:04

I got a directory I want to copy to a number of locations.

Say I have

  • home.aspx

I want to copy it to

  • abc/home.aspx
4条回答
  •  长发绾君心
    2021-01-12 11:25

    Have an itemgroup where you build up this list of destinations ("abc..., etc). Then invoke the copy task with this list (@Destination).

    I'm sure you'll find plenty of examples if you search for it. http://keithhill.spaces.live.com/?_c11_BlogPart_BlogPart=blogview&_c=BlogPart&partqs=cat%3dMSBuild

提交回复
热议问题