使用vs的快捷設置

1.設置默認添加路徑

在C:\Users\Administrator\AppData\Local\Microsoft\MSBuild\v4.0下改變對應的平臺,例如Microsoft.Cpp.x64.user.props設置x64:



<?xml version="1.0" encoding="utf-8"?> 
<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <ImportGroup Label="PropertySheets">
  </ImportGroup>
  <PropertyGroup Label="UserMacros" />
  <PropertyGroup />
 
   <PropertyGroup> 
    <IncludePath>$(_USER_PATH_INCLUDE);$(IncludePath)</IncludePath>
	<LibraryPath>$(_USER_PATH_LIB_x64);$(LibraryPath)</LibraryPath>   
  </PropertyGroup> 
	
  <PropertyGroup> 
	<LocalDebuggerEnvironment>PATH=%PATH%;$(_USER_PATH_BIN_x64)</LocalDebuggerEnvironment>
  </PropertyGroup> 
  
  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
    <LinkIncremental>true</LinkIncremental>
    <OutDir>$(SolutionDir)\bin\$(Platform)\</OutDir>
    <IntDir>$(SolutionDir)\temp\$(ProjectName)\$(Platform)\$(Configuration)\</IntDir>
  </PropertyGroup>
  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
    <LinkIncremental>false</LinkIncremental>
    <OutDir>$(SolutionDir)\bin\$(Platform)\</OutDir>
    <IntDir>$(SolutionDir)\temp\$(ProjectName)\$(Platform)\$(Configuration)\</IntDir>
  </PropertyGroup>
	
  <ItemDefinitionGroup>
	<Link Condition="'$(Configuration)'=='Debug'">
		<AdditionalDependencies>$(_USER_LIB_OBJ_x64d);%(AdditionalDependencies)</AdditionalDependencies>
	</Link>
	<Link Condition="'$(Configuration)'=='Release'">
		<AdditionalDependencies>$(_USER_LIB_OBJ_x64);%(AdditionalDependencies)</AdditionalDependencies>
	</Link>
  </ItemDefinitionGroup>
 
  <ItemDefinitionGroup />
  <ItemGroup />
</Project>



2.設置vs默認爲x64平臺

C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\VCWizards
default.vcxproj、DefaultTest.vcxproj、vcupgradedefault.vcxproj用記事本打開,將Win32全部替換成x64即可,注意替換前做好備份。



3.設置默認編程環境

如果你想切換到其他開發人員的習慣,點“工具” - >“導入和導出設置 - >導入選定的環境設置 - > N - >選擇。




4.程序打包

http://blog.csdn.net/whatday/article/details/39402325



發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章