The MVID is not added to the sections #934
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Looking at the code use a C# build: https://github.com/dotnet/roslyn/blob/main/src/Compilers/Core/MSBuildTask/MvidReader.cs
I see it scans the sections for a
.mvidto locate the MVID. If I open, edit, and then write the module, I lose the .mvid section.When debugging, I see that before saving, there are 4 sections, after there are 3.
Looking at the sections builder in the writer, I do only see 3 being written:
github.com/jbevain/cecil@56d4409b8a/Mono.Cecil.PE/ImageWriter.cs (L116-L134)I see the .mvid section being loaded in the module image before