Controlling settings for all the vc8 projects from a common place.

Hi,

Issue: Controlling settings for all the vc8 projects from a common place.   

I have heard about property sheet for vc. Can anyone explore about property sheet for VC

In VS2005 MS has provided MSBuild but it is not supporting VC projects.

Thanks in advance.

Regards,

Madhur




Answer this question

Controlling settings for all the vc8 projects from a common place.

  • rkocur

    Hi Madhur,
     Since I am not an expert regarding the IDE, I will forward the link for your post to the IDE folks to follow up on the best ways to achieve what your are trying to do. Expect a post soon from them.

    Thanks,
      Ayman Shoukry
      VC++ Team

  • MADCookie

    Hi Ayman,

    Thanks for your response.
    Can you please tell me what may be the correct way in VC8 where I can control common settings for all the solutions containing vc8 projects like for c# MSBuild is there
    For example Custom.Before.Microsoft.Common.targets file is there in MSBuild that is icluded by Microsoft.Common.targets file by default.

    I got confusion when I was going thru Property sheets and rules files, I mean what may be the useful in controlling settings from a common place or in VCBuild how do I approach for controlling settings for all vc8 projects from a common place.

    Thanks in advance.

    Regards,
    Madhur

  • trislloyd

    To inherit from a property sheet, switch to the Property Manager window and select all projects / configurations you want to have the same properties, right-click, and choose to inherit from a property sheet.

    In answer to your second question, you can automate the upgrade process using vcbuild.exe. Type "vcbuild / " at the command-line for more help.

    Thanks.



  • jnvr

    Hi Tarek,





    Thanks for quick response.


    So this mean we have to add property sheet for each project and can't control settings from one common place (If I'm not wrong).


    Tarek, I have one doubt, is there any method in which we can use same property sheet in all the projects /solutions (importing that file or giving reference of that file)


    Tarek, one more thing as you are in VC++ team, I can expect u may be aware from this, suppose when we open any vc6 project in vc8 environment VS6 asks,"The project 'xxx.dsp' must be converted to the current Visual C++ project format. After it has been converted, you will not be able to edit this project in previous versions of Visual Studio."

    Then we click "Yes To All" then it converts to vc8 formats.


    Is there any method under which we can automate this process for converting all the projects (like using perl script in vc6)


    Hope you will address my point.


    Thanks in advance.


    Regards,

    Madhur



  • city_ash

    Hi Ayman,

    Thanks for quick response. I'll let you know if is there any issue i'll face in using vcbuild.

    Regards,
    Madhur
    +919444217398

  • Brian S. Ward

    Here are some links on how to use property sheets in VC2005:
    http://msdn2.microsoft.com/en-us/library/3z7t21ew
    http://msdn2.microsoft.com/en-us/library/5k4a0033
    http://msdn2.microsoft.com/en-us/library/a4xbdz1e

    In VS2005, you can use VCBuild to build VC projects.

    Thanks,
      Ayman Shoukry
      VC++ Team

  • Clementino Mendonca

    There's no equivalent of MSBuild's common targets file for Visual C++. In order to achieve the same result, you'll need to create a new property sheet and make sure you add it to all your projects. You can create a new wizard that does that for you to all new projects you create if you wish.



    Thanks

    Tarek

  • ViewDu

    
    
    

  • Controlling settings for all the vc8 projects from a common place.