zl程序教程

您现在的位置是:首页 >  后端

当前栏目

如何编译dotnet core

Core 如何 编译 dotnet
2023-09-11 14:14:21 时间

1.git clone源码

2.init-tools.cmd

3.

Error: DIA SDK is missing at "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\DIA 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 Studio\2017\Community\" 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 Studio\2017\Community\" 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:\GitHub\dotnet\corefx\bin\obj\Windows_NT.x64.Debug\native\CMakeFiles\3.10.0-rc3\VCTargetsPath.vcxproj" (default target) (1) ->
E:\GitHub\dotnet\corefx\bin\obj\Windows_NT.x64.Debug\native\CMakeFiles\3.10.0-rc3\VCTargetsPath.vcxproj(14,2): error MSB4019: The imported project "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.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++