|
|
@@ -15,21 +15,21 @@ namespace QuestPDF.Drawing.Exceptions
|
|
|
|
|
|
return $"Cannot create the {documentType} document using the {libraryName} library. " +
|
|
|
$"This exception usually means that, on your operating system where you run the application, {libraryName} requires installing additional dependencies. " +
|
|
|
- $"Such dependencies are available as additional nuget packages, for example {nugetConvention}.Linux. " +
|
|
|
- $"Some operating systems may require installing multiple nugets, e.g. MacOS may need both {nugetConvention}.macOS and {nugetConvention}.Linux." +
|
|
|
+ $"Such dependencies are available as additional nuget packages, for example {nugetConvention}.Linux.NoDependencies. " +
|
|
|
+ $"Some operating systems may require installing multiple nugets, e.g. MacOS may need both {nugetConvention}.macOS.NoDependencies and {nugetConvention}.Linux.NoDependencies." +
|
|
|
$"Please refer to the {libraryName} documentation for more details. " +
|
|
|
$"Also, please consult the inner exception that has been originally thrown by the dependency library.";
|
|
|
|
|
|
(string GetLibraryName, string nugetConvention) GetLibraryName()
|
|
|
{
|
|
|
if (innerExceptionMessage.Contains("libSkiaSharp"))
|
|
|
- return ("SkiaSharp", "SkiaSharp.NativeAssets.Linux");
|
|
|
+ return ("SkiaSharp", "SkiaSharp.NativeAssets");
|
|
|
|
|
|
if (innerExceptionMessage.Contains("libHarfBuzzSharp"))
|
|
|
return ("HarfBuzzSharp", "HarfBuzzSharp.NativeAssets");
|
|
|
|
|
|
// default
|
|
|
- return ("SkiaSharp-related", "*.NativeAssets.Linux");
|
|
|
+ return ("SkiaSharp-related", "*.NativeAssets");
|
|
|
}
|
|
|
}
|
|
|
}
|