No Build Events?

Sysprogs forums Forums VisualGDB No Build Events?

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #22541
    sidprice
    Participant

    It appears that Visual GDB does not support Visual Studio Build Events, the settings are missing from the project properties.

    I need to run a batch file before each build and do not see a way to do that for VGDB projects. Is this possible?

    Sid

    #22542
    sidprice
    Participant

    Sorry, now I see them in the VGDB project properties under “Custom build steps”. I was looking in the VS project properties for them, which is where they are for a non-VGDB project.

    Sid

    #22675
    Thomas Coin
    Participant

    Hi,

    I also need to run a command before each build.

    Have you been able to run your script as a “pre build event” with the custom step menu ?
    The only thing I see are “post-compile xxx”, which run after the build.

    Thanks by advance

    #22677
    sidprice
    Participant

    Yes, my pre-build script works well. Here is a screen-shot.

    Sid

    Attachments:
    You must be logged in to view attached files.
    #22679
    Thomas Coin
    Participant

    Unfortunately I don’t have the “Custom build steps” TAB in my VisualGBD Project Properties … (Cf CAPTURE.PNG)

    I only have Custom Step from the “common” project property Window. (Cf CAPTURE2.PNG)

    Which Visual Studio version are you using ?

    Thanks by advance.

    Attachments:
    You must be logged in to view attached files.
    #22683
    support
    Keymaster

    Hi,

    Sorry, the “Custom Build Steps” are only supported in the Custom edition of VisualGDB or higher. If you are using a lower edition, you can achieve the same functionality by adding a custom MSBuild target manually, however the VisualGDB GUI for managing custom actions easily won’t be available.

    #22845
    Thomas Coin
    Participant

    Hi,

    Thanks, it did the trick by adding this :

       <Target Name="MyExeTarget" BeforeTargets="Build">
        <Exec Command="MyExe.exe -some args" />
      </Target>
    
    
Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.