MsBuild copy file after build

前端 未结 3 1982
忘掉有多难
忘掉有多难 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:45

    You have to specify the full path. I suspect the MsBuild copy task is running from the "Default path" of Visual Studio, and the file can not be found. Also, you most likely want the file to end up in the build target directory.

    
        
    
    

提交回复
热议问题