40 references to GetEntryAssembly
Aspire.Hosting (2)
Dashboard\DashboardEventHandlers.cs (1)
96var entryAssembly = Assembly.GetEntryAssembly();
DistributedApplicationOptions.cs (1)
217var appHostAssembly = 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.Build.Framework (1)
AssemblyUtilities.cs (1)
128return System.Reflection.Assembly.GetEntryAssembly();
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)
382var testHostNextToRunner = Path.Combine(Path.GetDirectoryName(Assembly.GetEntryAssembly()!.Location)!, "testhost.dll");
NuGet.Protocol (1)
Plugins\Logging\AssemblyLogMessage.cs (1)
23var 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 (2)
RootCommand.cs (1)
85_toolCommandName = Assembly.GetEntryAssembly()?
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)
22return GetEntryAssembly();
System.Private.Xml (2)
System\Xml\Serialization\Compilation.cs (2)
239if ((string.IsNullOrEmpty(path) || !File.Exists(path)) && !string.IsNullOrEmpty(Assembly.GetEntryAssembly()?.Location)) 241path = Path.Combine(Path.GetDirectoryName(Assembly.GetEntryAssembly()!.Location)!, $"{assemblyName}.dll");
System.Windows.Forms (5)
System\Windows\Forms\Application.cs (5)
169Assembly? entryAssembly = Assembly.GetEntryAssembly(); 501if (Assembly.GetEntryAssembly() is { } entryAssembly) 550Assembly? entryAssembly = Assembly.GetEntryAssembly(); 1150Assembly? exe = Assembly.GetEntryAssembly(); 1296if (Assembly.GetEntryAssembly() is null)