Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. The Insider News
  4. twiddling my fingers wondering if anyone uses C++/C# to write pre/post build events in Visual Studio

twiddling my fingers wondering if anyone uses C++/C# to write pre/post build events in Visual Studio

Scheduled Pinned Locked Moved The Insider News
csharpc++visual-studiowindows-adminquestion
8 Posts 6 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    Ian Bell 2
    wrote on last edited by
    #1

    I'm waiting for a long compile to finish and fell 'deep' into pondering why I've only ever written PowerShell scripts, but not C++/C# console apps, for exclusive use in my many Visual Studio pre/post build events. Writing/debugging C++/C# console apps is considerably much easier than for PowerShell scripts and, aside from having established a seemingly 'bad' habit , I am now 'baffled' by my choice of doing things the 'harder' (i.e. PowerShell) way. I'm curious to know, given a choice, how many here use write C++/C# apps (instead of PowerShell scripts) for use in their pre/post build events?

    P M P R 4 Replies Last reply
    0
    • I Ian Bell 2

      I'm waiting for a long compile to finish and fell 'deep' into pondering why I've only ever written PowerShell scripts, but not C++/C# console apps, for exclusive use in my many Visual Studio pre/post build events. Writing/debugging C++/C# console apps is considerably much easier than for PowerShell scripts and, aside from having established a seemingly 'bad' habit , I am now 'baffled' by my choice of doing things the 'harder' (i.e. PowerShell) way. I'm curious to know, given a choice, how many here use write C++/C# apps (instead of PowerShell scripts) for use in their pre/post build events?

      P Offline
      P Offline
      PIEBALDconsult
      wrote on last edited by
      #2

      Yes. Here's one example: " Using the Utility from Visual Studio I designed this utility with the idea that it would be used in a pre-build event for a Visual Studio project. Open the project's property page, select the Build Events tab, there is a box for pre-build command lines. One of the shortcomings of that is that (by default) pre-build events run with the project's release\bin or debug\bin subdirectory as the working directory; you'll need to take that into account. The following command is an example of how a GenOmatic file in the project's directory may be referenced in a pre-build event: GenOmatic ..\..\MyEnum.xml " -- GenOmatic[^] I have several others that I use as well.

      1 Reply Last reply
      0
      • I Ian Bell 2

        I'm waiting for a long compile to finish and fell 'deep' into pondering why I've only ever written PowerShell scripts, but not C++/C# console apps, for exclusive use in my many Visual Studio pre/post build events. Writing/debugging C++/C# console apps is considerably much easier than for PowerShell scripts and, aside from having established a seemingly 'bad' habit , I am now 'baffled' by my choice of doing things the 'harder' (i.e. PowerShell) way. I'm curious to know, given a choice, how many here use write C++/C# apps (instead of PowerShell scripts) for use in their pre/post build events?

        M Offline
        M Offline
        Mike Baldini
        wrote on last edited by
        #3

        I had a rather large winforms application (70+ projects, 2+ million loc) that needed to have some XML transformations run, tests run, needed to be obfuscated, signed, packaged using InstallShield, and finally uploaded to a web server. I automated it all with a simple c# console application. I could have done everything in Powershell instead, but was just more familiar with c# at the time.

        Senior Software Engineer / Automotive Hacker "the fabric is down again...."

        1 Reply Last reply
        0
        • I Ian Bell 2

          I'm waiting for a long compile to finish and fell 'deep' into pondering why I've only ever written PowerShell scripts, but not C++/C# console apps, for exclusive use in my many Visual Studio pre/post build events. Writing/debugging C++/C# console apps is considerably much easier than for PowerShell scripts and, aside from having established a seemingly 'bad' habit , I am now 'baffled' by my choice of doing things the 'harder' (i.e. PowerShell) way. I'm curious to know, given a choice, how many here use write C++/C# apps (instead of PowerShell scripts) for use in their pre/post build events?

          P Offline
          P Offline
          Patrice T
          wrote on last edited by
          #4

          What is this doing in news forum ?

          Patrice “Everything should be made as simple as possible, but no simpler.” Albert Einstein

          I 1 Reply Last reply
          0
          • I Ian Bell 2

            I'm waiting for a long compile to finish and fell 'deep' into pondering why I've only ever written PowerShell scripts, but not C++/C# console apps, for exclusive use in my many Visual Studio pre/post build events. Writing/debugging C++/C# console apps is considerably much easier than for PowerShell scripts and, aside from having established a seemingly 'bad' habit , I am now 'baffled' by my choice of doing things the 'harder' (i.e. PowerShell) way. I'm curious to know, given a choice, how many here use write C++/C# apps (instead of PowerShell scripts) for use in their pre/post build events?

            R Offline
            R Offline
            Ron Anders
            wrote on last edited by
            #5

            I used VB6 to do some post install scripting because it was there, and quick. I could have used c but didn't. Prolly cause it was there but not as quick to bugger something up in a hurry.

            1 Reply Last reply
            0
            • P Patrice T

              What is this doing in news forum ?

              Patrice “Everything should be made as simple as possible, but no simpler.” Albert Einstein

              I Offline
              I Offline
              Ian Bell 2
              wrote on last edited by
              #6

              By your count, how many discussions here meet the criteria of "The Insider News is for breaking IT and Software development news"?

              P 1 Reply Last reply
              0
              • I Ian Bell 2

                By your count, how many discussions here meet the criteria of "The Insider News is for breaking IT and Software development news"?

                P Offline
                P Offline
                Pete OHanlon
                wrote on last edited by
                #7

                Well, this topic doesn't increase that by any. It would have been better posted in the Lounge.

                This space for rent

                I 1 Reply Last reply
                0
                • P Pete OHanlon

                  Well, this topic doesn't increase that by any. It would have been better posted in the Lounge.

                  This space for rent

                  I Offline
                  I Offline
                  Ian Bell 2
                  wrote on last edited by
                  #8

                  My apologies and I will do so in the future. To be honest, I routinely scan the comments in the news section and, given the abundance of off-topics, assumed my comment was just as appropriate in the news sections as the lounge section. Thanks for the correction and I'll keep this in mind for the next time. Cheers!

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups