跳到主要内容

源码​


Windows​

  1. 环境:Visual Studio,CMake 3.15 及以上
  2. 编译选项:ue
  3. 编译
    • Debug:scripts\build.bat runtime -os windows -c debug
    • Release:scripts\build.bat runtime -os windows -c release
  4. include
    • src/runtime
  5. dll
    • Microsoft.NETCore.App.Runtime.win-x64,修改后缀为.zip,并解压
    • 根据runtimes/win-x64/lib/net10.0筛选artifacts/bin/runtime/net10.0-windows-Release-x64中的dll
    • artifacts/bin/coreclr/windows.x64.Release/System.Private.CoreLib.dll
  6. lib
    • out/cmake/runtime/Release-x64/Release
      • leanclr.lib

Linux​

  1. 环境:Linux Development Requirements for Unreal Engine
  2. 编译选项:ue
  3. 编译
    • Debug:scripts\build.bat runtime -os linux -c debug
    • Release:scripts\build.bat runtime -os linux -c release
  4. include
    • src/runtime
  5. dll
    • Microsoft.NETCore.App.Runtime.win-x64,修改后缀为.zip,并解压
    • 根据runtimes/win-x64/lib/net10.0筛选artifacts/bin/runtime/net10.0-windows-Release-x64中的dll
    • artifacts/bin/coreclr/windows.x64.Release/System.Private.CoreLib.dll
  6. lib
    • out/cmake/runtime/Release-Linux-x86_64
      • libleanclr.a

macOS​

  1. 环境:CMake 3.15 及以上
  2. 编译选项:ue
  3. 编译
    • Debug:./scripts/build.sh runtime -c debug
    • Release:./scripts/build.sh runtime -c release
  4. include
    • src/runtime
  5. dll
    • Microsoft.NETCore.App.Runtime.win-x64,修改后缀为.zip,并解压
    • 根据runtimes/win-x64/lib/net10.0筛选artifacts/bin/runtime/net10.0-windows-Release-x64中的dll
    • artifacts/bin/coreclr/windows.x64.Release/System.Private.CoreLib.dll
  6. lib
    • out/cmake/runtime/Release
      • libleanclr.a

Android​

  1. 环境:NDK 25.1.8937393 及以上
  2. 编译选项:ue
  3. 编译
    • Debug:scripts\build.bat runtime -os android -arch arm64 -c debug
    • Release:scripts\build.bat runtime -os android -arch arm64 -c release
  4. include
    • src/runtime
  5. dll
    • Microsoft.NETCore.App.Runtime.win-x64,修改后缀为.zip,并解压
    • 根据runtimes/win-x64/lib/net10.0筛选artifacts/bin/runtime/net10.0-windows-Release-x64中的dll
    • artifacts/bin/coreclr/windows.x64.Release/System.Private.CoreLib.dll
  6. lib
    • out/cmake/runtime/Release-Android-arm64-v8a
      • libleanclr.a

IOS​

  1. 环境:CMake 3.15 及以上
  2. 编译选项:ue
  3. 编译
    • Debug:./scripts/build.sh runtime -os ios -arch arm64 -c debug
    • Release:./scripts/build.sh runtime -os ios -arch arm64 -c release
  4. include
    • src/runtime
  5. dll
    • Microsoft.NETCore.App.Runtime.win-x64,修改后缀为.zip,并解压
    • 根据runtimes/win-x64/lib/net10.0筛选artifacts/bin/runtime/net10.0-windows-Release-x64中的dll
    • artifacts/bin/coreclr/windows.x64.Release/System.Private.CoreLib.dll
  6. lib
    • out/cmake/runtime/Release-iOS-arm64
      • libleanclr.a