VS2008.NET: Getting a referenced project's dependencies to copy to main project's bin folder

前端 未结 4 1337
离开以前
离开以前 2021-01-18 08:28

Let\'s assume I have a C# Winforms project, MainGUI.

It references another project in the same solution, ControlsLib.

ControlsLib references a third party co

4条回答
  •  佛祖请我去吃肉
    2021-01-18 08:49

    You would need to add a link to the necessary files from the UI project (MainGUI) and set them to copy to the output folder from there. The inbuilt packaging tools do (IIRC) cascade these correctly, but for external tools I expect you'll need to do it manually.

    On my build server, I use a script that investigates references, and adds in all the descendent references just before it is built (by editing the csproj files as xml)... the code is not great, but it does the job.

提交回复
热议问题