Solved

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

Posted on 2008-10-27
2
881 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
2 Comments
 
LVL 17

Accepted Solution

by:
CSecurity earned 150 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

Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

Question has a verified solution.

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

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
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.

821 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