mirror of
https://github.com/qmlnet/qmlnet.git
synced 2026-05-16 14:15:57 -06:00
[GH-ISSUE #13] Support for native code to be main() #7
Labels
No labels
bug
enhancement
help wanted
help wanted
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/qmlnet#7
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @pauldotknopf on GitHub (Jul 17, 2018).
Original GitHub issue: https://github.com/qmlnet/qmlnet/issues/13
Right now it is expected that .NET will be the entry point of the application.
Mono and .NET Core support hosting the runtime manually within native processes.
We should support a couple of headers that could be used to run a VM and configure .NET/Qml types from within main.cpp.
@RichiCoder1 commented on GitHub (Aug 10, 2018):
I would love this actually. Would allow us to bootstrap our native video library, but do all the interesting business in C# & Qml.
@pauldotknopf commented on GitHub (Aug 10, 2018):
Yeah, this is one of the higher-priority tasks that I'd like to get done. I'll update this issue when I get to it, so stay subscribed.
@RichiCoder1 commented on GitHub (Aug 10, 2018):
Awesome! No pressure, I'm just amazed this project exists :). Keep up the good work and hopefully I can contribute at some point.
Have you thought about doing something like Refit and dynamically generating code rather than using reflection for interop-business? Would be cheaper and illink-able in theory.
@pauldotknopf commented on GitHub (Aug 10, 2018):
Yup, see #39
Performance is totally acceptable ATM, but using
Reflection.Emitwould make it even better.I've never seen/heard of Refit though, looks interesting.
@pauldotknopf commented on GitHub (Sep 3, 2018):
Waiting for feedback from the .NET team to decide how to implement this.
See: https://github.com/dotnet/core-setup/issues/4530
If that proposal isn't accepted, then I will manually include the source for core-setup in this repo, which would contain all the classes/tools/etc needed to resolve deps.json and runtimeconfig.json to produce a runtime similar to what you'd get when running the
dotnet execcommand.@pauldotknopf commented on GitHub (Sep 12, 2018):
Check this directory for documentation/samples on how to do this.
https://github.com/pauldotknopf/Qml.Net/tree/develop/samples/hosting