We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2326c8e commit 6bf07d3Copy full SHA for 6bf07d3
src/CommandLineUtils/Internal/ReflectionAppBuilder.cs
@@ -82,7 +82,10 @@ private void EnsureInitialized()
82
83
if (App.Name == null)
84
{
85
- App.Name = type.Name;
+ var assembly = Assembly.GetEntryAssembly() == null
86
+ ? typeInfo.Assembly
87
+ : Assembly.GetEntryAssembly();
88
+ App.Name = assembly.GetName().Name;
89
}
90
91
if (parsingOptionsAttr?.ThrowOnUnexpectedArgument == false)
0 commit comments