Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SteamWebInterfaceFactory broken in .NET 7 #132

Closed
BowDown097 opened this issue Nov 14, 2022 · 5 comments
Closed

SteamWebInterfaceFactory broken in .NET 7 #132

BowDown097 opened this issue Nov 14, 2022 · 5 comments

Comments

@BowDown097
Copy link

BowDown097 commented Nov 14, 2022

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

hoppel added a commit to hoppel/SteamWebAPI2 that referenced this issue Nov 15, 2022
@Land3r
Copy link

Land3r commented Nov 30, 2022

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 ?

@RainOrigami
Copy link

PR #133 fixes this, please merge and deploy!

@ablizorukov
Copy link

ablizorukov commented Apr 2, 2023

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

@emmanuelrflores
Copy link

Any chance to get this issue merged?

@babelshift
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants