Skip to content

Commit

Permalink
Fixed problem that can be easily reproduced in the .NET SDK 7.0 - mod…
Browse files Browse the repository at this point in the history
…ule can have attributes defined in the module itself.
  • Loading branch information
OlegRa committed Apr 25, 2023
1 parent 7212f6d commit 2003f50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AssemblyGenerator.Modules.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ public void CreateModules(IEnumerable<Module> moduleInfo)

var genericParams = new List<DelayedWrite>();

CreateCustomAttributes(moduleHandle, module.GetCustomAttributesData());
CreateFields(module.GetFields());
CreateTypes(module.GetTypes(), genericParams);
CreateMethods(module.GetMethods(AllMethods), genericParams);
CreateCustomAttributes(moduleHandle, module.GetCustomAttributesData());

// Delaying those writes, because generic parameters must be sorted first.
foreach (var dw in genericParams.OrderBy(tu => tu.Index))
Expand Down

0 comments on commit 2003f50

Please sign in to comment.