This is a follow up on this answer (and it’s comments). What is the difference between getting an executable name from assembly vs process?
System.Reflection.Assembly.GetCallingAssembly.GetEntryAssembly().CodeBase
vs
Process.GetCurrentProcess().ProcessName
I’m assuming these will be the same all the time? No? Are there pros and cons?
ProcessName is the name of the Operating System host process.
Assembly CodeBase points to an assembly inside a given process. The same assembly can be hosted by different processes.