qmlnet icon indicating copy to clipboard operation
qmlnet copied to clipboard

Support for single file publishing?

Open vadi2 opened this issue 4 years ago • 1 comments

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)

vadi2 avatar May 04 '21 07:05 vadi2

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

vadi2 avatar May 08 '21 06:05 vadi2