babelshift/SteamWebAPI2

SteamWebInterfaceFactory broken in .NET 7

BowDown097 opened this issue · 5 comments

Upgraded my project to .NET 7, now I get this exception upon using the SteamWebInterfaceFactory(string) constructor.
e.txt

Hello,

I have the same issue. Tried to update existing project from .Net 5 to .Net 7 and i have the same exception upon SteamWebInterfaceFactory injection on Startup:

        services.AddSingleton<SteamWebInterfaceFactory>(new SteamWebInterfaceFactory("41C7178A14704C0357A480444C06BV88"));

Resulting exception is the following :

        System.ArgumentException : 'GenericArguments[0], 'SteamWebAPI2.Models.CSGO.ServerStatusResultContainer', on 'T MaxInteger[T](System.Collections.Generic.IEnumerable`1[T])' violates the constraint of type 'T'.'
        Internal exception : VerificationException : Method System.Linq.Enumerable.MaxInteger: type argument 'SteamWebAPI2.Models.CSGO.ServerStatusResultContainer' violates the constraint of type parameter 'T'.

@babelshift Can you have a look into @BowDown097 's PR ?

PR #133 fixes this, please merge and deploy!

Hi, have the same issue, have a look please and merge 🚀

Any chance to get this issue merged?

Thanks and sorry for the delay. Check out NuGet package 4.4.1.