post build events

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Boni

    post build events

    Dear All,
    I am wondering, that I can't in C# have different post build events for
    debug and release. My goal is to copy different files after the build. If I
    build release I have to copy in other directory.
    Did I missed something,
    Thanks,
    Boni



  • Gabriel Lozano-Morán

    #2
    Re: post build events

    You could use the $(Configuration Name) macro to check the project
    configuration

    Gabriel Lozano-Morán


    Comment

    • Marcel van den Hof

      #3
      Re: post build events

      On Sun, 24 Apr 2005 12:55:25 +0200, Boni wrote:
      [color=blue]
      > Dear All,
      > I am wondering, that I can't in C# have different post build events for
      > debug and release. My goal is to copy different files after the build. If I
      > build release I have to copy in other directory.
      > Did I missed something,
      > Thanks,
      > Boni[/color]

      Hi Boni,

      I believe this is not possible with the VS.IDE. You might be better of
      using a tool like NANT (http://nant.sourceforge.net/) to accomplish just
      that.

      Kind regards,

      Marcel van den Hof

      Comment

      • Boni

        #4
        Re: post build events

        I did $(Configuration Name)_buid_even t.bat!
        Thanks, it worked great
        "Gabriel Lozano-Morán" <gabriel.lozano @no-spam.com> schrieb im Newsbeitrag
        news:%232K7eMMS FHA.248@TK2MSFT NGP15.phx.gbl.. .[color=blue]
        > You could use the $(Configuration Name) macro to check the project
        > configuration
        >
        > Gabriel Lozano-Morán
        >[/color]


        Comment

        Working...