VS2015 UCRT 源文件在哪里?
Where are the VS2015 UCRT Source files?
TL;DR: 在 Visual Studio 2015 调试时,我在哪里可以找到引用为 d:\th\minkernel\crts\ucrt\...
的 MS 源文件。
我正在尝试调试 CRT 调用以查看 MS 实际在做什么,不幸的是 ucrt
源文件似乎无法用于安装 VS2015。至少我根本无法在 C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\crt\src
中找到这些文件。
MS CRT 的(大部分)完整源代码集是否仍然可用,因为它过去至少达到 VS2010,或者 CRT 的某些部分现在完全关闭了源代码?
Answered on MSDN 来自 RLWA32:
The ucrt source can be found under the Windows Kits folder. For example, in a 32 bit VM with VS2015 installed the path to the ucrt source is -
C:\Program Files\Windows Kits\Source.0.10240.0\ucrt
.
You can find the path by examining the VC++ directories property for any C+ project -
$(VC_SourcePath)
这个文件夹实际上在我的机器上 Program Files (x86)
,但它就在那里。
我错过了,因为还有 另一个 文件夹 C:\Program Files (x86)\Microsoft SDKs\Windows Kits\...
而这个文件夹不包含任何来源。
TL;DR: 在 Visual Studio 2015 调试时,我在哪里可以找到引用为 d:\th\minkernel\crts\ucrt\...
的 MS 源文件。
我正在尝试调试 CRT 调用以查看 MS 实际在做什么,不幸的是 ucrt
源文件似乎无法用于安装 VS2015。至少我根本无法在 C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\crt\src
中找到这些文件。
MS CRT 的(大部分)完整源代码集是否仍然可用,因为它过去至少达到 VS2010,或者 CRT 的某些部分现在完全关闭了源代码?
Answered on MSDN 来自 RLWA32:
The ucrt source can be found under the Windows Kits folder. For example, in a 32 bit VM with VS2015 installed the path to the ucrt source is -
C:\Program Files\Windows Kits\Source.0.10240.0\ucrt
.You can find the path by examining the VC++ directories property for any C+ project -
$(VC_SourcePath)
这个文件夹实际上在我的机器上 Program Files (x86)
,但它就在那里。
我错过了,因为还有 另一个 文件夹 C:\Program Files (x86)\Microsoft SDKs\Windows Kits\...
而这个文件夹不包含任何来源。