473,326 Members | 2,148 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

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

Nov 17 '05 #1
3 2210
You could use the $(ConfigurationName) macro to check the project
configuration

Gabriel Lozano-Morán
Nov 17 '05 #2
On Sun, 24 Apr 2005 12:55:25 +0200, Boni wrote:
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


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
Nov 17 '05 #3
I did $(ConfigurationName)_buid_event.bat!
Thanks, it worked great
"Gabriel Lozano-Morán" <ga************@no-spam.com> schrieb im Newsbeitrag
news:%2***************@TK2MSFTNGP15.phx.gbl...
You could use the $(ConfigurationName) macro to check the project
configuration

Gabriel Lozano-Morán

Nov 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: John | last post by:
Here is the current error that im getting when building my solution. The only thing i can think of is that i needed to install visual studio 6 after visual studio .net was already installed to...
1
by: matt_felzani | last post by:
We are noticing that for a Utility project that we have in VS.Net (C++) that the Post-Build step is being performed every time that the IDE finds the project as a dependency. While it does not take...
3
by: Loui Mercieca | last post by:
I want to write a script to be executed whenever i build my web application in 'release' mode. What it does is that it gets the newly generated dll and places it in another folder. I tried to use...
1
by: Arthur Dent | last post by:
Hello all, ... question for those who've been playing with the 2005 pre-releases: Does VB.NET have pre & post-build events in 2005 by any chance? This would be such a a great improvement. ...
4
by: Allan Ebdrup | last post by:
Hi I'm Using VS.Net 2003 and am trying to get the app.config file copied to the directory of the target dll by using a post build command. In Properties/Common Properties/Build Events/Post-build...
3
by: michael.lang | last post by:
I am using PostBuild events in a C# project to run some tasks, but only when in release configuration mode. The build events run perfectly as expected when run. The problem comes when I save the...
1
by: AlexZh | last post by:
Hi, I'd like to stop command line build by one project build failed. To do that I've created simple AddIn (see code below), that works fine for IDE and does not work for command line. In the AddIn...
1
by: Abhishek | last post by:
Hi All, I need to copy the dll and the tlb file that is build by the project to 2 different directory after the build is successfully complete. what do i add to the post build events in VS 2005...
3
by: =?Utf-8?B?Rmxhc2hwcm8=?= | last post by:
i have googled this question but cannot find an answer. i'm running windows vista and i'm using Visual Basic Express 2008. i know the build event button SHOULD be in under the compile tag but i...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shćllîpôpď 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.