Visual Studio 2008 - Moving files at build to bin/

前端 未结 1 900
被撕碎了的回忆
被撕碎了的回忆 2020-12-16 16:07

EDIT: This is a VS2008 app written in C#.

So I have a folder in my solution called

_lib/ 

It\'s where I keep my DL

相关标签:
1条回答
  • 2020-12-16 16:55

    Try following these steps in Visual Studio:

    • Expand the project tree concerned

    • Double click the Properties element

    • In the opened window click the Build Events tab

    • In the Post-build event command line text area place this:

      xcopy "$(ProjectDir)_lib\file.ext" "$(ProjectDir)bin\$(ConfigurationName)"
      
    • Open the expected output folder alongside Visual Studio

    • Hit CTRL+Shift+B to make sure everything is saved and build

    • Feel the sense of achievement well up inside you as your file appears

    • :)

    Oh, and you can now set Copy to output directory to Do not copy.

    0 讨论(0)
提交回复
热议问题