Commit a88893e1 authored by Martin Finkel's avatar Martin Finkel

Core: Fix exception message for UWP

VideoLAN.LibVLC.WindowsRT doesn't exist
parent 13e2b5ef
......@@ -124,7 +124,9 @@ namespace LibVLCSharp.Shared
LibvlcHandle = Native.LoadPackagedLibrary(Constants.LibraryName);
if (LibvlcHandle == IntPtr.Zero)
{
throw new VLCException($"Failed to load {Constants.LibraryName}{Constants.WindowsLibraryExtension}, error {Marshal.GetLastWin32Error()}. Please make sure that this library, {Constants.CoreLibraryName}{Constants.WindowsLibraryExtension} and the plugins are copied to the `AppX` folder. For that, you can reference the `VideoLAN.LibVLC.WindowsRT` NuGet package.");
throw new VLCException($"Failed to load {Constants.LibraryName}{Constants.WindowsLibraryExtension}, error {Marshal.GetLastWin32Error()}." +
$"Please make sure that this library, {Constants.CoreLibraryName}{Constants.WindowsLibraryExtension} and the plugins are copied to the `AppX` folder." +
"For that, you can reference the `VideoLAN.LibVLC.UWP` NuGet package.");
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment