45 references to GetEntryAssembly
Aspire.Hosting (2)
Dashboard\DashboardEventHandlers.cs (1)
96var entryAssembly = Assembly.GetEntryAssembly();
DistributedApplicationOptions.cs (1)
217var appHostAssembly = Assembly.GetEntryAssembly();
Microsoft.AspNetCore.Components.WebAssembly (1)
Hosting\WebAssemblyHostBuilder.cs (1)
88var assembly = Assembly.GetEntryAssembly();
Microsoft.AspNetCore.Components.WebView (1)
WebViewManager.cs (1)
300var assembly = Assembly.GetEntryAssembly();
Microsoft.AspNetCore.Components.WebView.Maui (1)
src\BlazorWebView\src\SharedSource\StaticContentHotReloadManager.cs (1)
24 private static string ApplicationAssemblyName { get; } = Assembly.GetEntryAssembly()?.GetName().Name
Microsoft.AspNetCore.Components.WebView.WindowsForms (3)
BlazorWebView.cs (1)
176 var entryAssemblyLocation = Assembly.GetEntryAssembly()?.Location;
src\BlazorWebView\src\SharedSource\StaticContentHotReloadManager.cs (1)
24 private static string ApplicationAssemblyName { get; } = Assembly.GetEntryAssembly()?.GetName().Name
src\BlazorWebView\src\SharedSource\WebView2WebViewManager.cs (1)
409 if (Assembly.GetEntryAssembly() is { } mainAssembly)
Microsoft.AspNetCore.Components.WebView.Wpf (3)
BlazorWebView.cs (1)
259 var entryAssemblyLocation = Assembly.GetEntryAssembly()?.Location;
src\BlazorWebView\src\SharedSource\StaticContentHotReloadManager.cs (1)
24 private static string ApplicationAssemblyName { get; } = Assembly.GetEntryAssembly()?.GetName().Name
src\BlazorWebView\src\SharedSource\WebView2WebViewManager.cs (1)
409 if (Assembly.GetEntryAssembly() is { } mainAssembly)
Microsoft.AspNetCore.Hosting (1)
Internal\WebHostOptions.cs (1)
20ApplicationName = environment?.ApplicationName ?? GetConfig(WebHostDefaults.ApplicationKey) ?? Assembly.GetEntryAssembly()?.GetName().Name ?? string.Empty;
Microsoft.AspNetCore.Identity.UI (1)
IdentityBuilderUIExtensions.cs (1)
45if (!TryResolveUIFramework(Assembly.GetEntryAssembly(), out var framework) &&
Microsoft.Build.Framework (1)
BuildEnvironmentHelper.cs (1)
461string entryAssemblyPath = System.Reflection.Assembly.GetEntryAssembly()?.Location;
Microsoft.Extensions.DependencyModel (2)
DependencyContext.cs (1)
67var entryAssembly = Assembly.GetEntryAssembly();
DependencyContextLoader.cs (1)
46return assembly.Equals(Assembly.GetEntryAssembly());
Microsoft.Extensions.Hosting (1)
HostBuilder.cs (1)
239applicationName = Assembly.GetEntryAssembly()?.GetName().Name;
Microsoft.TestPlatform.PlatformAbstractions (1)
netcore\System\ProcessHelper.cs (1)
21return Path.GetDirectoryName(Assembly.GetEntryAssembly()!.Location)!;
Microsoft.TestPlatform.TestHostRuntimeProvider (1)
Hosting\DotnetTestHostManager.cs (1)
419var testHostNextToRunner = Path.Combine(Path.GetDirectoryName(Assembly.GetEntryAssembly()!.Location)!, "testhost.dll");
NuGet.Protocol (1)
Plugins\Logging\AssemblyLogMessage.cs (1)
21var entryAssembly = Assembly.GetEntryAssembly();
PresentationCore (3)
ModuleInitializer.cs (1)
41Assembly assemblyApp = Assembly.GetEntryAssembly();
System\Windows\InterOp\HwndSourceParameters.cs (1)
422if (ReflectionUtils.GetAssemblyPartialName(Assembly.GetEntryAssembly()).Equals("drthwndsource", StringComparison.CurrentCultureIgnoreCase))
System\Windows\Navigation\BaseUriHelper.cs (1)
411_resourceAssembly = Assembly.GetEntryAssembly();
PresentationFramework (2)
System\Windows\Application.cs (2)
1076_resourceAssembly = Assembly.GetEntryAssembly(); 1088if ((_resourceAssembly == null) && (Assembly.GetEntryAssembly() == null))
System.CommandLine (4)
RootCommand.cs (3)
74/// <item><description>The <c>System.CommandLine.ExecutableName</c> value read from <see cref="AppContext"/>, when there is no managed entry point (<see cref="Assembly.GetEntryAssembly"/> returns <see langword="null"/>) - most notably when hosted as a NativeAOT native library. In that case <see cref="Environment.GetCommandLineArgs"/> reflects the host process rather than this component. The value is emitted into the app's <c>runtimeconfig.json</c> by the <c>System.CommandLine</c> build targets and defaults to the assembly name.</description></item> 94_toolCommandName = Assembly.GetEntryAssembly()? 117if (Assembly.GetEntryAssembly() is null
VersionOption.cs (1)
82var assembly = Assembly.GetEntryAssembly() ?? Assembly.GetExecutingAssembly();
System.ComponentModel.TypeConverter (1)
System\ComponentModel\Design\DesigntimeLicenseContext.cs (1)
65resourceAssembly ??= Assembly.GetEntryAssembly();
System.Configuration.ConfigurationManager (2)
System\Configuration\ClientConfigPaths.cs (2)
55exeAssembly = Assembly.GetEntryAssembly(); 242Assembly assembly = Assembly.GetEntryAssembly();
System.Data.OleDb (1)
System\Data\ProviderBase\DbConnectionPoolCounters.cs (1)
212Assembly? assembly = Assembly.GetEntryAssembly();
System.Diagnostics.TraceSource (1)
System\Diagnostics\TraceInternal.cs (1)
83internal static string AppName => field ??= Assembly.GetEntryAssembly()?.GetName().Name ?? string.Empty;
System.IO.IsolatedStorage (1)
System\IO\IsolatedStorage\Helper.cs (1)
107Assembly? assembly = Assembly.GetEntryAssembly();
System.Private.CoreLib (3)
src\runtime\src\libraries\System.Private.CoreLib\src\System\AppContext.cs (1)
37Assembly.GetEntryAssembly()?.GetCustomAttribute<TargetFrameworkAttribute>()?.FrameworkName;
src\runtime\src\libraries\System.Private.CoreLib\src\System\AppDomain.cs (1)
68Assembly? assembly = Assembly.GetEntryAssembly();
System\Reflection\Assembly.NativeAot.cs (1)
26return GetEntryAssembly();
System.Private.Xml (2)
System\Xml\Serialization\Compilation.cs (2)
240if ((string.IsNullOrEmpty(path) || !File.Exists(path)) && !string.IsNullOrEmpty(Assembly.GetEntryAssembly()?.Location)) 242path = Path.Combine(Path.GetDirectoryName(Assembly.GetEntryAssembly()!.Location)!, $"{assemblyName}.dll");
System.Windows.Forms (5)
System\Windows\Forms\Application.cs (5)
174Assembly? entryAssembly = Assembly.GetEntryAssembly(); 575if (Assembly.GetEntryAssembly() is { } entryAssembly) 624Assembly? entryAssembly = Assembly.GetEntryAssembly(); 1304Assembly? exe = Assembly.GetEntryAssembly(); 1450if (Assembly.GetEntryAssembly() is null)