如何開啟 projects 之後,能將預設 path 直接載入
筆記
--
x86:Microsoft.Cpp.Win32.v100.props
C:\ProgramFiles\MSBuild\Microsoft.Cpp\v4.0\Platforms\Win32\PlatformToolsets\v100\
x64:Microsoft.Cpp.Win32.v100.props
C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Platforms\x64\PlatformToolsets\v100\
以 x86 為例。
用記事本開啟 Microsoft.Cpp.Win32.v100.props,
搜尋 </PropertyGroup>(只能找到一個),找到之後向上看。這些 path 就是 VC++ Directories 中預設的 path。
-------------------------------------------------原始程式檔
<FrameworkVersion Condition="'$(UseEnv)' != 'true'">v4.0</FrameworkVersion>
<Framework35Version Condition="'$(UseEnv)' != 'true'">v3.5</Framework35Version>
<ExecutablePath Condition="'$(ExecutablePath)' == ''">$(VCInstallDir)bin;
<IncludePath Condition="'$(IncludePath)' == ''">$(VCInstallDir)include;
<ReferencePath Condition="'$(ReferencePath)' == ''">$(VCInstallDir)atlmfc\lib;
<LibraryPath Condition="'$(LibraryPath)' == ''">$(VCInstallDir)lib;
<SourcePath Condition="'$(SourcePath)' == ''">$(VCInstallDir)atlmfc\src\mfc;
<ExcludePath Condition="'$(ExcludePath)' == ''">$(VCInstallDir)include;
<NativeExecutablePath Condition="'$(NativeExecutablePath)' == ''">$(ExecutablePath)
</PropertyGroup>
-----------------------------------------------------------------------
將你原本想要在 VC++ Directories 中加入的 path 加進去,
優先使用左邊的 path,path 之間以分號隔開。
範例,加入 IncludePath 和 LibraryPath,加入自己的 path入徑。
ex
-------------------------------------------------藍色部份為添加程式檔
<FrameworkVersion Condition="'$(UseEnv)' != 'true'">v4.0</FrameworkVersion>
<Framework35Version Condition="'$(UseEnv)' != 'true'">v3.5</Framework35Version>
<ExecutablePath Condition="'$(ExecutablePath)' == ''">$(VCInstallDir)bin;
<IncludePath Condition="'$(IncludePath)' == ''">$(VCInstallDir)include;D:\Documents and Settings\User\Desktop\SDK\SDK\include;</IncludePath>
<ReferencePath Condition="'$(ReferencePath)' == ''">$(VCInstallDir)atlmfc\lib;
<LibraryPath Condition="'$(LibraryPath)' == ''">$(VCInstallDir)lib;$(VCInstallDir)atlmfc\lib;$(WindowsSdkDir)lib;$(FrameworkSDKDir)\libD:\Documents and Settings\UserDesktop\SDK\SDK\lib</LibraryPath>
<SourcePath Condition="'$(SourcePath)' == ''">$(VCInstallDir)atlmfc\src\mfc;
<ExcludePath Condition="'$(ExcludePath)' == ''">$(VCInstallDir)include;
<NativeExecutablePath Condition="'$(NativeExecutablePath)' == ''">$(ExecutablePath)
</PropertyGroup>
-----------------------------------------------------------------------
重開Visual Studio即可
參考引用至
http://idaiwan.pixnet.net/blog/post/30789152
沒有留言:
張貼留言