Copy files to output directory using csproj dotnetcore

前端 未结 7 1702
猫巷女王i
猫巷女王i 2020-11-29 20:54

So my issue is pretty simple. I have some files that I want to be copied to the build output directory whether it is a debug build or a release publish. All of the informati

7条回答
  •  自闭症患者
    2020-11-29 21:09

    
        xcopy "$(ProjectDir)Xml" "$(ProjectDir)$(OutDir)Xml" /S /F /I /R /Y
    
    

    or

    
        copy /Y "$(ProjectDir)MyXml.xml" "$(ProjectDir)$(OutDir)Xml"
    
    

提交回复
热议问题