← Back
Nick Chapsas September 18, 2025 40s

Assembly Info is tricky in .NET

Summary

The transcript discusses the differences between Assembly.GetExecuting and Assembly.GetEntry methods in .NET programming, explaining how they retrieve different assembly information. The key distinctions are that GetExecuting returns the assembly currently running, even in shared libraries, while GetEntry returns the assembly that started the application, such as the main executable. The practical advice is to use GetExecuting in shared libraries to find the current context and GetEntry in host applications to find the root, while being aware that GetEntry can return null in certain scenarios like unit tests.

View original episode ↗