.Net Core 3.0 Cannot bind method

Good day!

In anticipation of the release of .net core 3.0, I want to pay attention to the error when converting files using the Aspose.Words library. It appears only if PublishTrimmed is specified in the publication settings.

I am attaching a test project:

TestConverter.zip (10.5 KB)

@DenMpei

We have logged a ticket for support of .NET Core 3.0 in Aspose.Words for .NET as WORDSNET-19152. You will be notified via this forum thread once there is an update available on it.

We apologize for your inconvenience.

Tell me, please, how are things going with solving this problem?

@DenMpei

The reason of your problem is that minificator does not see code in virtualized methods and as a result it does not include libraries required by this code into the final build. To work the problem around the you can include this option into the project:

<ItemGroup>
      <TrimmerRootAssembly Include="mscorlib" />
</ItemGroup>

Thank. The problem is solved!

But there is a new error :frowning:

var assembly = Assembly.GetExecutingAssembly();
using (var stream = assembly.GetManifestResourceStream("…Aspose.Words.lic"))
{
license = new License();
license.SetLicense(stream);
}

Object reference not set to an instance of an object…

@DenMpei

We have logged this detail in our issue tracking system. We will investigate the issue and provide you more information on it.

@DenMpei

Please add following options into your project to fix the issue.

    <ItemGroup>
      <TrimmerRootAssembly Include="mscorlib" />
      <TrimmerRootAssembly Include="System.Xml" />
    </ItemGroup>

Thank. The problem is solved!

The issues you have found earlier (filed as WORDSNET-19152) have been fixed in this Aspose.Words for .NET 19.11 update and this Aspose.Words for Java 19.11 update.