According to https://docs.aspose.com/barcode/net/system-requirements/ Aspose.Barcode does not support .NET at the moment. Can you please confirm if this is the case?
In addition to that, Aspose has a dependency to libgd…...already logged a ticket in our database to add support for .NET6.0...