-
-
Notifications
You must be signed in to change notification settings - Fork 493
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
harmony is not compatible with .net 8 . #543
Comments
What? |
error message is : Object reference not set to an instance of an object. my code run in the .net 7 but if change .net version to 8 casuses raise error |
Not enough information. Also: is NET 8 official yet? |
Microsoft writes about NET 8: |
I'm currently testing using dotnet 8 GA and experiencing following exception:
call stack:
Dependencies:
I looks like MonoMod doesn't support dotnet 8, and according to this MonoMod/MonoMod.Common#31 dotnet 7 either. |
Can confirm this issue with .NET 8 RTM (both with the current release and the pre-release). I'm running a basic Patch command, nothing fancy, not much else is in the stack other than the exception message shared above. Reverting to .NET 7 fixes the issue. |
This issue here won't do anything good. You guys need to open one in the MonoMod project which is used by Harmony to execute the patches. |
The existing Dotnet 8 related issue in MonoMod - MonoMod/MonoMod#136 upd: and another one - MonoMod/MonoMod#149 |
Looks like the fix there MonoMod/MonoMod#150 Waiting for it to be merged and released. |
Fix is merged, this can be closed |
I close it when I have verified and got someone else to verify it too |
@pardeike Any update when can we expect this to be released with the fix Monomod provided? |
There hasn't been a new MonoMod release yet, just because it's merged doesn't mean it's in a release candidate state. Patience. |
Right now I don’t have any ETA because Harmony has a blocking issue with building the right kind of release. On the one hand backwards compatibility is essential but previously merged types from Cecil and MonoMod.Common are no longer available or have changed. On the other hand users demand that Harmony no longer merges dependencies because of type conflicts so a thin version is necessary. Finally, for certain applications a fat Harmony in a single DLL is still the best solution. This is a rather complicated problem that doesn’t get easier if you also have the problem that merging in the project for all architectures and .NET versions in the CI is tricky. I had someone helping me before the summer but that person has not been available since and my experience is limited. Until we solve this in a professional way this blocks the release (and of course MonoMod.Core must first create a NET 8 release). |
Can confirm some degree of support for .NET 8. I have forked harmony and have retargeted it to use net8.0. Code: https://bin.gy/curtherchi
I have not tested Reverse Patching as I personally had no use case for it at the current moment. In testing for a personal project I have not yet found any new issues arising from the retarget. In fact patches compiled with .NET 7 for some reason work with .NET 8. |
hi
i test harmony in .net 7 and its work.
i test harmony in .net 8 and its give error.
The text was updated successfully, but these errors were encountered: