How to make MSBuild to automatically copy all indirect references to output (bin) folder

后端 未结 2 1100
再見小時候
再見小時候 2020-12-14 07:32

Subj.

\"Automatically\" is essential here. References from GAC must not be copied.

I\'ve seen e.g. VS2008.NET: Getting a referenced project’s dependencies to

相关标签:
2条回答
  • 2020-12-14 07:39

    For C++ projects, i.e. *.vcxproj set the <OutDir> property.

    for C# projects, i.e. *.csproj set the <OutputPath> property.

    Make sure nothing overwrites those properties. In all my years doing builds for major, large products, I've never had to do anything different. If you have to do any other clever hack, you are surely doing something wrong.

    0 讨论(0)
  • 2020-12-14 07:52

    use post build event
    EDIT

    XCOPY c:/additionlib $(OutDir)
    
    0 讨论(0)
提交回复
热议问题