MsBuild copy file after build

前端 未结 3 1995
忘掉有多难
忘掉有多难 2020-12-15 18:20

I want to copy an xml file from the main directory to bin\\Debug after building the project, but my solution doesn\'t work. I edited .csproj file a

3条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-15 18:46

    Is the xml file in your project? Then one of its properties is CopyToOutputDirectory. Set it to CopyAlways and when the project builds the file will be copied out to bin\debug.

提交回复
热议问题