We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Aspose.PDF .NET 6 detected as malware when compiled with "ReadyToRun"

Hi,
Ready to Run is a feature in .NET Core 3.0 and later where assemblies are precompiled for faster loading (see https://docs.microsoft.com/en-us/dotnet/core/deploying/ready-to-run). However, when we compile with Ready to Run with the .NET 6 SDK, the resulting file gets detected as malware by multiple anti-virus providers.
The anti-malware providers we have had issues with so far is:

  • Bitdefender endpoint security tools
  • Cyberreason

This only happens with Aspose.PDF, the rest of the Aspose libraries we use (Words, Cells, Slides) seems to be OK. We use Aspose.PDF 22.6. The issue has been there in earlier versions as well.

The malware it detects it as is IL:Trojan.MSILZilla.10889

We compile our application using the following arguments:
dotnet publish --configuration Release --framework net6.0 --output “C:\whatever” -r:win-x64 -p:PublishReadyToRun=true -p:PublishReadyToRunShowWarnings=true --no-self-contained whatever.csproj

Ready to Run docs:

Is this a known issue? Is there any workarounds?

@hallgeirl

We have logged this problem in our issue tracking system as PDFNET-52053. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.