C
C#2y ago
Zuya

❔ C# .NET Framework 4.8 Libraries usage in .NET 7.0

Hello, so i basically re-worked my whole Repo which was using .NET Framework 4.8 to .NET 7.0 (Because of the massive boost in performance). I have a ServiceClient using RealProxy which isnt available in .NET 7.0. So, i basically compiled my old ServiceClient and i am now importing the .DLL into my new .NET 7.0 repo. It works, can call it and use the Methods from it. Now i was wondering, will i run into issues? Because .NET Framework 4.8 shouldnt be compatible with .NET 7.0, or will it just work because it is already decompiled and just a Library? Really need some thoughts here
6 Replies
Zuya
ZuyaOP2y ago
To say: The Library i use, is using RealProxy
Angius
Angius2y ago
RealProxy was superseded by DispatchProxy it seems: https://stackoverflow.com/a/48150664/6042255 Hard to say whether you'll run into issues or not. It's entirely possible, for example, that RealProxy uses some underlying Windows mechanisms and thus, the bot will break when hosted on a Linux VPS
reflectronic
reflectronic2y ago
you can reference .NET Framework libraries from .NET 7, but anything that doesn't exist in .NET 7 will crash at runtime so, your use of RealProxy is going to crash with TypeLoadException as soon as you try to use it
Mohamed
Mohamed2y ago
How can I FIX THIS ERROR
SG97
SG972y ago
why are you spamming that on atleast 2 threads @Miyamoto
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server