Skip to content
This repository has been archived by the owner on Mar 18, 2024. It is now read-only.

5.0.0

Compare
Choose a tag to compare
@FolkerKinzel FolkerKinzel released this 30 Sep 22:44
· 25 commits to master since this release
  • Dependency update

  • The method static StringBuilder AppendEmbeddedFileTo(this StringBuilder, string, string?, DataEncoding) is not an extesion method anymore.

  • The mimeTypeString parameters in the DataUrl class have been renamed to mimeType.

  • New methods:

StringBuilder DataUrl.AppendEmbeddedBytesTo(StringBuilder, byte[]?, in MimeTypeInfo, DataEncoding);
StringBuilder DataUrl.AppendEmbeddedFileTo(StringBuilder, string, in MimeTypeInfo, DataEncoding dataEncoding);
string DataUrl.FromFile(string, in MimeTypeInfo mimeType, DataEncoding);
string DataUrl.FromBytes(byte[]?, in MimeTypeInfo, DataEncoding);
  • Obsolete methods:
StringBuilder DataUrl.AppendEmbeddedBytesTo(StringBuilder, byte[]?, MimeType, DataEncoding);
StringBuilder DataUrl.AppendEmbeddedFileTo(this StringBuilder, string, MimeType, DataEncoding);
string DataUrl.FromFile(string, MimeType mimeType, DataEncoding);
string DataUrl.FromBytes(byte[]?, MimeType, DataEncoding);

.

Notes to users who build .NET Core 2.x/3.0 applications based on the .NET Standard 2.0 part of the package:
You might get a compiler error. This is caused by a Microsoft dependency. You can get rid of this error, if you copy <SuppressTfmSupportBuildWarnings>true</SuppressTfmSupportBuildWarnings> to a <PropertyGroup> of your project file (at own risk).

Project reference: On some systems, the content of the CHM file in the Assets is blocked. Before opening the file right click on the file icon, select Properties, and check the "Allow" checkbox - if it is present - in the lower right corner of the General tab in the Properties dialog.