.NET framework 4.7.2 assembly loading with BuildManager
Nam Nguyen
0
Reputation points
Hi,
My .net project uses a skeleton library that calls BuildManager.GetReferencedAssemblies in .NET framework 4.7.2 to get assemblies in order to initialize modules to start the application.
⚠️It was observed that the function returned an AssemblySet having different indexes in each execution. if the app modules (or assemblies) are dependent and need to be run in a sequence, the app start will be failed.
Example:
- The first execution: (A, B, C)
- The second execution: (C, B, A)
- The third executuion: (B, A, C)
Can anyone give advice for this issue?
Is there any environmental config to ensure the index is same always?
Many thanks.
Sign in to answer