Binary Dependencies in Visual Studio Projects

I have a native binary dependency for my C # solution, which is included in the Debug and Release options, and I'm trying to figure out how to organize this in the best way so that (1) It ends with the build output and is detected when performing unit tests (2) It lives under the verification directory in the control source (3) The correct version (debug / release) is copied for each assembly configuration

I look

Solution  
    Libs  
        MyLibrary  
            Debug/x86/foo.dll  
            Release/x86/foo.dll   
    MyProject  
        src/com/acme/MyApplication.cs  

MyProject MyLibrary Links

and I would like the build folders to look like this:

Solution/MyProject/bin/Debug/  
    x86/foo.dll <-- copied from MyLibrary/Debug  
    MyApplication.exe  
Solution/MyProject/bin/Release/
    x86/foo.dll <-- copied from MyLibrary/Release  
    MyApplication.exe  

I am trying to do this without a special msbuild file - everything will ideally be built from solution and project files.

Anyone have any ideas how to do this? (or suggestions on how to reorganize sources to achieve something similar?)

, (Library_Debug, Library_Release) .

;)

+3
1

. , , , , temp dll.

+2

Source: https://habr.com/ru/post/1705517/


All Articles