Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How can I set output dir in msbuild for a C++ project

Posted on 2008-10-27
2
Medium Priority
?
905 Views
Last Modified: 2013-11-26
I'm creating a Team Build process for a project. The TFS server and Team Foundation Build are 2008. The project is a C++ project. They use Visual Studio 2005 for the project. I want to be able to control where the output of the C++ project is put by setting a property in my team build project (in the best case scenario directly in my team build files not touching the .sln or .proj files which "belongs" to the project). Right now the resulting exe is dropped in the same dir as the solution file. It seems like OutDir would do the job in a C# project, but (if I understand this correctly) we are calling VCBuild.exe (indirectly from the .targets file) and I can't find a property that does the job.
0
Comment
Question by:lyasalillegard
1 Comment
 
LVL 17

Accepted Solution

by:
CSecurity earned 450 total points
ID: 22816117
Visual C++ Projects
To change the build output directory:

   1.

      On the Project menu, click Properties.
   2.

      Expand the Configuration Properties tab, and click General.
   3.

      Change the Output Directory box to the new output directory.




Taken from: http://msdn.microsoft.com/en-us/library/ms165410(VS.80).aspx
0

Featured Post

NEW Veeam Backup for Microsoft Office 365 1.5

With Office 365, it’s your data and your responsibility to protect it. NEW Veeam Backup for Microsoft Office 365 eliminates the risk of losing access to your Office 365 data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question