postbuild-event

How to execute a program on PostBuild event in parallel?

I managed to set the compiler to execute another program when the project is built/ran with the following directive in project options: call program.exe param1 param2 The problem is that the compiler executes "program.exe" and waits for it to terminate and THEN the project executable is ran. What I ask: How to set the compiler to run...

GWT Post build command in Eclipse

I am starting getting used to Eclipse, but I have much more experience with Visual Studio. In Visual Studio it is possible to run auto commands after the build has finished. Now I am creating a GWT project and several other projects at once in one solution (or workspace) in Eclipse. Some files which are compiled with the GWT project nee...

Search and replace in *.aspx,*.ascx files when publishing a Webapplication

Hi all I'm attempting to replace a pattern in all my .aspx and .ascx file when I Publish my Webapplication. When I am running the application locally, I don't care about the replace. But as soon as I need to Publish the solution I need a sequence of characters, let's say "ABC", replaced with "DEF" in all my .aspx and .ascx files. How ...

Visual Studio - Post-build event to merge .cs files

My target environment only accepts .cs files and complies them at run time. My project has gui.cs and 4 other class files. Its about 9000 lines of code. Is there a way to have all 5 files merged into 1 cs file as a post build event? ...

Post-Build event execution order problem in VS2008 Add-In

Hi, in my project I have defined a post-build step, where the linked executable is moved to another directory. Now I have written an addin for the Visual Studio, which handles the BuildEvents and do some actions on the linked executable after the build. My problem is, the post-build step of the Visual Studio is executed before the post-b...

Run Dotfuscator as a post build event

I'm using Dotfuscator in Visual Studio 2010. I want to run Dotfuscator as a post build event so every time I build a project Dotfuscator will run on the output DLL using a configuration I've created and I'll get a new Dotfuscated DLL without having to manually open Dotfuscator. After it will be obfuscated, I'll resign it (using sn.exe)...

VS2008 Post Build Event Not Raising Errors

I have some post build events in my project that copy files. The file copies are vital to my project working properly. I want those post build events to raise build errors if anything goes wrong. While testing a failure scenario, I found that failed copy commands are not raising errors. I do see warnings in the output window but no...

Creating shortcut to an exe file in C#

I have a program that when I build on release mode in visual studio it will copy the .exe file and all required file to a shared location for multiple users to access. Inside the folder that was copied i created automatically created a shortcut to the .exe file using C# when the project builds. Problem I want to be able to copy that ...

"Post build event error"

Hello all, I am using Visual Studio 2008 to build my projects. I often take existing sample code and edit it and toy around with it, as I am just learning and I'd like to advance my skill.. it's nice to have a template to work with. That being said, I often get the build error "Post build event failed". This is often accompanied by a ...

"tf.exe checkout" locks files although parameter /lock:none is used in post build

In a customer project, I need to copy a built dll to another place where it will be checked in and shared amongst different solutions. I am using a post build step to checkout the target file specifying the /lock:none parameter so that others will be able to create local release builds as well and then copy my new dll file over the old...

VS2008 post-build events: include directory

I have a data directory in my VS2008 Project that is "Excluded from Project". How can I use the Post-Build Event (Properties - Build Events) to have that directory included in the project output after compilation? ...

VS2008 post-build event batch file

I'm trying to execute a batch file to move a bunch of files around after a build so I've created a post-build event that looks like this: $(ProjectDir)CopyPlugins.bat $(ConfigurationName) The problem is that when Visual Studio tries to run the event I get the error that the process exited with code 9009 The problem appears to be that...

Visual Studio - Post Build Event - Throwing Errors

I've got a nice power-shell driven post-build script that does some magic mumbo-jumbo for pulling all our plugins into the correct location after they're compiled and sorting out thier dependencies with the master-project of the solution. My problem is, occasionally when I do something stupid, I can end up in a state where my script can...

What is the difference between a Custom Build Step and a Post-Build Event?

Both project settings allow me to execute custom commands. What are the benefits or drawbacks of each? ...

Are there any better ways to copy a native dll to the bin folder?

I have C# wrapper code that calls functions from a native (C++) dll. Currently, I can add a reference to the C# dll and have set the 'Copy Local' option to true. However the native dll, which is a dependency, cannot be added as a reference - so there is no 'Copy Local' option. I have tried the following approaches Using a post-build ...

Can Visual Studio Post Build Events be used with ClickOnce Publishing?

In Visual Studio 2008, can a the post build event be used with Click Once publishing? If so, how? Out of the box is looks like I can only use pre-build events and click once publishing seems to build the project to a different location, before the post build event is launched. ...