C#, post build step

Posted on 2011-10-10
Last Modified: 2013-12-16
I have this folder structure.
e:\my solution
e:\my solution\build
e:\my solution\project1
e:\my solution\project2
e:\my solution\project5

I would like each project to have a post build step that moves a copy of my dll-s to folder "my solution\build".
This script does not work
Copy $(TargetDir) $(SolutionDir)\build\
I have tried other variations.  Any suggestions?
Question by:wilfordrocks
    LVL 16

    Assisted Solution

    try this
    Copy /y $(OutDir)*.* $(SolutionDir)build
    LVL 35

    Accepted Solution

    xcopy /R/Y $(TargetDir)$(TargetFileName) $(SolutionDir)\build

    and make sure you build from the solution, not the individual project:

    an alternative to avoid issue above would be:
    xcopy /R/Y $(TargetDir)$(TargetFileName) $(ProjectDir)..\build


    Featured Post

    Live: Real-Time Solutions, Start Here

    Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

    Join & Write a Comment

    Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (…
    Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now