Open TheKolyian4ik opened 11 months ago
This problem occurs when ILSpy could not load the assembly that defines DefaultInterpolatedStringHandler
and gets confused whether it is dealing with a class or struct. Ensure you have the necessary reference assemblies loaded.
Thank you for explaining that. But which assembly defines DefaultInterpolatedStringHandler?
@dgrunwald that type is a standard .NET type but it was added in .NET6
so the question to @TheKolyian4ik - do you have .NET6 (or higher) installed?
@greenozon yes, I do have .NET6 installed. But it still gives me
((DefaultInterpolatedStringHandler)(ref val))
also there is
.ctor(5, 3);
or
_002Ector(5, 3);
which also gives errors.
Try running dotnet --list-runtimes
.
Also, you can obtain the source from their repository to compile, without decompiling.
I was trying to decompile tModLoader., change the code and compile. When I open the decompiled code in Visual Studio 2022 it gave me ~1500 errors. CS1525 Invalid expression term "ref" and a few CS1073
Here in tModLoader\UwUPnP\Gateway.cs every (ref val) gives an error
How do I fix this?