48 references to GetEntryAssembly
Aspire.Hosting (1)
DistributedApplicationOptions.cs (1)
96var appHostAssembly = Assembly.GetEntryAssembly();
Aspire.Hosting.Azure (1)
Provisioning\Provisioners\AzureProvisioner.cs (1)
211return Assembly.GetEntryAssembly()?.GetCustomAttribute<UserSecretsIdAttribute>()?.UserSecretsId switch
Microsoft.AspNetCore.Components.WebAssembly (1)
Hosting\WebAssemblyHostBuilder.cs (1)
75var assembly = Assembly.GetEntryAssembly();
Microsoft.AspNetCore.Components.WebView (1)
WebViewManager.cs (1)
298var 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.AspNetCore.Tests (1)
WebApplicationTests.cs (1)
924var assemblyName = Assembly.GetEntryAssembly().GetName().Name;
Microsoft.Build.Framework (1)
AssemblyUtilities.cs (1)
155return System.Reflection.Assembly.GetEntryAssembly();
Microsoft.DotNet.AsmDiff (1)
DiffCSharpWriter.cs (1)
378Assembly entryAssembly = Assembly.GetEntryAssembly();
Microsoft.DotNet.SwaggerGenerator.CmdLine (1)
Program.cs (1)
60string versionString = 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.VisualBasic.Tests (1)
Microsoft\VisualBasic\ApplicationServices\ApplicationBaseTests.cs (1)
80var assembly = System.Reflection.Assembly.GetEntryAssembly() ?? System.Reflection.Assembly.GetCallingAssembly();
MSBuildTaskHost (1)
AssemblyUtilities.cs (1)
155return System.Reflection.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.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.Diagnostics.TraceSource (1)
System\Diagnostics\TraceInternal.cs (1)
84internal static string AppName => s_appName ??= Assembly.GetEntryAssembly()?.GetName().Name ?? string.Empty;
System.IO.IsolatedStorage (1)
System\IO\IsolatedStorage\Helper.cs (1)
107Assembly? assembly = Assembly.GetEntryAssembly();
System.Private.CoreLib (4)
src\libraries\System.Private.CoreLib\src\System\AppContext.AnyOS.cs (1)
24string? path = Assembly.GetEntryAssembly()?.Location;
src\libraries\System.Private.CoreLib\src\System\AppContext.cs (1)
35Assembly.GetEntryAssembly()?.GetCustomAttribute<TargetFrameworkAttribute>()?.FrameworkName;
src\libraries\System.Private.CoreLib\src\System\AppDomain.cs (1)
69Assembly? assembly = Assembly.GetEntryAssembly();
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\TypeMapLazyDictionary.cs (1)
192RuntimeAssembly? startingAssembly = (RuntimeAssembly?)Assembly.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)
172Assembly? entryAssembly = Assembly.GetEntryAssembly(); 465if (Assembly.GetEntryAssembly() is { } entryAssembly) 514Assembly? entryAssembly = Assembly.GetEntryAssembly(); 1114Assembly? exe = Assembly.GetEntryAssembly(); 1260if (Assembly.GetEntryAssembly() is null)
WindowsBase.Tests (3)
System\Windows\SplashScreenTests.cs (3)
33new SplashScreen(Assembly.GetEntryAssembly(), resourceName); 40Assert.Throws<ArgumentNullException>("resourceName", () => new SplashScreen(Assembly.GetEntryAssembly(), null)); 47Assert.Throws<ArgumentNullException>("resourceName", () => new SplashScreen(Assembly.GetEntryAssembly(), string.Empty));
xunit.console (2)
common\AssemblyResolution\Microsoft.Extensions.DependencyModel\DependencyContext.cs (1)
79var entryAssembly = Assembly.GetEntryAssembly();
common\AssemblyResolution\Microsoft.Extensions.DependencyModel\DependencyContextLoader.cs (1)
45return assembly.Equals(Assembly.GetEntryAssembly());