twiddling my fingers wondering if anyone uses C++/C# to write pre/post build events in Visual Studio
-
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?
-
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?
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.
-
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?
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...."
-
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?
-
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?
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.
-
What is this doing in news forum ?
Patrice “Everything should be made as simple as possible, but no simpler.” Albert Einstein
By your count, how many discussions here meet the criteria of "The Insider News is for breaking IT and Software development news"?
-
By your count, how many discussions here meet the criteria of "The Insider News is for breaking IT and Software development news"?
Well, this topic doesn't increase that by any. It would have been better posted in the Lounge.
This space for rent
-
Well, this topic doesn't increase that by any. It would have been better posted in the Lounge.
This space for rent
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!