VahidN/PdfReport.Core

[linux] null exception throw when trying to search for default font

mahpah opened this issue · 2 comments

Since Environment.GetEnvironmentVariable("SystemRoot") return null, Path.Combine will throw exception.

var mainFontPath = string.IsNullOrEmpty(_defaultFont1) ? Path.Combine(root, "fonts", "arial.ttf") : _defaultFont1;

dotnet --info

.NET Command Line Tools (2.1.101)

Product Information:
 Version:            2.1.101
 Commit SHA-1 hash:  6c22303bf0

Runtime Environment:
 OS Name:     ubuntu
 OS Version:  16.04
 OS Platform: Linux
 RID:         ubuntu.16.04-x64
 Base Path:   /usr/share/dotnet/sdk/2.1.101/

Microsoft .NET Core Shared Framework Host

  Version  : 2.0.6
  Build    : 74b1c703813c8910df5b96f304b0f2b78cdf194d

Fixed via #b530471

 dotnet add package PdfRpt.Core --version 1.1.5 
lock commented

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related problems.