dnSpyEx / dnSpy

Unofficial revival of the well known .NET debugger and assembly editor, dnSpy
GNU General Public License v3.0
7.01k stars 459 forks source link

CS0266 Error #302

Open Fang717 opened 8 months ago

Fang717 commented 8 months ago

dnSpyEx version

6.5.0

Describe the Bug

I cannot re-compile the source code after dnSpyEX decompiling. This is a casting problem. Here are 2 files : dnSpyEx 6.5.0 x86 and ILSpy 6.2.1 x86 dnSpyEx.zip ILSpy.zip

How To Reproduce

Please check these sources code from dnSpyEX and ILSpy

Expected Behavior

I think dnSpy should generate corrected output.

Actual Behavior

Please above.

Additional Context

No response

Fang717 commented 8 months ago

I hope I did everything correctly. It was my first bug report. :-)

ElektroKill commented 8 months ago

Hello, would it be possible for you to provide me with the file you are trying to decompile? This way I can reproduce the issue easily on my system and work on finding a potential fix! This looks like an issue with type inference so it might be very complicated to fix in the current decompiler or it could be easy, without the file I cannot really judge this accurately. If it's the first case, then it will likely be fixed when the decompiler engine is updated.

If you do not want to upload the file to GitHub, you can email it to me at elektrokilldev@protonmail.com

Oodachi commented 7 months ago

ILSpy ILSpy

dnSpy dnSpy

Rider Rider

DDL E1100.zip

ElektroKill commented 7 months ago

ILSpy ILSpy

dnSpy dnSpy

Rider Rider

DDL E1100.zip

What error are you reporting here? the same error as the original issue? Could you perhaps pinpoint where this error occurs? Furthermore, when providing sample files, please include all necessary dependency files required for this file. Without it the decompilation will not be accurate.

Oodachi commented 7 months ago

What error are you reporting here?

I cannot re-compile the source code after dnSpyEX decompiling.

the same error as the original issue?

I think so.

Could you perhaps pinpoint where this error occurs?

image

Furthermore, when providing sample files, please include all necessary dependency files required for this file. Without it the decompilation will not be accurate.

ddl.zip

ElektroKill commented 7 months ago

What error are you reporting here?

I cannot re-compile the source code after dnSpyEX decompiling.

the same error as the original issue?

I think so.

Could you perhaps pinpoint where this error occurs?

image

Furthermore, when providing sample files, please include all necessary dependency files required for this file. Without it the decompilation will not be accurate.

ddl.zip

This issue with NullableContext is a different issue from the original issue reported here regarding casting. Next time please refrain from hijacking issues that are not related. Your issue will be fixed when #5 gets resolved.