Solved

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

Posted on 2008-10-27
2
877 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/A_4334-Minify-and-Concatenate-Your-Scripts-and-Stylesheets.html)…
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 goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…

809 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