StringSimilarity.NET icon indicating copy to clipboard operation
StringSimilarity.NET copied to clipboard

Does it support .NET Framewrok 4.7.2?

Open foxi69 opened this issue 1 year ago • 2 comments

Version 5.1.0 works flawlessly, but 6.0 does not with 4.7.2

foxi69 avatar Jan 29 '24 08:01 foxi69

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!

paulirwin avatar Feb 17 '24 17:02 paulirwin

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.<SearchGameWithNameOnSteamAsync>b__1(HtmlNode foundGameInSearch) at System.Linq.Enumerable.WhereSelectEnumerableIterator2.MoveNext() at System.Linq.Enumerable.WhereEnumerableIterator1.MoveNext() at System.Linq.Buffer1..ctor(IEnumerable1 source) at System.Linq.OrderedEnumerable1.<GetEnumerator>d__1.MoveNext() at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable1 source) at MultiUploader.Categories.GameCategory.<SearchGameWithNameOnSteamAsync>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

foxi69 avatar Mar 03 '24 09:03 foxi69