473,386 Members | 1,720 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,386 software developers and data experts.

Project Custom Build Setup, associated file?

In VS/VC 2003:

Simple question: for the Custom Build Step for the project (right click the
project in the Solution Explorer, select "Properties", select the "Custom
Build Step" in the "Configuration Properties" tree at the left, then select
"General" under "Custom Build Step"), what is the implicitly dependent file?

My situation is, there is a file I would like to copy after the build; but,
only if it has changed. I've added a "copy file destinationdir" to the
command line, added "destinationdir\file" to the outputs, and added "file" to
the additional dependencies. But, the custom build step is run every time,
even though my source file has the same date as the destination file (meaning
VS wants to build whenever I debug).

I don't want integrated revision control to pick this file up; so, I don't
want it as part of the project (i.e. adding "destinationdir\file" to my
project files is something I don't want to do).

I've monitored devenv.exe with Filemon and it does open "file" then
"destinationdir\file" before executing my command line; so, there must be
some other file Visual Studio is using as a dependency when deciding whether
the Custom Build command line needs to executed.
Dec 21 '05 #1
2 1720
Hi peter,
You should use PostBuild event (Configuration properties->Build
Events->Post-build event).

I always create a BAT file and call this bat file in the Post-build event.

--
Vince

Dec 22 '05 #2
That performs the same functionality as Custom Build Step; except Post-build
Event doesn't have an "Additional Dependencies" property and an "Outputs"
Property that it ignores, like Custom Build Step.

"Vince Yuan" wrote:
Hi peter,
You should use PostBuild event (Configuration properties->Build
Events->Post-build event).

I always create a BAT file and call this bat file in the Post-build event.


Dec 22 '05 #3

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

Similar topics

0
by: Jose Vicente Nunez Z | last post by:
Greetings, I wrote a couple of custom dummy extensions in Python (one a pure Python and the other a C) and i managed to compile and install them without a problem: $ make python2 setup.py...
5
by: Arun Bhalla | last post by:
I'm working with VS.NET 2003 and .NET 1.1 (not SP1) on Windows XP SP1. My application is using the Windows Installer Bootstrap. (I may have also installed a module which detects requirements (.NET...
0
by: Adam Clauss | last post by:
I have a C++ COM Addin I wrote for Outlook (2002) using VS.Net 2002. Having completed it, I am now looking to create a setup project and install it on another machine. I created a setup project...
3
by: | last post by:
I have created a web setup project for my ASP.NET application that works fine. Also, I have followed the instructions for using a custom action to launch a web page after the installation is...
4
by: Howard Kaikow | last post by:
When I build a setup project, the dependency in the setup project is tied to the version in which it was built. Is there a way to build a setup project that can be used in both versions of the...
5
by: Simon Verona | last post by:
I have an installer project for my VB.net application which as a custom action runs a silent installation of a third party software product. This however, generates an error if the application is...
0
by: gunimpi | last post by:
http://www.vbforums.com/showthread.php?p=2745431#post2745431 ******************************************************** VB6 OR VBA & Webbrowser DOM Tiny $50 Mini Project Programmer help wanted...
13
by: Matt F | last post by:
I have a deployment project that I'm setting up. I need to perform a different custom action based on whether this is a first time install or an update. Does anyone have any idea if it's possible...
1
by: kaushalgajjar | last post by:
I have been struggling to build a package in VS2005. I have an application made in VB.Net with SQL 2000 now i want to build it to use in a stand alone Computer so i have found MSDE from Microsoft...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.