1. 20 9月, 2022 1 次提交
  2. 24 6月, 2022 1 次提交
  3. 08 5月, 2022 1 次提交
  4. 04 6月, 2021 1 次提交
  5. 15 2月, 2021 1 次提交
  6. 14 2月, 2021 1 次提交
  7. 13 2月, 2021 1 次提交
    • M
      Add hostfxr_get_dotnet_environment_info API (#48097) · 64c77806
      Mateo Torres-Ruiz 提交于
      * Add hostfxr_get_dotnet_environment_info
      
      * Change access modifiers in structs
      
      * Remove unnecessary context local
      
      * Use global install location if no dotnet_root is specified
      
      * Add framework tests
      
      * Update framework_info comparison
      
      * Remove commented code
      
      * Remove unnecessary marshaling
      Export fn
      
      * Add hostfxr_get_dotnet_environment_info to hostfxr exports
      
      * Fail if result is nullptr
      Validate size of structs
      Test that result_context isn't modified
      
      * Remove version_as_str
      Update tests
      
      * Add tests for invalid args
      64c77806
  8. 08 7月, 2020 1 次提交
  9. 18 6月, 2020 1 次提交
  10. 16 6月, 2020 1 次提交
  11. 09 4月, 2020 1 次提交
    • S
      Single-File: Process bundles in the framework (#34274) · 78b303df
      Swaroop Sridhar 提交于
      * Single-File: Process bundles in the framework
      
      This change implements the host changes proposed in the [design](https://github.com/dotnet/designs/blob/master/accepted/2020/single-file/design.md#startup)
      
      The main changes for single-file bundles are:
      * Bundle processing code is moved from apphost to hostpolicy
      * HostFxr and HostPolicy process deps.json and runtimeconfig.json files directly from the bundle.
      * HostPolicy performs verification wrt deps.json based on the contents of the single-file bundle.
      * AppContext.BaseDirectory is set as explained [here](https://github.com/dotnet/designs/blob/master/accepted/2020/single-file/design.md#appcontextbasedirectory)
      
      Currently, all files except deps.json and runtimeconfig.json are extracted to disk.
      Once the runtime is able to processing assemblies directly from the bundle, they will no longer be extracted.
      
      Notable details:
      * The bundle driver (formarly runner.cpp) is divided into two parts:
         * bundle::info which describes basic information about the bundle available from the headers only
         * bundle::runner which has information about all embedded files, and the ability to drive extraction
        This facilitates linking only parts of the bundle handling code with hostfxr, while all code is linked with hostpolicy.
      * The AppHost only links with bundle_marker to identify itself as a single-file bundle.
      * If the AppHost is a single-file bundle, it notifies hostfxr using the new hostfxr_main_bundle_startup_info() API
      * The HostFxr comminucates the single-file-information with HostPolicy using the host_interface_t structure.
      
      Fixes https://github.com/dotnet/runtime/issues/32821
      78b303df
  12. 06 6月, 2019 1 次提交
  13. 31 5月, 2019 1 次提交
  14. 29 5月, 2019 1 次提交
  15. 10 5月, 2019 1 次提交
  16. 03 5月, 2019 1 次提交
  17. 06 4月, 2019 1 次提交
  18. 21 3月, 2019 2 次提交
    • N
    • J
      IJW Host (dotnet/core-setup#5185) · dd8f2807
      Jeremy Koritzinsky 提交于
      * First pass porting mscoree/mscoreei's IJW hosting hooks into a new .NET Core host. Functions that use runtime data structures are stubbed out.
      
      * Use Windows heap functions for allocating executable memory.
      
      * Add IJW activation design document.
      
      * Add talking point about loading dependencies from *.deps.json* files and what work needs to be done for those.
      
      * Clean up design doc.
      
      * Update design doc.
      
      * Feedback.
      
      * Clean up the PEDecoder since we don't need to port over all of the validation, just enough to ensure that the assembly is a .NET assembly.
      
      * The OS will verify that the IJW image and the IJW host are the same architecture, so we don't need to branch on architecture.
      
      * Clean up ijwhost and PEDecoder code based on review feedback.
      
      * Refactor corehost.cpp and add implementations of functions to fetch IJW delegates from hostfxr.
      
      * Move hostfxr resolution into separate file and make corehost only relevant for the exe hosts.
      
      * Make get_latest_fxr local to fxr_resolver.cpp
      
      * Implement fxr wire-up for ijwhost.
      
      * Rvas are already mapped for loaded images.
      
      * Don't use stubs if being loaded into currently running runtime.
      
      * Update IJW activation doc based on updated info about callbacks.
      
      * Implement token resolution from thunks. Fix calling a users native entry-point from _CorDllMain.
      
      * Correctly resolve side-by-side hostfxr from ijwhost and comhost. Correctly handle an empty TPA when appending S.P.CL. Pass app-path to delegate.
      
      * Update design doc.
      
      * Remove unneeded validation.
      
      * Fix assembler selection for ARM/ARM64.
      
      * Fix indentation.
      
      * Remove dead code in PEDecoder.
      
      * Fix missing CommandLineToArgvW symbol in arm/arm64 builds.
      
      * Fix ARM/ARM64 build by bringing over custom arm assembler supporting cmake from coreclr.
      
      * Remove IJWBootstrapThunk opaque class. Rename all non-exported apis to match the snake_case convention in this repo.
      
      * Remove exports.cpp files per pr feedback.
      
      * Use an enum to specify which delegate to load from the runtime in the hostfxr<->hostpolicy API.
      
      * Fix x86 build
      
      * Make x86 implementation of get_thunk_from_cookie clearer.
      
      * Symbol export changes needed for x86 as found by testing.
      
      * Remove ijw-exe-specific path.
      
      * clean up ijwhost.cpp since we only have one entrypoint into hostfxr from ijwhost now.
      
      * Use enum for delegate getter in hostfxr-exposed api as well.
      
      * PR Feedback.
      
      * Add ijwhost to Microsoft.NetCore.DotNetAppHost package.
      
      * Setup tracing on comhost and ijwhost entry points.
      
      * PR Feedback.
      
      * Remove IsILOnly checks.
      
      * Clean up design doc.
      
      * More cleanup on IJW activation design doc
      
      * swallow tracing on IJW. Remove as much of corhdr.h as possible.
      
      * Fix bad copy-paste in the install command in ijwhost cmake script.
      
      * Fix cmake
      
      * Add error message to trace for failure to find the "corehost_get_coreclr_delegate" entrypoint.
      
      * Sign ijwhost. Fixes dotnet/core-setup#5485.
      
      
      Commit migrated from https://github.com/dotnet/core-setup/commit/bc7bcc646567a261c0ae113d5fe43f17469af4ae
      dd8f2807