Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7957227
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T04:13:04+00:00 2026-06-04T04:13:04+00:00

Three-part question first: Are the build-time macros fully fleshed out in Visual Studio 11?

  • 0

Three-part question first:

  1. Are the build-time macros fully fleshed out in Visual Studio 11?
  2. How can I edit & define them in the IDE?
  3. How can I let the macros still have their meaning during the Debugging session?

Note that I’m referring to the build-time macros such as $(ProjectDir), not the IDE macros used to record a series of keystrokes — they took those away, but I can live without them. I have been defining my own build-time macros via the property pages in Visual Studio 10. For example, I might create a macro to define where Boost is installed on my local computer named $(BoostDir) in x64 builds via View>Property Manager>Microsoft.Cpp.x64.user:

macro definitions in VS10

I use this functionality because I might have (for example) Boost installed in different locations on different computers. These properties are machine-specific, and not checked in to source control. I can then use these macros in the project settings which are checked in to source control, and it should work on every machine I compile this project on so long as I have defined the macros for that machine.

enter image description here

In trying to compile & run my VS10 projects in the Visual Studio 11 Developer Preview, I’m running in to a couple of issues with respect to these macros.

First, in VS11 there does not appear to be an interface to define these user-defined macros. Where they were in VS10, there is now just nothing in VS11:

enter image description here

It appears that these macros do exist at some level within the Compiler/IDE, because I am able to compile my project without errors, which I wouldn’t be able to do if these macros didn’t exist somewhere.

Second, while the macros seem to exist during the build process, they don’t appear to exist during the Debugging session. Macros I used to resolve the directories where certain DLLs exist in VS10 now don’t resolve those directories in VS11, and I get run-time errors:

enter image description here

The directory where this DLL is located is defined here in VS10 and VS11:

enter image description here

…but my macros don’t seem to mean anything during the debug session.

How can I get all the macro-related functionality I depended upon in VS10 back in VS11?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T04:13:05+00:00Added an answer on June 4, 2026 at 4:13 am

    If you haven’t already figured out how to do this, you need to use your own property sheets.

    Make a new property sheet, and use the section in Common Properties > User Macros.

    For example, I have a macro called BOOST_VER in a property sheet called IncludeBoost.props that I set everything in.

    User Macros
    Name       Value
    BOOST_VER  1.49.0
    
    C/C++ > General > Additional Include Directories >
    "$(environment variable)\3rdParty\Boost_$(BOOST_VER)\Boost";%(AdditionalIncludeDirectories)
    
    C/C++ > Preprocessor > Preprocessor Definitions >
    BOOST_ALL_DYN_LINK;%(PreprocessorDefinitions)
    
    Linker > General
    $(env var)\3rdParty\Boost_$(BOOST_VER)\Boost\lib\$(Platform);%(AdditionalLibraryDirectories)
    

    Note that the proper platform is picked too (Win32 or x64).

    BTW, the Property Manager supports Ctrl+click multiple selection.

    HTH.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is really a three-part question, but I've answered the first question myself: I'm
I have a three part question based on a dataframe (df is example rows)
First off, this question is ripped out from this question. I did it because
First question here and can I start by saying how much help this site
I've got a 2 part question: First question : I know that there is
Before I dive into the disscusion part a quick question; Is there a method
I understand the value of the three-part service/host/client model offered by WCF. But is
I have three divs stacked on each other but offset so that a part
first time poster. Please be gentle. This topic may be similar to several other
Ok, so, my visual studio is broken. I say this NOT prematurely, as it

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.