developers-hub-org / clash-of-clans-clone

MIT License
29 stars 14 forks source link

Compatibility Issues with 3 Libraries and Net7 #2

Open trihugger opened 5 months ago

trihugger commented 5 months ago

I'm getting 3 errors when trying to Build/Rebuild: Severity Code Description Project File Line Suppression State Error NU1202 Package Microsoft.Win32.SystemEvents 4.7.0 is not compatible with net7.0 (.NETCoreApp,Version=v7.0). Package Microsoft.Win32.SystemEvents 4.7.0 does not support any target frameworks. Clash Dark Server C:\Users\jeffr\Downloads\clash-of-clans-clone-1.0.2\Server\Clash Dark Server.csproj 1

Severity Code Description Project File Line Suppression State Error NU1202 Package System.Security.Cryptography.ProtectedData 4.4.0 is not compatible with net7.0 (.NETCoreApp,Version=v7.0). Package System.Security.Cryptography.ProtectedData 4.4.0 supports:

Severity Code Description Project File Line Suppression State Error NU1202 Package System.Text.Encoding.CodePages 4.4.0 is not compatible with net7.0 (.NETCoreApp,Version=v7.0). Package System.Text.Encoding.CodePages 4.4.0 supports:

Tried restoring dependencies but it doesn't seem to work. I also reinstalled framework to see if it was a local issue and that didn't help.

trihugger commented 5 months ago

I am using the released version 1.0.2 from the zip folder.

armin-a94 commented 5 months ago

Change the target framework in the visual studio. https://learn.microsoft.com/en-us/visualstudio/ide/visual-studio-multi-targeting-overview?view=vs-2022