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 3599584
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T20:23:09+00:00 2026-05-18T20:23:09+00:00

I upgrade our dev. environment from VS 2008 to VS 2010. We compile more

  • 0

I upgrade our dev. environment from VS 2008 to VS 2010.
We compile more than 1000 C++ projects. All from the command line.
One of the problem is a heavy usage of word “auto” in our code base.
VS 2010 by default doesn’t allow it even in function names like auto_close, etc.
Using /Zc:auto- option resolves this issue.

My question is:
What is the right way to have MSBuild to pass /Zc:auto option to the cl.exe?
I tried: “/p:ClCompile_AdditionalOptions=Zc:auto-” but still compilation fails.
If I add /Zc:auto- option manually to the project properties –
at Configuration Properties / C/C++ /CommandLine / AdditionalOptions
then project is compiling well.

The problem that I can’t edit manually 1000s of projects.

I try to use following command line:
msbuild “/t:Build” “/p:Configuration=Release” “/p:UseEnv=true” “/p:AdditionalOptions=Zc:auto-“ “myproject.vcxproj”

  • 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-05-18T20:23:09+00:00Added an answer on May 18, 2026 at 8:23 pm

    Supplying /Zc:auto- option via MSBuild would mean the IDE cannot be used to compile any of the projects in question, but maybe that doesn’t bother you. If the existing projects are not all using property sheets, you can use the default one added to all VS2010 vcxproj files:

    %LOCALAPPDATA%\Microsoft\MSBuild\v4.0\Microsoft.Cpp.Win32.user.props

    This property sheet should be included in all your vcxproj projects. To add the option with the IDE, open one of your projects and then:

    View -> Other Windows -> Property Manager -> Debug | Win32 -> Microsoft.Cpp.Win32.User -> Properties -> Common Properties -> C/C++ -> Command Line -> Additional Options: /Zc:auto-

    and then save and exit the IDE. This section will have been added to that file:

    <ItemDefinitionGroup>
      <ClCompile>
        <AdditionalOptions>/Zc:auto- %(AdditionalOptions)</AdditionalOptions>
      </ClCompile>
    </ItemDefinitionGroup>
    

    and will apply to all your C++ projects.

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

Sidebar

Related Questions

I have just upgraded our company's domain controller from NT 4.0 to Windows 2008
I would like to upgrade my web projects on an IIS 5 server from
Our dev server was recently upgraded to PHP v5.2.13. With that upgrade we have
After an upgrade to XP and Java 1.6 one of our intranet apps is
I would like to upgrade my team from VS2005 to VS2008 without touching the
We've having trouble deploying a web service that works in our development environment, but
I have been investigating a JSF upgrade on our existing web apps that are
Having to upgrade a database schema makes installing a new release of software a
I really should upgrade to Firefox 3, but I'm very dependent on Firebug working
Is there anyway to upgrade the installed JRE in the system? We are having

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.