如何编译dotnet core

如何编译dotnet core

1.git clone源码

2.init-tools.cmd

3.

Error: DIA SDK is missing at "C:Program Files (x86)Microsoft Visual Studio2017CommunityDIA SDK". This is due to a bug in the Visual Studio installer. It does not install DIA SDK at "C:Program Files (x86)Microsoft Visual Studio2017Community" but rather at VS install location of previous version. Workaround is to copy DIA SDK folder from VS install location of previous version to "C:Program Files (x86)Microsoft Visual Studio2017Community" and then resume build.
Visual Studio Express does not include the DIA SDK. You need Visual Studio 2015 or 2017 (Community is free).
See: https://github.com/dotnet/coreclr/blob/master/Documentation/project-docs/developer-guide.md#prerequisites

4.

CMake is a pre-requisite to build this repository but it was not found on the path. Please install CMake from http://www.cmake.org/download/ and ensure it is on your path.
Failed to generate native component build project!

安装cmake-3.10.0-rc3-win64-x64.msi

5.

"E:GitHubdotnetcorefxinobjWindows_NT.x64.Debug ativeCMakeFiles3.10.0-rc3VCTargetsPath.vcxproj" (default target) (1) ->
E:GitHubdotnetcorefxinobjWindows_NT.x64.Debug ativeCMakeFiles3.10.0-rc3VCTargetsPath.vcxproj(14,2): error MSB4019: The imported project "C:Program Files (x86)Microsoft Visual Studio2017CommunityCommon7IDEVCVCTargetsMicrosoft.Cpp.Default.props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.

需要在visual studio安装的时候,安装c++