【visual studio 2010】设置c++工程的默认sdk
2010-11-03 15:37
555 查看
visual studio 2010 默认的sdk是自带的v7.0a,当工程比较多的时候,挨个设置sdk的版本比较麻烦:
开始以为默认设置隐藏在注册表中,搜索后一无所获。感觉应该是在配置文件中,找了好几天.....
在这几个文件夹中的文件中都有个配置文件,Microsoft.Cpp.xxx(指平台名称,比如Win32).default.props,内容:
<!--
***********************************************************************************************
Microsoft.Cpp.Win32.default.props
WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have
created a backup copy. Incorrect changes to this file will make it
impossible to load or build your projects from the command-line or the IDE.
Copyright (C) Microsoft Corporation. All rights reserved.
***********************************************************************************************
-->
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<PlatformShortName>x86</PlatformShortName>
<PlatformArchitecture>32</PlatformArchitecture>
<PlatformToolset Condition="'$(PlatformToolset)' == ''">$(DefaultWin32PlatformToolset)</PlatformToolset>
<PlatformToolset Condition="'$(PlatformToolset)' == ''">Windows7.1SDK</PlatformToolset>
<IntDir Condition="'$(IntDir)'=='' AND '$(IntermediateOutputPath)'!=''">$(IntermediateOutputPath)</IntDir>
<IntDir Condition="'$(IntDir)'=='' AND '$(IntermediateOutputPath)'==''">$(Configuration)/</IntDir>
<OutDir Condition="'$(OutDir)'=='' AND '$(SolutionDir)' != ''">$(SolutionDir)$(Configuration)/</OutDir>
<OutDir Condition="'$(OutDir)'=='' AND '$(SolutionDir)' == ''">$(IntDir)</OutDir>
</PropertyGroup>
</Project>
这样,每次新建的工程的默认sdk都是v7.1。 “PlatformToolset”的名称就是其配置文件夹的名称。
(我安装了vs2008、2010和sdk7.1,所以有三个配置文件夹)
开始以为默认设置隐藏在注册表中,搜索后一无所获。感觉应该是在配置文件中,找了好几天.....
在这几个文件夹中的文件中都有个配置文件,Microsoft.Cpp.xxx(指平台名称,比如Win32).default.props,内容:
<!--
***********************************************************************************************
Microsoft.Cpp.Win32.default.props
WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have
created a backup copy. Incorrect changes to this file will make it
impossible to load or build your projects from the command-line or the IDE.
Copyright (C) Microsoft Corporation. All rights reserved.
***********************************************************************************************
-->
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<PlatformShortName>x86</PlatformShortName>
<PlatformArchitecture>32</PlatformArchitecture>
<PlatformToolset Condition="'$(PlatformToolset)' == ''">$(DefaultWin32PlatformToolset)</PlatformToolset>
<PlatformToolset Condition="'$(PlatformToolset)' == ''">Windows7.1SDK</PlatformToolset>
<IntDir Condition="'$(IntDir)'=='' AND '$(IntermediateOutputPath)'!=''">$(IntermediateOutputPath)</IntDir>
<IntDir Condition="'$(IntDir)'=='' AND '$(IntermediateOutputPath)'==''">$(Configuration)/</IntDir>
<OutDir Condition="'$(OutDir)'=='' AND '$(SolutionDir)' != ''">$(SolutionDir)$(Configuration)/</OutDir>
<OutDir Condition="'$(OutDir)'=='' AND '$(SolutionDir)' == ''">$(IntDir)</OutDir>
</PropertyGroup>
</Project>
这样,每次新建的工程的默认sdk都是v7.1。 “PlatformToolset”的名称就是其配置文件夹的名称。
(我安装了vs2008、2010和sdk7.1,所以有三个配置文件夹)
相关文章推荐
- Visual Studio 2010 C++ 工程文件解读
- Visual Studio 2010 C++ 工程文件解读
- Visual Studio 2010 C++ 工程文件解读
- Visual Studio 2010 C++ 属性设置基础
- [转]Visual Studio 2010 C++ 工程文件解读
- Visual Studio 2010 C++ 属性设置基础
- Visual Studio 2010 C++ 用户属性设置
- Kinect for Windows SDK C++ 开发 Visual Studio 2010环境配置
- Pro Engineer Pro/Toolkit dll工程二次开发设置(Pro Engineer 3.0+Visual Studio 2005(C++))
- Visual Studio 2010 C++ 工程文件解读
- Visual Studio 2010 C++ 工程文件解读
- 在Visual Studio 2010中调试DLL工程的方法 (C++)
- Visual Studio 2010 C++ 工程文件中添加自定义宏
- 更改Visual Studio 2010的主题设置[.vssettings格式]
- Intel XE Compiler 对Visual Studio 2010中的工程进行编译
- Scala编译器安装,开发工具安装,通过IDEA创建scala的工程代码,Scala SDK的设置
- visual studio 2010 创建的MFC ActiveX 控件的工程 不能运行 提示:无法启动.ocx程序
- 【Visual Studio 2010】修改注册表解决误删除某一版本sdk后的编译故障
- VS2008中自定义C++工程模板与修改新建文件默认编码的办法
- Visual Studio 2010建模学习(十二) - C/C++代码的可视化