43264

Inheriting C++ project properties in VS 2010

Question:

I have a C++ project in VS2010. I would like another C++ project to inherit its properties (e.g. include directories, external libraries, etc.). It seems the best way to do this is to use Property Sheets, but I can't figure out how to do it.

When I try adding an existing property sheet to my new project, I expect to be able to find a property sheet containing the old project's properties in the old project's directory. No such file exists.

What should I be doing?

Answer1:

In order to create inheritable properties you must create a new property sheet, save it in a local location and have any projects you want to have those properties use (inherit) it by "Add Existing" sheet.

The order of the listing of property sheets matters. If the property is listed as "Use default or inherit from parent" it will get the value from the property sheet directly below it or if there is none below it, it will use the default.

The sheets listed in the property sheet manager are just links. If the file is linked to multiple Configurations and you change it in one, ALL linked configurations will accept the changes. Therefore if you want to make different changes for each Config. for the same property you must make separate sheets.

Recommend

  • Fixed Background Works in Chrome but Not Firefox?
  • Responsive Form on top of Responsive Image? - Bootstrap
  • How to open html table in xls on click of a button
  • apply a javascript function to draggable copy
  • Cannot save model when using ember render helper
  • Android changing fragment order inside FragmentPagerAdapter
  • How do I include a SWC in an AS2 Flash project?
  • How to add a focus style to an editable ComboBox in WPF
  • Web.config system.webserver errors
  • Eloquent paginate function in Slim 3 project using twig
  • How do I superscript characters in a UIButton?
  • How to add git credentials to the build so it would be able to be used within a shell code?
  • Create DicomImage from scratch using Dcmtk
  • Groovy: Unexpected token “:”
  • How to create a file in java without a extension
  • Database structure design with variable amounts of fields
  • Breeze - Deleted Items nav properties bug
  • Checking free space on FTP server
  • Change Inet root folder for iis 7
  • Is my CUDA kernel really runs on device or is being mistekenly executed by host in emulation?
  • How do I fake an specific browser client when using Java's Net library?
  • javaw.exe and eclipse startup problems
  • How to get a value (ex: baseURL) in every Karate feature?
  • MySQL WHERE-condition in procedure ignored
  • Updated Ionic CLI but shows previous version (Windows)
  • Data Validation Drop Down Box Arrow Disappearing
  • Comma separated Values
  • Rails 2: use form_for to build a form covering multiple objects of the same class
  • Error creating VM instance in Google Compute Engine
  • Hits per day in Google Big Query
  • how does django model after text[] in postgresql [duplicate]
  • How to CLICK on IE download dialog box i.e.(Open, Save, Save As…)
  • need help with bizarre java.net.HttpURLConnection behavior
  • How can I remove ASP.NET Designer.cs files?
  • Bitwise OR returns boolean when one of operands is nil
  • python draw pie shapes with colour filled
  • MATLAB: Piecewise function in curve fitting toolbox using fittype
  • Is there any way to bind data to data.frame by some index?
  • Checking variable from a different class in C#
  • How can i traverse a binary tree from right to left in java?