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

前端 未结 4 1293
离开以前
离开以前 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:55

    I have just solved this by adding the following post build event command line to the .csproj file for MainGUI (project properties -> build events)

    copy $(SolutionDir)ControlsLib\bin\$(ConfigurationName)\Infragistics2*.dll $(TargetDir)
    

    I hadn't realised doing that was so easy actually...

提交回复
热议问题