Skip to content

[monodroid] Support for .NET6 - #5632

Closed
grendello wants to merge 8 commits into
dotnet:masterfrom
grendello:net6-native
Closed

grendello wants to merge 8 commits into
dotnet:masterfrom
grendello:net6-native

Conversation

@grendello

@grendello grendello commented Feb 17, 2021 •

Copy link
Copy Markdown
Contributor
  • Use Mono headers and libs from .NET6 runtime packages
  • Update CMake to 3.18.1
  • Refactor CMakeLists.txt to take advantage of new CMake features
    and clean up the scripts.
  • Use xaprepare to generate CMake commands (msbuild and shell
    script)
    • The entire msbuild _PrepareConfigureRuntimeCommands which used to
      be in monodroid.targets is now generated
    • A new build-tools/scripts/build-monodroid script added, enabling
      one to build any libmonodroid configuration from command line,
      without the need to use msbuild (which builds all the runtimes,
      currently 52 configurations).
    • Both the msbuild and shell bits are generated from the same
      source, making maintenance easier.

The runtime is already built against .NET6 libraries and headers, no .NET6 specific code in the runtime yet.

TODO:

  • Package the .NET6 runtimes into nugets
  • Add .NET6 specific code to src/monodroid
    • New VM initialization calls
    • Support for the new interpreter modes
    • PINVOKE_OVERRIDE support
    • Add pinvoke override lookup caching
    • Use AssemblyLoadContext versions of image/assembly loader functions

@grendello grendello added the do-not-merge PR should not be merged. label Feb 17, 2021
Comment thread Configuration.props Resolved
snprintf (ptr_str, sizeof(ptr_str), "0x%p", pinvoke_override_cb);

const char* property_keys[] { "PINVOKE_OVERRIDE" };
const char* property_values[] { ptr_str };

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this remains gloriously insane.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is... Thus, dotnet/runtime#48416 :)

@grendello

Copy link
Copy Markdown
Contributor Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

grendello and others added 6 commits February 18, 2021 14:01
 * Use Mono headers and libs from .NET6 runtime packages
 * Update CMake to 3.18.1
 * Refactor `CMakeLists.txt` to take advantage of new CMake features
   and clean up the scripts.
 * Use `xaprepare` to generate `CMake` commands (msbuild and shell
   script)
   * The entire msbuild `_PrepareConfigureRuntimeCommands` which used to
     be in `monodroid.targets` is now generated
   * A new `build-tools/scripts/build-monodroid` script added, enabling
     one to build any `libmonodroid` configuration from command line,
     without the need to use `msbuild` (which builds all the runtimes,
     currently 52 configurations).
   * Both the `msbuild` and shell bits are generated from the same
     source, making maintenance easier.
Co-authored-by: Jonathan Peppers <[email protected]>
@grendello
grendello marked this pull request as ready for review February 18, 2021 17:04
@grendello grendello removed the do-not-merge PR should not be merged. label Feb 18, 2021
@grendello

Copy link
Copy Markdown
Contributor Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@grendello

Copy link
Copy Markdown
Contributor Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@grendello grendello closed this Feb 19, 2021
@grendello
grendello deleted the net6-native branch February 19, 2021 19:02
@github-actions github-actions Bot locked and limited conversation to collaborators Jan 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants