[GH-ISSUE #238] Support for single file publishing? #151

Open
opened 2026-05-05 11:06:51 -06:00 by gitea-mirror · 1 comment
Owner

Originally created by @vadi2 on GitHub (May 4, 2021).
Original GitHub issue: https://github.com/qmlnet/qmlnet/issues/238

Trying out the .NET 5 version of single file publishing, qmlnet on Linux nor on Windows doesn't seem to cooperate well with it:

./Hammer 
Unhandled exception. System.TypeInitializationException: The type initializer for 'Qml.Net.Internal.Interop' threw an exception.
 ---> System.TypeInitializationException: The type initializer for 'NetNativeLibLoader.PathResolver.DynamicLinkLibraryPathResolver' threw an exception.
 ---> System.ArgumentException: Path cannot be the empty string or all whitespace. (Parameter 'path')
   at System.IO.Directory.GetParent(String path)
   at NetNativeLibLoader.PathResolver.LocalPathResolver..ctor()
   at NetNativeLibLoader.PathResolver.DynamicLinkLibraryPathResolver..cctor()
   --- End of inner exception stack trace ---
   at NetNativeLibLoader.PathResolver.DynamicLinkLibraryPathResolver..ctor(Boolean searchLocalFirst)
   at Qml.Net.Internal.Interop..cctor()
   --- End of inner exception stack trace ---
   at Qml.Net.Internal.Interop.get_QQuickStyle()
   at Qml.Net.QQuickStyle.SetStyle(String style)
   at Program.Main(String[] args)
Aborted (core dumped)
Originally created by @vadi2 on GitHub (May 4, 2021). Original GitHub issue: https://github.com/qmlnet/qmlnet/issues/238 Trying out the .NET 5 version of [single file publishing](https://github.com/dotnet/designs/blob/main/accepted/2020/single-file/design.md), qmlnet on Linux nor on Windows doesn't seem to cooperate well with it: ``` ./Hammer Unhandled exception. System.TypeInitializationException: The type initializer for 'Qml.Net.Internal.Interop' threw an exception. ---> System.TypeInitializationException: The type initializer for 'NetNativeLibLoader.PathResolver.DynamicLinkLibraryPathResolver' threw an exception. ---> System.ArgumentException: Path cannot be the empty string or all whitespace. (Parameter 'path') at System.IO.Directory.GetParent(String path) at NetNativeLibLoader.PathResolver.LocalPathResolver..ctor() at NetNativeLibLoader.PathResolver.DynamicLinkLibraryPathResolver..cctor() --- End of inner exception stack trace --- at NetNativeLibLoader.PathResolver.DynamicLinkLibraryPathResolver..ctor(Boolean searchLocalFirst) at Qml.Net.Internal.Interop..cctor() --- End of inner exception stack trace --- at Qml.Net.Internal.Interop.get_QQuickStyle() at Qml.Net.QQuickStyle.SetStyle(String style) at Program.Main(String[] args) Aborted (core dumped) ```
Author
Owner

@vadi2 commented on GitHub (May 8, 2021):

Filed as https://github.com/dotnet/runtime/issues/52496.

<!-- gh-comment-id:835146610 --> @vadi2 commented on GitHub (May 8, 2021): Filed as https://github.com/dotnet/runtime/issues/52496.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/qmlnet#151
No description provided.