thrownewVLCException($"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.");
thrownewVLCException($"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.");
}
}
#elif NETFRAMEWORK || NETSTANDARD
/// <summary>
/// Disable error dialogs in case of dll loading failures on older Windows versions.
/// <para/>
/// This is mostly to fix Windows XP support (https://code.videolan.org/videolan/LibVLCSharp/issues/173),
/// though it may happen under other conditions (broken plugins/wrong ABI).
/// <para/>
/// As libvlc may load additional plugins later in the lifecycle of the application,
/// we should not unset this on exiting <see cref="Initialize(string)"/>