The MVID is not added to the sections #934

Open
opened 2024-03-05 20:52:17 -06:00 by mattleibow · 1 comment
mattleibow commented 2024-03-05 20:52:17 -06:00 (Migrated from github.com)

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 .mvid to 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 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 `.mvid` to 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.
mattleibow commented 2024-03-05 20:53:39 -06:00 (Migrated from github.com)

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

Looking at the sections builder in the writer, I do only see 3 being written: https://github.com/jbevain/cecil/blob/56d4409b8a0165830565c6e3f96f41bead2c418b/Mono.Cecil.PE/ImageWriter.cs#L116-L134 I see the .mvid section being loaded in the module image before
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gh-jbevain/cecil#934
No description provided.