MSBuild - how to copy files that may or may not exist?

后端 未结 3 1267
鱼传尺愫
鱼传尺愫 2021-02-03 23:02

I have a situation where I need to copy a few specific files in a MSBuild script, but they may or may not exist. If they don\'t exist it\'s fine, I don\'t need them then. But th

3条回答
  •  自闭症患者
    2021-02-03 23:31

    It looks like you can mark MySourceFiles as SkipUnchangedFiles="true" and it won't copy the files if they already exist.

提交回复
热议问题