We are trying to load the license file with this code
new License().SetLicense($"{System.AppContext.BaseDirectory}GroupDocs.Comparison.NET.lic");
This works fine when the application is compiled in .NET Framework 4.8. When we compile using net6.0, it throws an exception.