feature23 / StringSimilarity.NET

A .NET port of java-string-similarity
Other
446 stars 70 forks source link

Does it support .NET Framewrok 4.7.2? #37

Open foxi69 opened 8 months ago

foxi69 commented 8 months ago

Version 5.1.0 works flawlessly, but 6.0 does not with 4.7.2

paulirwin commented 7 months ago

Hello, can you provide more details about what the problem is? The library targets .NET Standard 2.0 which should support .NET Framework 4.7.2, but we do not actively test against .NET Framework.

We will eventually drop .NET Framework/Standard support, leaving the historical releases that support it still available. But for now we do want to continue to support .NET Standard releases where feasible. Thanks!

foxi69 commented 7 months ago

JaroWinkler jw = new JaroWinkler(); double similarityValue = jw.Similarity(name, game.Name);


Method name : MoveNext Date : 2024. 03. 03. 10:50:16 Version : 6.0.0

Exception type : System.BadImageFormatException Message : Could not load file or assembly 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. Reference assemblies should not be loaded for execution. They can only be loaded in the Reflection-only loader context. (Exception from HRESULT: 0x80131058) StackTrace : at System.MemoryExtensions.AsSpan(String text) at F23.StringSimilarity.JaroWinkler.Similarity(String s1, String s2) at MultiUploader.Categories.GameCategory.<>c__DisplayClass9_0.b1(HtmlNode foundGameInSearch) at System.Linq.Enumerable.WhereSelectEnumerableIterator2.MoveNext() at System.Linq.Enumerable.WhereEnumerableIterator1.MoveNext() at System.Linq.Buffer1..ctor(IEnumerable1 source) at System.Linq.OrderedEnumerable`1.d1.MoveNext() at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source) at MultiUploader.Categories.GameCategory.d__9.MoveNext() Exception type : System.BadImageFormatException Message : Cannot load a reference assembly for execution. StackTrace :

With https://marketplace.visualstudio.com/items?itemName=VisualStudioClient.MicrosoftVisualStudio2017InstallerProjects