Closed tangyanzhi closed 1 year ago
.obj
file format is a binary file format, similar to .exe
. One doesn't use Notepad to inspect either of those. You can e.g. use dumpbin /all repro.obj
to look at the contents. Docs for dumpbin are here: https://learn.microsoft.com/en-us/cpp/build/reference/dumpbin-command-line?view=msvc-170. There are other tools that can open this too, searching the internet helps.
.obj
file format is a binary file format, similar to.exe
. One doesn't use Notepad to inspect either of those. You can e.g. usedumpbin /all repro.obj
to look at the contents. Docs for dumpbin are here: https://learn.microsoft.com/en-us/cpp/build/reference/dumpbin-command-line?view=msvc-170. There are other tools that can open this too, searching the internet helps.
Use .Net7, i can open this repro.obj file with Notepad, why not now?
.obj
file format is a binary file format, similar to.exe
. One doesn't use Notepad to inspect either of those. You can e.g. usedumpbin /all repro.obj
to look at the contents. Docs for dumpbin are here: https://learn.microsoft.com/en-us/cpp/build/reference/dumpbin-command-line?view=msvc-170. There are other tools that can open this too, searching the internet helps.Use .Net7, i can open this repro.obj file with Notepad, why not now?
Can you post a screenshot of what you see?
.obj
file format is a binary file format, similar to.exe
. One doesn't use Notepad to inspect either of those. You can e.g. usedumpbin /all repro.obj
to look at the contents. Docs for dumpbin are here: https://learn.microsoft.com/en-us/cpp/build/reference/dumpbin-command-line?view=msvc-170. There are other tools that can open this too, searching the internet helps.Use .Net7, i can open this repro.obj file with Notepad, why not now?
Can you post a screenshot of what you see?
yes ,A few previous images can be found
yes ,A few previous images can be found
This is not contents of the obj file opened in Notepad. This is a disassembly. Whatever produced the disassembly for the .NET 7 object file should be able to produce it for .NET 8 as well, but I don't know what you used on 7.
yes ,A few previous images can be found
This is not contents of the obj file opened in Notepad. This is a disassembly. Whatever produced the disassembly for the .NET 7 object file should be able to produce it for .NET 8 as well, but I don't know what you used on 7.
This is Notepad
Inside obj are assembly code and other debugging symbols for linking purposes. I remember opening it with Notepad before, but now I don't know why it doesn't work.
yes ,A few previous images can be found
This is not contents of the obj file opened in Notepad. This is a disassembly. Whatever produced the disassembly for the .NET 7 object file should be able to produce it for .NET 8 as well, but I don't know what you used on 7.
Sorry, I remember, at that time I exported repro.obj to notepad via dumpbin, so the screenshot is notepad, but not obj files cannot be opened directly with notepad.
Thank you for your answer
Description
I ran the ILCompiler project, generated the repro.obj file, opened repro.obj with Notepad and saw garbled characters, how to solve this problem?
repro.obj path is:...\artifacts\bin\repro\x64\Debug
Reproduction Steps
As shown above
Expected behavior
I want to open repro.obj to see what's inside
Actual behavior
I want to open repro.obj to see what's inside, but it's garbled
Regression?
No response
Known Workarounds
No response
Configuration
Other information
No response