245 instantiations of AssemblyName
Aspire.Hosting.Tests (3)
UserSecretsParameterDefaultTests.cs (3)
25new("TestAssembly"), AssemblyBuilderAccess.RunAndCollect, [new CustomAttributeBuilder(s_userSecretsIdAttrCtor, [userSecretsId])]); 40var testAssembly = AssemblyBuilder.DefineDynamicAssembly(new("TestAssembly"), AssemblyBuilderAccess.RunAndCollect, []); 68new("TestAssembly"), AssemblyBuilderAccess.RunAndCollect, [new CustomAttributeBuilder(s_userSecretsIdAttrCtor, [userSecretsId])]);
dotnet-svcutil.xmlserializer (1)
Microsoft\Tools\ServiceModel\SvcUtil\TypeResolver.cs (1)
33AssemblyName assemblyName = new AssemblyName(args.Name);
dotnet-svcutil-lib (3)
FrameworkFork\Microsoft.CodeDom\Compiler\CompilerResults.cs (1)
74AssemblyName assemName = new AssemblyName();
FrameworkFork\Microsoft.CodeDom\Microsoft\CSharpCodeProvider.cs (1)
3947results.CompiledAssembly = Assembly.Load(new AssemblyName(options.OutputAssembly));
TypeLoader.cs (1)
29return Assembly.Load(new AssemblyName(path));
GetDocument.Insider (1)
Commands\GetDocumentCommandWorker.cs (1)
57var assemblyName = new AssemblyName(_context.AssemblyName);
LocalizationWebsite (2)
StartupResourcesInClassLibrary.cs (2)
40var noAttributeName = new AssemblyName(noAttributeAssembly.FullName).Name; 46var withAttributeName = new AssemblyName(withAttributeAssembly.FullName).Name;
Microsoft.Arcade.Common (1)
src\Common\Internal\AssemblyResolver.cs (1)
35AssemblyName referenceName = new AssemblyName(AppDomain.CurrentDomain.ApplyPolicy(args.Name));
Microsoft.AspNetCore (2)
WebApplicationBuilder.cs (1)
280var appAssembly = Assembly.Load(new AssemblyName(env.ApplicationName));
WebHost.cs (1)
179var appAssembly = Assembly.Load(new AssemblyName(env.ApplicationName));
Microsoft.AspNetCore.Hosting (4)
GenericHost\GenericWebHostBuilder.cs (1)
139var assembly = Assembly.Load(new AssemblyName(assemblyName));
Internal\StartupLoader.cs (1)
250var assembly = Assembly.Load(new AssemblyName(startupAssemblyName));
src\Shared\ErrorPage\ErrorPageModelBuilder.cs (1)
25var assemblyVersion = new AssemblyName(systemRuntimeAssembly.FullName!).Version?.ToString() ?? string.Empty;
WebHostBuilder.cs (1)
232var assembly = Assembly.Load(new AssemblyName(assemblyName));
Microsoft.AspNetCore.InternalTesting.Tests (1)
TestableAssembly.cs (1)
66var assemblyName = new AssemblyName(testAssemblyName);
Microsoft.AspNetCore.Mvc.Core (2)
ApplicationParts\ApplicationPartManager.cs (1)
77var entryAssembly = Assembly.Load(new AssemblyName(entryAssemblyName));
ApplicationParts\RelatedAssemblyAttribute.cs (1)
99var relatedAssemblyName = new AssemblyName(attribute.AssemblyFileName);
Microsoft.AspNetCore.Mvc.Core.Test (4)
ApplicationParts\RelatedAssemblyPartTest.cs (2)
18var name = new AssemblyName($"DynamicAssembly-{Guid.NewGuid()}"); 84return new AssemblyName("MyAssembly");
DependencyInjection\MvcBuilderExtensionsTest.cs (1)
42var assembly = AssemblyBuilder.DefineDynamicAssembly(new AssemblyName("Test"), AssemblyBuilderAccess.Run);
DependencyInjection\MvcCoreBuilderExtensionsTest.cs (1)
39var assembly = AssemblyBuilder.DefineDynamicAssembly(new AssemblyName("Test"), AssemblyBuilderAccess.Run);
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (1)
CSharpCompiler.cs (1)
93var applicationAssembly = Assembly.Load(new AssemblyName(_hostingEnvironment.ApplicationName));
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (1)
AssemblyPartExtensionTest.cs (1)
48var name = new AssemblyName($"DynamicAssembly-{Guid.NewGuid()}");
Microsoft.AspNetCore.Server.IIS (1)
src\Shared\ErrorPage\ErrorPageModelBuilder.cs (1)
25var assemblyVersion = new AssemblyName(systemRuntimeAssembly.FullName!).Version?.ToString() ?? string.Empty;
Microsoft.AspNetCore.SignalR.Core (1)
Internal\TypedClientBuilder.cs (1)
40var assemblyName = new AssemblyName(ClientModuleName);
Microsoft.Build (6)
AssemblyNameExtension.cs (4)
150asAssemblyName = new AssemblyName 507a1 = new AssemblyName(asString); 511a2 = new AssemblyName(that.asString); 822AssemblyName assemblyName = new AssemblyName(displayName);
BackEnd\Components\SdkResolution\SdkResolverLoader.cs (1)
242AssemblyName assemblyName = new AssemblyName(resolverFileName)
TranslatorHelpers.cs (1)
264assemblyName = new AssemblyName
Microsoft.Build.Engine.UnitTests (13)
AssemblyNameEx_Tests.cs (11)
82return new AssemblyNameExtension(new AssemblyName(name)); 87return new AssemblyNameExtension(new AssemblyName(name.ToLower())); 92AssemblyNameExtension result = new AssemblyNameExtension(new AssemblyName(name)); 114AssemblyName baseName1 = new AssemblyName(assemblyString1); 118AssemblyName baseName2 = new AssemblyName(assemblyString2); 149AssemblyName baseName1 = new AssemblyName(assemblyString1); 153AssemblyName baseName2 = new AssemblyName(assemblyString2); 233AssemblyName baseName1 = new AssemblyName(assemblyString1); 237AssemblyName baseName2 = new AssemblyName(assemblyString2); 274AssemblyName baseName1 = new AssemblyName(assemblyString1); 278AssemblyName baseName2 = new AssemblyName(assemblyString2);
BackEnd\BinaryTranslator_Tests.cs (2)
643AssemblyName value = new() 670AssemblyName value = new();
Microsoft.Build.Framework (1)
AssemblyUtilities.cs (1)
87AssemblyName name = new AssemblyName();
Microsoft.Build.Tasks.Core (16)
AssemblyDependency\AssemblyInformation.cs (1)
546var assemblyName = new AssemblyName
AssemblyDependency\GenerateBindingRedirects.cs (1)
373var assemblyIdentity = new AssemblyName(redirectStr);
AssemblyDependency\ReferenceTable.cs (2)
2246AssemblyName an1 = new AssemblyName(assemblyIdentity1); 2247AssemblyName an2 = new AssemblyName(assemblyIdentity2);
AssemblyNameExtension.cs (4)
150asAssemblyName = new AssemblyName 507a1 = new AssemblyName(asString); 511a2 = new AssemblyName(that.asString); 822AssemblyName assemblyName = new AssemblyName(displayName);
ManifestUtil\MetadataReader.cs (1)
172AssemblyName an = new AssemblyName();
NativeMethods.cs (3)
1327_assemblyNameVersion = new AssemblyName(assemblyName); 1393var name = new AssemblyName 1445var assemblyNameVersion = new AssemblyName(strongName);
ResourceHandling\MSBuildResXReader.cs (1)
63AssemblyName assemblyName = new AssemblyName(name);
RoslynCodeTaskFactory\RoslynCodeTaskFactory.cs (1)
588handlerAddedToAppDomain = (_, eventArgs) => TryLoadAssembly(directoriesToAddToAppDomain, new AssemblyName(eventArgs.Name));
TranslatorHelpers.cs (1)
264assemblyName = new AssemblyName
XslTransformation.cs (1)
506AssemblyName assemblyName = new AssemblyName { CodeBase = assemblyPath };
Microsoft.Build.Tasks.UnitTests (11)
AssemblyNameEx_Tests.cs (11)
82return new AssemblyNameExtension(new AssemblyName(name)); 87return new AssemblyNameExtension(new AssemblyName(name.ToLower())); 92AssemblyNameExtension result = new AssemblyNameExtension(new AssemblyName(name)); 114AssemblyName baseName1 = new AssemblyName(assemblyString1); 118AssemblyName baseName2 = new AssemblyName(assemblyString2); 149AssemblyName baseName1 = new AssemblyName(assemblyString1); 153AssemblyName baseName2 = new AssemblyName(assemblyString2); 233AssemblyName baseName1 = new AssemblyName(assemblyString1); 237AssemblyName baseName2 = new AssemblyName(assemblyString2); 274AssemblyName baseName1 = new AssemblyName(assemblyString1); 278AssemblyName baseName2 = new AssemblyName(assemblyString2);
Microsoft.Cci.Extensions (2)
Extensions\AssemblyIdentityHelpers.cs (2)
15var name = new System.Reflection.AssemblyName(); 24var name = new System.Reflection.AssemblyName(formattedName);
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Helpers\MefHostServicesHelpers.cs (1)
45var assemblyName = new AssemblyName(string.Format("{0}, Version={1}, Culture=neutral, PublicKeyToken={2}", assemblySimpleName, assemblyVersion, publicKeyToken));
Microsoft.CodeAnalysis.LanguageServer (1)
CustomExportAssemblyLoader.cs (1)
37var assemblyName = new AssemblyName(assemblyFullName);
Microsoft.CodeAnalysis.Remote.ServiceHub (1)
Host\RemoteWorkspaceManager.cs (1)
154var assemblyName = new AssemblyName(assemblyFullName);
Microsoft.CodeAnalysis.Scripting (2)
src\Compilers\Shared\GlobalAssemblyCacheHelpers\MonoGlobalAssemblyCache.cs (2)
149name = (partialName == null) ? null : new AssemblyName(partialName); 178var assemblyName = new AssemblyName(displayName);
Microsoft.CodeAnalysis.Scripting.Desktop.UnitTests (4)
GlobalAssemblyCacheTests.cs (4)
26names = gac.GetAssemblyIdentities(new AssemblyName("mscorlib")).ToArray(); 33names = gac.GetAssemblyIdentities(new AssemblyName("mscorlib"), ImmutableArray.Create(ProcessorArchitecture.MSIL, ProcessorArchitecture.X86)).ToArray(); 63var n = new AssemblyName("System.Core"); 96names = gac.GetAssemblyIdentities(new AssemblyName("netstandard")).ToArray();
Microsoft.CodeAnalysis.Test.Utilities (5)
CompilationVerifier.cs (1)
400verifier.SetSystemModuleName(new AssemblyName(corlibName));
Platform\CoreClr\TestExecutionLoadContext.cs (1)
102var name = new AssemblyName(id.FullName);
TargetFrameworkUtil.cs (1)
418var name = new AssemblyName(assemblyName);
TestBase.cs (2)
92? new AssemblyName("netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51") 93: new AssemblyName("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089");
Microsoft.CodeAnalysis.UnitTests (19)
MetadataReferences\AssemblyIdentityExtensions.cs (1)
24var result = new AssemblyName();
MetadataReferences\AssemblyIdentityTests.cs (5)
87var name = new AssemblyName("goo"); 105name = new AssemblyName("goo"); 116name = new AssemblyName("goo"); 127var name = new AssemblyName("goo"); 365var an = new AssemblyName();
MetadataReferences\FusionAssemblyIdentityTests.cs (11)
27var result = new AssemblyName(); 84RoundTrip(new AssemblyName("goo")); 85RoundTrip(new AssemblyName { Name = "~!@#$%^&*()_+={}:\"<>?[];',./" }); 86RoundTrip(new AssemblyName("\\,")); 87RoundTrip(new AssemblyName("\\\"")); 99RoundTrip(new AssemblyName("goo") { Version = new Version(1, 2, 3, 4) }); 103RoundTrip(new AssemblyName("goo") { CultureInfo = CultureInfo.InvariantCulture }); 213Assert.Throws<CultureNotFoundException>(() => new AssemblyName("mscorlib, Version=2.0.0.0, Culture=nonsense")); 214Assert.Throws<CultureNotFoundException>(() => new AssemblyName("mscorlib, Version=2.0.0.0, Culture=null")); 216Assert.Throws<ArgumentException>(() => FusionAssemblyIdentity.ToAssemblyNameObject(new AssemblyName { Name = "x\0x" })); 221nameObject = FusionAssemblyIdentity.ToAssemblyNameObject(new AssemblyName { Name = c.ToString() });
MetadataReferences\MetadataReferenceTests.cs (2)
34var dynamicAssembly = AppDomain.CurrentDomain.DefineDynamicAssembly(new AssemblyName { Name = "A" }, System.Reflection.Emit.AssemblyBuilderAccess.Run); 54var dynamicAssembly = AppDomain.CurrentDomain.DefineDynamicAssembly(new AssemblyName { Name = "Goo" }, System.Reflection.Emit.AssemblyBuilderAccess.Run);
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Helpers\MefHostServicesHelpers.cs (1)
45var assemblyName = new AssemblyName(string.Format("{0}, Version={1}, Culture=neutral, PublicKeyToken={2}", assemblySimpleName, assemblyVersion, publicKeyToken));
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
MEF\ExportProviderCache.cs (1)
260var assemblyName = new AssemblyName(assemblyFullName);
Microsoft.CSharp (1)
Microsoft\CSharp\RuntimeBinder\Semantics\Types\TypeManager.cs (1)
764AssemblyName.ReferenceMatchesDefinition(new AssemblyName(ivta.AssemblyName), assyName))
Microsoft.DotNet.Build.Tasks.TargetFramework (1)
src\Common\Internal\AssemblyResolver.cs (1)
35AssemblyName referenceName = new AssemblyName(AppDomain.CurrentDomain.ApplyPolicy(args.Name));
Microsoft.DotNet.RemoteExecutor (1)
Program.cs (1)
48a = Assembly.Load(new AssemblyName(assemblyName));
Microsoft.DotNet.SignCheck (1)
src\Common\Internal\AssemblyResolution.cs (1)
26var name = new AssemblyName(args.Name);
Microsoft.Extensions.DependencyModel (2)
DependencyContextExtensions.cs (1)
123return new AssemblyName(name);
RuntimeAssembly.cs (1)
28public AssemblyName Name => new(_assemblyName);
Microsoft.Extensions.FileProviders.Embedded.Tests (1)
TestAssembly.cs (1)
66return new AssemblyName("TestAssembly");
Microsoft.Extensions.Hosting (1)
HostingHostBuilderExtensions.cs (1)
248var appAssembly = Assembly.Load(new AssemblyName(env.ApplicationName));
Microsoft.Extensions.Localization (2)
ResourceManagerStringLocalizerFactory.cs (2)
105var assemblyName = new AssemblyName(baseNamespace); 154var assemblyName = new AssemblyName(location);
Microsoft.Extensions.Localization.Tests (3)
ResourceManagerStringLocalizerFactoryTest.cs (3)
80var assemblyName = new AssemblyName(type.Assembly.FullName); 253var location1 = new AssemblyName(typeof(ResourceManagerStringLocalizer).Assembly.FullName).Name; 254var location2 = new AssemblyName(typeof(ResourceManagerStringLocalizerFactoryTest).Assembly.FullName).Name;
Microsoft.Maui.Controls.SourceGen (1)
CodeBehindGenerator.cs (1)
232 if (attr.ConstructorArguments[0].Value is string assemblyName && new AssemblyName(assemblyName).Name == compilation.Assembly.Identity.Name)
Microsoft.VisualBasic.Tests (1)
Microsoft\VisualBasic\ApplicationServices\WindowsFormsApplicationBaseTests.cs (1)
31new AssemblyName(Guid.NewGuid().ToString()) { Version = version },
Microsoft.VisualStudio.LanguageServices (1)
ProjectSystem\MetadataReferences\VisualStudioFrameworkAssemblyPathResolverFactory.cs (1)
155return frameworkProvider.GetReflectionAssembly(new AssemblyName(assemblyName));
MSBuild (5)
AssemblyNameExtension.cs (4)
150asAssemblyName = new AssemblyName 507a1 = new AssemblyName(asString); 511a2 = new AssemblyName(that.asString); 822AssemblyName assemblyName = new AssemblyName(displayName);
TranslatorHelpers.cs (1)
264assemblyName = new AssemblyName
MSBuildTaskHost (5)
AssemblyNameExtension.cs (4)
150asAssemblyName = new AssemblyName 507a1 = new AssemblyName(asString); 511a2 = new AssemblyName(that.asString); 822AssemblyName assemblyName = new AssemblyName(displayName);
TranslatorHelpers.cs (1)
264assemblyName = new AssemblyName
PresentationBuildTasks (1)
MS\Internal\MarkupCompiler\MarkupCompiler.cs (1)
2433AssemblyName assemblyName = new AssemblyName(Assembly.GetExecutingAssembly().FullName);
PresentationCore (4)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SafeSecurityHelper.cs (2)
69AssemblyName name = new AssemblyName(assembly.FullName); 180result = new AssemblyName(assembly.FullName);
System\Windows\Navigation\BaseUriHelper.cs (2)
202AssemblyName asmName = new AssemblyName(assemblyName); 441AssemblyName currAssemblyName = new AssemblyName(assemblyInfo.FullName);
PresentationFramework (10)
MS\Internal\AppModel\ResourceContainer.cs (1)
250AssemblyName assemblyInfo = new AssemblyName(assembly.FullName);
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SafeSecurityHelper.cs (2)
69AssemblyName name = new AssemblyName(assembly.FullName); 87AssemblyName name = new AssemblyName(protoAssembly.FullName);
System\Windows\Markup\Baml2006\Baml2006SchemaContext.cs (3)
461AssemblyName assemblyName = new AssemblyName(bamlAssembly.Name); 485AssemblyName shortName = new AssemblyName(assemblyName.Name); 512AssemblyName localAssemblyName = new AssemblyName(_localAssembly.FullName);
System\Windows\Markup\Baml2006\Baml6Assembly.cs (2)
44AssemblyName assemblyName = new AssemblyName(Name); 57AssemblyName shortName = new AssemblyName(assemblyName.Name);
System\Windows\Markup\Primitives\MarkupWriter.cs (1)
1591Assembly referencedAssembly = Assembly.Load(new AssemblyName(definition.AssemblyName));
System\Windows\SystemResources.cs (1)
951AssemblyName asemblyName = new AssemblyName(assembly.FullName);
ReachFramework (1)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SafeSecurityHelper.cs (1)
69AssemblyName name = new AssemblyName(assembly.FullName);
System.ComponentModel.Composition (2)
System\ComponentModel\Composition\Hosting\AssemblyCatalog.cs (1)
557assemblyName = new AssemblyName();
System\ComponentModel\Composition\MetadataViewGenerator.cs (1)
70private static readonly AssemblyName ProxyAssemblyName = new AssemblyName($"MetadataViewProxies_{Guid.NewGuid()}");
System.Linq.Expressions (1)
System\Linq\Expressions\Compiler\AssemblyGen.cs (1)
36var name = new AssemblyName("Snippets");
System.Private.CoreLib (10)
src\libraries\System.Private.CoreLib\src\System\Activator.RuntimeType.cs (1)
124AssemblyName assemblyName = new AssemblyName(assemblyString);
src\libraries\System.Private.CoreLib\src\System\Reflection\Assembly.cs (1)
344AssemblyName requestedAssemblyName = new AssemblyName(args.Name!);
src\libraries\System.Private.CoreLib\src\System\Reflection\AssemblyName.cs (1)
151var name = new AssemblyName
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\DynamicMethod.cs (1)
197AssemblyName assemblyName = new AssemblyName("Anonymously Hosted DynamicMethods Assembly");
src\libraries\System.Private.CoreLib\src\System\Runtime\Loader\AssemblyLoadContext.cs (1)
758RuntimeAssembly parentAssembly = (RuntimeAssembly)LoadFromAssemblyName(new AssemblyName(parentAssemblyName));
src\libraries\System.Private.CoreLib\src\System\StartupHookProvider.cs (1)
127startupHook.AssemblyName = new AssemblyName(startupHookPart);
src\libraries\System.Reflection.Metadata\src\System\Reflection\Metadata\AssemblyNameInfo.cs (1)
144AssemblyName assemblyName = new();
src\System\Reflection\RuntimeAssembly.cs (3)
123var an = new AssemblyName(); 358=> InternalLoad(new AssemblyName(assemblyName), ref stackMark, assemblyLoadContext); 658var an = new AssemblyName();
System.Private.Xml (3)
System\Xml\Serialization\CodeGenerator.cs (1)
1253AssemblyName assemblyName = new AssemblyName();
System\Xml\Serialization\Compiler.cs (1)
76Assembly.Load(new AssemblyName(originalAssemblyInfo.AssemblyFullName));
System\Xml\Xsl\IlGen\XmlILModule.cs (1)
278name = new AssemblyName();
System.Reflection.DispatchProxy (2)
System\Reflection\DispatchProxyGenerator.cs (2)
129name = string.IsNullOrEmpty(alcName) ? $"DispatchProxyTypes.{alc.GetHashCode()}" : $"DispatchProxyTypes.{new AssemblyName { Name = alcName }}"; 134_ab = AssemblyBuilder.DefineDynamicAssembly(new AssemblyName(name), builderAccess);
System.Reflection.Metadata (2)
System\Reflection\Metadata\AssemblyNameInfo.cs (1)
144AssemblyName assemblyName = new();
System\Reflection\Metadata\MetadataReader.netstandard.cs (1)
23var assemblyName = new AssemblyName()
System.Reflection.MetadataLoadContext (7)
System\Reflection\MetadataLoadContext.Apis.cs (2)
116new AssemblyName(coreAssemblyName); 186AssemblyName assemblyNameObject = new AssemblyName(assemblyName);
System\Reflection\MetadataLoadContext.CoreAssembly.cs (2)
24RoAssemblyName roAssemblyName = new AssemblyName(coreAssemblyName).ToRoAssemblyName(); 35RoAssemblyName roAssemblyName = new AssemblyName(coreName).ToRoAssemblyName();
System\Reflection\TypeLoading\General\AssemblyNameData.cs (1)
31AssemblyName an = new AssemblyName
System\Reflection\TypeLoading\General\Helpers.cs (1)
185AssemblyName an = new AssemblyName();
System\Reflection\TypeLoading\General\RoAssemblyName.cs (1)
75AssemblyName an = new AssemblyName()
System.Resources.Extensions (2)
System\Resources\Extensions\TypeNameComparer.cs (2)
109AssemblyName an1 = new AssemblyName(typeSpan1.ToString()); 110AssemblyName an2 = new AssemblyName(typeSpan2.ToString());
System.Runtime.InteropServices (1)
System\Runtime\InteropServices\Marshalling\ComImportInteropInterfaceDetailsStrategy.cs (1)
70AssemblyBuilder assembly = AssemblyBuilder.DefineDynamicAssembly(new AssemblyName("ComImportForwarder"), runtimeType.IsCollectible ? AssemblyBuilderAccess.RunAndCollect : AssemblyBuilderAccess.Run);
System.Runtime.Serialization.Formatters (1)
System\Runtime\Serialization\FormatterServices.cs (1)
300return Assembly.Load(new AssemblyName(assemblyName));
System.Windows.Forms (5)
System\Resources\AssemblyNamesTypeResolutionService.cs (1)
103assemblyName = new AssemblyName(fullName);
System\Resources\ResXResourceReader.cs (1)
515AssemblyName assemblyName = new(typeName!);
System\Resources\ResXResourceWriter.cs (2)
410alias = GetAliasFromName(new AssemblyName(assemblyName!)); 421alias = GetAliasFromName(new AssemblyName(GetFullName(type)!));
System\Windows\Forms\ComponentModel\COM2Interop\COM2TypeInfoProcessor.cs (1)
40AssemblyName assemblyName = new()
System.Windows.Forms.Design (1)
System\Resources\Tools\StronglyTypedResourceBuilder.cs (1)
449new AssemblyName(typeof(StronglyTypedResourceBuilder).Assembly.FullName!).Version!.ToString()));
System.Windows.Forms.Design.Tests (39)
System\Drawing\Design\ToolboxItemTests.cs (39)
42yield return new object[] { new AssemblyName() }; 43yield return new object[] { new AssemblyName(typeof(int).Assembly.FullName) }; 157yield return new object[] { new AssemblyName[] { new() } }; 1088new ToolboxItem { AssemblyName = new AssemblyName("Name") }, 1089new ToolboxItem { AssemblyName = new AssemblyName("Name") }, 1094new ToolboxItem { AssemblyName = new AssemblyName("Name") }, 1095new ToolboxItem { AssemblyName = new AssemblyName("name") }, 1101new ToolboxItem { AssemblyName = new AssemblyName("Name") }, 1106new ToolboxItem { AssemblyName = new AssemblyName("Name") }, 1126yield return new object[] { "AssemblyName", new AssemblyName("Name"), new AssemblyName("Name"), false }; 1128yield return new object[] { "assemblyName", new AssemblyName("Name"), new AssemblyName("Name"), true }; 1196yield return new object[] { null, new AssemblyName("NoSuchAssembly"), "System.Int32", false, typeof(int) }; 1197yield return new object[] { null, new AssemblyName(typeof(int).Assembly.FullName), "System.Int32", false, typeof(int) }; 1198yield return new object[] { null, new AssemblyName(typeof(ToolboxItem).Assembly.FullName), "System.Int32", false, typeof(int) }; 1199yield return new object[] { null, new AssemblyName(typeof(int).Assembly.FullName), "System.Drawing.Design.Tests.ToolboxItemTests", false, null }; 1200yield return new object[] { null, new AssemblyName(typeof(ToolboxItemTests).Assembly.FullName), "System.Drawing.Design.Tests.ToolboxItemTests", false, typeof(ToolboxItemTests) }; 1201yield return new object[] { null, new AssemblyName(typeof(ToolboxItemTests).Assembly.FullName), "System.Drawing.Design.Tests.toolboxitemtests", false, null }; 1202yield return new object[] { null, new AssemblyName(typeof(ToolboxItemTests).Assembly.FullName), "NoSuchType", false, null }; 1206AssemblyName validNameWithCodeBase = new(typeof(int).Assembly.FullName) 1212AssemblyName invalidNameWithCodeBase = new("NoSuchAssembly") 1218AssemblyName invalidNameWithInvalidCodeBase = new("NoSuchAssembly") 1237yield return new object[] { null, new AssemblyName("ThrowBadImageFormatException"), "System.Int32", false, typeof(int) }; 1238yield return new object[] { null, new AssemblyName("ThrowIOException"), "System.Int32", false, typeof(int) }; 1240AssemblyName badImageFormatExceptionCodeBase = new("NoSuchAssembly") 1246AssemblyName ioFormatExceptionCodeBase = new("NoSuchAssembly") 1258yield return new object[] { invalidServiceDesignerHost.Object, new AssemblyName(typeof(int).Assembly.FullName), "System.Int32", false, typeof(int) }; 1268yield return new object[] { mockDesignerHost.Object, new AssemblyName(), "typeName", reference, typeof(bool) }; 1269yield return new object[] { mockDesignerHost.Object, new AssemblyName(typeof(int).Assembly.FullName), "System.Int32", reference, typeof(int) }; 1270yield return new object[] { mockDesignerHost.Object, new AssemblyName(typeof(int).Assembly.FullName), "System.Drawing.Design.Tests.ToolboxItemTests", reference, typeof(ToolboxItemTests) }; 1271yield return new object[] { mockDesignerHost.Object, new AssemblyName(typeof(int).Assembly.FullName), "System.Drawing.Design.Tests.toolboxitemtests", reference, null }; 1272yield return new object[] { mockDesignerHost.Object, new AssemblyName(typeof(int).Assembly.FullName), "NoSuchType", reference, null }; 1321Assert.Throws<ArgumentException>(() => item.GetType(mockDesignerHost.Object, new AssemblyName(), "typeName", false)); 1322Assert.Throws<ArgumentException>(() => item.GetType(null, new AssemblyName(), "typeName", false)); 1343AssemblyName = new AssemblyName("AssemblyName"), 1388AssemblyName = new AssemblyName("AssemblyName"), 1417AssemblyName = new AssemblyName("AssemblyName"), 1533AssemblyName name = new();
System.Xaml (11)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SafeSecurityHelper.cs (1)
180result = new AssemblyName(assembly.FullName);
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\ReflectionHelper.cs (2)
411AssemblyName assemblyName = new AssemblyName(assemblyGivenName); 422AssemblyName cachedName = new AssemblyName(retassem.FullName);
System\Xaml\MS\Impl\XmlNsInfo.cs (1)
273result.Add(new AssemblyName(assemblyName));
System\Xaml\RefOnly\LooseTypeExtensions.cs (2)
39AssemblyName t1name = new AssemblyName(t1.Assembly.FullName); 40AssemblyName t2name = new AssemblyName(t2.Assembly.FullName);
System\Xaml\XamlSchemaContext.cs (5)
761AssemblyName toAssemblyName = new AssemblyName(toAssembly.FullName); 1234AssemblyName parsedAsmName = new AssemblyName(assemblyName); 1247_referenceAssemblyNames[i] = new AssemblyName(_referenceAssemblies[i].FullName); 1289AssemblyName parsedAsmName = new AssemblyName(assemblyName); 1314AssemblyName shortName = new AssemblyName(parsedAsmName.Name);
TaskUsageLogger (1)
TaskUsageLogger.cs (1)
270AssemblyName name = new AssemblyName(evaluatedTaskAssemblyName);
UIAutomationClient (2)
MS\Internal\Automation\ProxyManager.cs (2)
366AssemblyName proxyAssemblyName = new AssemblyName(); 377AssemblyName assemblyName = new AssemblyName();
xunit.console (1)
ConsoleRunner.cs (1)
144var assembly = Assembly.Load(new AssemblyName(Path.GetFileNameWithoutExtension(dllFile)));
729 references to AssemblyName
dotnet-svcutil.xmlserializer (4)
Microsoft\Tools\ServiceModel\SvcUtil\TypeResolver.cs (4)
33AssemblyName assemblyName = new AssemblyName(args.Name); 35if (_assembly != null && AssemblyName.ReferenceMatchesDefinition(_assembly.GetName(), assemblyName)) 59private Assembly FindAssembly(AssemblyName assemblyName) 64if (AssemblyName.ReferenceMatchesDefinition(refAssembly.GetName(), assemblyName))
dotnet-svcutil-lib (6)
CodeDomFixup\ArrayOfXElementTypeHelper.cs (1)
89AssemblyName assemblyName = typeof(ArrayOfXElementTypeHelper).GetTypeInfo().Assembly.GetName();
FrameworkFork\Microsoft.CodeDom\Compiler\CompilerResults.cs (1)
74AssemblyName assemName = new AssemblyName();
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaSetCompiler.cs (1)
865internal static string GetTempAssemblyName(AssemblyName assemblyName, string defaultNamespace)
FrameworkFork\Microsoft.Xml\Xml\Serialization\CodeExporter.cs (1)
110AssemblyName assemblyName = a.GetName();
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CodeExporter.cs (1)
513AssemblyName assemblyName = typeof(CodeExporter).GetTypeInfo().Assembly.GetName();
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceContractGenerator.cs (1)
499AssemblyName assemblyName = this.GetType().GetTypeInfo().Assembly.GetName();
GetDocument.Insider (1)
Commands\GetDocumentCommandWorker.cs (1)
57var assemblyName = new AssemblyName(_context.AssemblyName);
illink (5)
ILLink.RoslynAnalyzer (5)
src\tools\illink\src\ILLink.Shared\TrimAnalysis\IntrinsicId.cs (5)
69 /// <item><see cref="System.Type.GetType(string, System.Func{System.Reflection.AssemblyName, System.Reflection.Assembly?}?, System.Func{System.Reflection.Assembly?, string, bool, System.Type?}?)"/></item> 70 /// <item><see cref="System.Type.GetType(string, System.Func{System.Reflection.AssemblyName, System.Reflection.Assembly?}?, System.Func{System.Reflection.Assembly?, string, bool, System.Type?}?, bool)"/></item> 71 /// <item><see cref="System.Type.GetType(string, System.Func{System.Reflection.AssemblyName, System.Reflection.Assembly?}?, System.Func{System.Reflection.Assembly?, string, bool, System.Type?}?, bool, bool)"/></item> 308 /// <see cref="System.Reflection.AssemblyName.CodeBase"/> 312 /// <see cref="System.Reflection.AssemblyName.EscapedCodeBase"/>
installer.tasks (2)
FileUtilities.cs (2)
30public static AssemblyName GetAssemblyName(string path) 39return AssemblyName.GetAssemblyName(path);
Microsoft.Arcade.Common (3)
src\Common\Internal\AssemblyResolver.cs (3)
35AssemblyName referenceName = new AssemblyName(AppDomain.CurrentDomain.ApplyPolicy(args.Name)); 97AssemblyName name = AssemblyName.GetAssemblyName(filePath);
Microsoft.AspNetCore.App.UnitTests (4)
TargetingPackTests.cs (4)
83var assemblyName = AssemblyName.GetAssemblyName(path); 199var assemblyName = AssemblyName.GetAssemblyName(path);
Microsoft.AspNetCore.Components.WebAssembly (1)
HotReload\HotReloadAgent.cs (1)
173foreach (var dependencyName in assembly.GetReferencedAssemblies())
Microsoft.AspNetCore.DataProtection.Tests (1)
TypeForwardingActivatorTests.cs (1)
111var assemblyName = type.Assembly.GetName();
Microsoft.AspNetCore.InternalTesting (2)
xunit\AspNetTestFramework.cs (1)
17protected override ITestFrameworkExecutor CreateExecutor(AssemblyName assemblyName)
xunit\AspNetTestFrameworkExecutor.cs (1)
13public AspNetTestFrameworkExecutor(AssemblyName assemblyName, ISourceInformationProvider sourceInformationProvider, IMessageSink diagnosticMessageSink)
Microsoft.AspNetCore.InternalTesting.Tests (1)
TestableAssembly.cs (1)
66var assemblyName = new AssemblyName(testAssemblyName);
Microsoft.AspNetCore.Mvc.Core (2)
ApplicationParts\RelatedAssemblyAttribute.cs (2)
99var relatedAssemblyName = new AssemblyName(attribute.AssemblyFileName); 126public virtual Assembly LoadFromAssemblyName(AssemblyName assemblyName)
Microsoft.AspNetCore.Mvc.Core.Test (4)
ApplicationParts\RelatedAssemblyPartTest.cs (3)
18var name = new AssemblyName($"DynamicAssembly-{Guid.NewGuid()}"); 82public override AssemblyName GetName() 110public override Assembly LoadFromAssemblyName(AssemblyName assemblyName)
DependencyInjection\MvcCoreServiceCollectionExtensionsTest.cs (1)
196var assemblyName = typeof(MvcCoreServiceCollectionExtensionsTest).Assembly.GetName();
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (1)
AssemblyPartExtensionTest.cs (1)
48var name = new AssemblyName($"DynamicAssembly-{Guid.NewGuid()}");
Microsoft.AspNetCore.SignalR.Core (1)
Internal\TypedClientBuilder.cs (1)
40var assemblyName = new AssemblyName(ClientModuleName);
Microsoft.Build (19)
AssemblyNameExtension.cs (10)
58private AssemblyName asAssemblyName = null; 83internal AssemblyNameExtension(AssemblyName assemblyName) : this() 190return new AssemblyNameExtension(AssemblyName.GetAssemblyName(path)); 393internal AssemblyName AssemblyName 503AssemblyName a1 = asAssemblyName; 504AssemblyName a2 = that.asAssemblyName; 748internal static bool CompareCultures(AssemblyName a, AssemblyName b) 820private static AssemblyName GetAssemblyNameFromDisplayName(string displayName) 822AssemblyName assemblyName = new AssemblyName(displayName);
BackEnd\Components\SdkResolution\SdkResolverLoader.cs (1)
242AssemblyName assemblyName = new AssemblyName(resolverFileName)
LoadedType.cs (2)
144AssemblyName assemblyName = Type.GetTypeInfo().Assembly.GetName(); 166internal AssemblyName LoadedAssemblyName { get; private set; }
TaskEngineAssemblyResolver.cs (1)
111AssemblyNameExtension taskAssemblyName = new AssemblyNameExtension(AssemblyName.GetAssemblyName(_taskAssemblyFile));
TranslatorHelpers.cs (1)
216public static void Translate(this ITranslator translator, ref AssemblyName assemblyName)
Utilities\NuGetFrameworkWrapper.cs (4)
53public void Initialize(AssemblyName assemblyName, string assemblyFilePath) 165private static AppDomainSetup CreateAppDomainSetup(AssemblyName assemblyName, string assemblyPath) 210AssemblyName assemblyName = null; 221assemblyName = AssemblyName.GetAssemblyName(assemblyPath);
Microsoft.Build.Engine.UnitTests (16)
AssemblyNameEx_Tests.cs (8)
114AssemblyName baseName1 = new AssemblyName(assemblyString1); 118AssemblyName baseName2 = new AssemblyName(assemblyString2); 149AssemblyName baseName1 = new AssemblyName(assemblyString1); 153AssemblyName baseName2 = new AssemblyName(assemblyString2); 233AssemblyName baseName1 = new AssemblyName(assemblyString1); 237AssemblyName baseName2 = new AssemblyName(assemblyString2); 274AssemblyName baseName1 = new AssemblyName(assemblyString1); 278AssemblyName baseName2 = new AssemblyName(assemblyString2);
BackEnd\BinaryTranslator_Tests.cs (8)
631AssemblyName value = null; 634AssemblyName deserializedValue = null; 643AssemblyName value = new() 661AssemblyName deserializedValue = null; 670AssemblyName value = new(); 674AssemblyName deserializedValue = null; 684private static void HelperAssertAssemblyNameEqual(AssemblyName expected, AssemblyName actual)
Microsoft.Build.Framework (3)
AssemblyUtilities.cs (3)
75public static AssemblyName CloneIfPossible(this AssemblyName assemblyNameToClone) 87AssemblyName name = new AssemblyName();
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (1)
MiscTests.cs (1)
28foreach (var name in assembly.GetReferencedAssemblies())
Microsoft.Build.Tasks.Core (47)
AppConfig\DependentAssembly.cs (4)
21/// The partial <see cref="AssemblyName"/>, there should be no version. 24internal AssemblyName PartialAssemblyName 35/// The full <see cref="AssemblyName"/>. It is not cloned. Callers should not mutate this object. 37internal AssemblyName AssemblyNameReadOnly { get; private set; }
AssemblyDependency\AssemblyInformation.cs (3)
483var assemblyName = GetAssemblyName(metadataReader, handle); 542private static AssemblyName GetAssemblyName(MetadataReader metadataReader, AssemblyReferenceHandle handle) 546var assemblyName = new AssemblyName
AssemblyDependency\GenerateBindingRedirects.cs (5)
151private static bool IsMatch(AssemblyName suggestedRedirect, string name, string culture, string publicKeyToken) 193private void UpdateExistingBindingRedirects(XElement runtimeNode, IDictionary<AssemblyName, string> redirects) 359private IDictionary<AssemblyName, string> ParseSuggestedRedirects() 363var map = new Dictionary<AssemblyName, string>(); 373var assemblyIdentity = new AssemblyName(redirectStr);
AssemblyDependency\ReferenceTable.cs (11)
1886AssemblyName baseKey = assemblyName.AssemblyName.CloneIfPossible(); 2246AssemblyName an1 = new AssemblyName(assemblyIdentity1); 2247AssemblyName an2 = new AssemblyName(assemblyIdentity2); 2275private static bool RefMatchesDef(AssemblyName @ref, AssemblyName def) 2288private static bool IsStrongNamed(AssemblyName assembly) 2295private static bool CompareRefToDef(AssemblyName @ref, AssemblyName def) 2498AssemblyName comparisonAssembly = remappedAssembly.AssemblyNameReadOnly; 2543private bool CompareAssembliesIgnoringVersion(AssemblyName a, AssemblyName b)
AssemblyDependency\ResolveAssemblyReference.cs (1)
1171AssemblyName idealRemappingPartialAssemblyName = idealRemapping.PartialAssemblyName;
AssemblyNameExtension.cs (10)
58private AssemblyName asAssemblyName = null; 83internal AssemblyNameExtension(AssemblyName assemblyName) : this() 190return new AssemblyNameExtension(AssemblyName.GetAssemblyName(path)); 393internal AssemblyName AssemblyName 503AssemblyName a1 = asAssemblyName; 504AssemblyName a2 = that.asAssemblyName; 748internal static bool CompareCultures(AssemblyName a, AssemblyName b) 820private static AssemblyName GetAssemblyNameFromDisplayName(string displayName) 822AssemblyName assemblyName = new AssemblyName(displayName);
GetAssemblyIdentity.cs (2)
61AssemblyName an; 64an = AssemblyName.GetAssemblyName(item.ItemSpec);
GetSDKReferenceFiles.cs (1)
1131AssemblyName assembly = assemblyNameExtension.AssemblyName;
ManifestUtil\MetadataReader.cs (1)
172AssemblyName an = new AssemblyName();
NativeMethods.cs (3)
1260private AssemblyName _assemblyNameVersion; 1393var name = new AssemblyName 1445var assemblyNameVersion = new AssemblyName(strongName);
ResolveNonMSBuildProjectOutput.cs (2)
64internal delegate AssemblyName GetAssemblyNameDelegate(string path); 83GetAssemblyName = AssemblyName.GetAssemblyName;
ResourceHandling\MSBuildResXReader.cs (1)
63AssemblyName assemblyName = new AssemblyName(name);
RoslynCodeTaskFactory\RoslynCodeTaskFactory.cs (1)
593static Assembly TryLoadAssembly(List<string> directories, AssemblyName name)
TranslatorHelpers.cs (1)
216public static void Translate(this ITranslator translator, ref AssemblyName assemblyName)
XslTransformation.cs (1)
506AssemblyName assemblyName = new AssemblyName { CodeBase = assemblyPath };
Microsoft.Build.Tasks.UnitTests (8)
AssemblyNameEx_Tests.cs (8)
114AssemblyName baseName1 = new AssemblyName(assemblyString1); 118AssemblyName baseName2 = new AssemblyName(assemblyString2); 149AssemblyName baseName1 = new AssemblyName(assemblyString1); 153AssemblyName baseName2 = new AssemblyName(assemblyString2); 233AssemblyName baseName1 = new AssemblyName(assemblyString1); 237AssemblyName baseName2 = new AssemblyName(assemblyString2); 274AssemblyName baseName1 = new AssemblyName(assemblyString1); 278AssemblyName baseName2 = new AssemblyName(assemblyString2);
Microsoft.Cci.Extensions (2)
Extensions\AssemblyIdentityHelpers.cs (2)
15var name = new System.Reflection.AssemblyName(); 24var name = new System.Reflection.AssemblyName(formattedName);
Microsoft.CodeAnalysis (31)
DiagnosticAnalyzer\AnalyzerAssemblyLoader.Core.cs (5)
68private partial Assembly Load(AssemblyName assemblyName, string assemblyOriginalPath) 86private partial bool IsMatch(AssemblyName requestedName, AssemblyName candidateName) => 138protected override Assembly? Load(AssemblyName assemblyName) 233public Assembly? ResolveAssembly(AssemblyName assemblyName)
DiagnosticAnalyzer\AnalyzerAssemblyLoader.cs (21)
26/// For a given <see cref="AssemblyName"/> return the location it was originally added 30string? GetOriginalDependencyLocation(AssemblyName assembly); 51private readonly Dictionary<string, (AssemblyName? AssemblyName, string RealAssemblyPath)?> _analyzerAssemblyInfoMap = new(); 86/// The implementation needs to load an <see cref="Assembly"/> with the specified <see cref="AssemblyName"/>. The 88/// <see cref="AssemblyName.CodeBase"/> as that is empty on .NET Core. 93private partial Assembly Load(AssemblyName assemblyName, string assemblyOriginalPath); 100private partial bool IsMatch(AssemblyName requestedName, AssemblyName candidateName); 165(AssemblyName? assemblyName, _) = GetAssemblyInfoForPath(originalAnalyzerPath); 184/// Get the <see cref="AssemblyName"/> and the path it should be loaded from for the given original 188/// This is used in the implementation of the loader instead of <see cref="AssemblyName.GetAssemblyName(string)"/> 192protected (AssemblyName? AssemblyName, string RealAssemblyPath) GetAssemblyInfoForPath(string originalAnalyzerPath) 210AssemblyName? assemblyName; 213assemblyName = AssemblyName.GetAssemblyName(realPath); 290public string? GetOriginalDependencyLocation(AssemblyName assemblyName) 297/// Return the best (original, real) path information for loading an assembly with the specified <see cref="AssemblyName"/>. 299protected (string? BestOriginalPath, string? BestRealPath) GetBestPath(AssemblyName requestedName) 321AssemblyName? bestName = null; 324(AssemblyName? candidateName, string candidateRealPath) = GetAssemblyInfoForPath(candidateOriginalPath); 400/// the given <see cref="AssemblyName"/> to an <see cref="Assembly"/>. 404internal Assembly? ResolveAssemblyExternally(AssemblyName assemblyName)
DiagnosticAnalyzer\AnalyzerFileReference.cs (2)
561var runningCompilerAssemblyName = typeof(AnalyzerFileReference).Assembly.GetName(); 562foreach (var referencedAssemblyName in analyzerAssembly.GetReferencedAssemblies())
DiagnosticAnalyzer\IAnalyzerAssemblyResolver.cs (1)
19Assembly? ResolveAssembly(AssemblyName assemblyName);
MetadataReference\AssemblyIdentity.cs (2)
533internal static AssemblyIdentity FromAssemblyDefinition(AssemblyName name) 549internal static AssemblyIdentity FromAssemblyReference(AssemblyName name)
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Helpers\MefHostServicesHelpers.cs (2)
35var thisAssemblyName = typeof(MefHostServicesHelpers).GetTypeInfo().Assembly.GetName(); 45var assemblyName = new AssemblyName(string.Format("{0}, Version={1}, Culture=neutral, PublicKeyToken={2}", assemblySimpleName, assemblyVersion, publicKeyToken));
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (3)
CommandLineTests.cs (3)
440Assert.Equal(ProcessorArchitecture.MSIL, AssemblyName.GetAssemblyName(s_CSharpCompilerExecutable).ProcessorArchitecture); 6057var assemblyName = AssemblyName.GetAssemblyName(Path.Combine(tempDir, name));
Microsoft.CodeAnalysis.ExternalAccess.Razor (6)
RazorAnalyzerAssemblyResolver.cs (6)
21private static Func<AssemblyName, Assembly?>? s_assemblyResolver; 23private static readonly HashSet<AssemblyName> s_assembliesRequested = []; 33internal static bool TrySetAssemblyResolver(Func<AssemblyName, Assembly?> resolver, AssemblyName canaryAssembly) 46public Assembly? ResolveAssembly(AssemblyName assemblyName) 48Func<AssemblyName, Assembly?>? resolver = null;
Microsoft.CodeAnalysis.Features (1)
SemanticSearch\AbstractSemanticSearchService.cs (1)
44protected override Assembly? Load(AssemblyName assemblyName)
Microsoft.CodeAnalysis.LanguageServer (8)
CustomExportAssemblyLoader.cs (4)
25public Assembly LoadAssembly(AssemblyName assemblyName) 37var assemblyName = new AssemblyName(assemblyFullName); 41private Assembly LoadAssembly(AssemblyName assemblyName, string? codeBasePath) 75private Assembly LoadAssemblyFromCodeBase(AssemblyName assemblyName, string codeBaseUriStr)
HostWorkspace\VSCodeAnalyzerLoaderProviderFactory.cs (1)
37public string? GetOriginalDependencyLocation(AssemblyName assembly)
Services\ExtensionAssemblyManager.cs (3)
100var assemblyFullName = AssemblyName.GetAssemblyName(assemblyFilePath).FullName; 183public Assembly? TryLoadAssemblyInExtensionContext(AssemblyName assemblyName) 210protected override Assembly? Load(AssemblyName assemblyName)
Microsoft.CodeAnalysis.Remote.ServiceHub (2)
Host\RemoteWorkspaceManager.cs (2)
149public Assembly LoadAssembly(AssemblyName assemblyName) 154var assemblyName = new AssemblyName(assemblyFullName);
Microsoft.CodeAnalysis.Scripting (15)
Hosting\AssemblyLoader\CoreAssemblyLoaderImpl.cs (1)
70protected override Assembly? Load(AssemblyName assemblyName) => null;
src\Compilers\Shared\GlobalAssemblyCacheHelpers\ClrGlobalAssemblyCache.cs (1)
82public override IEnumerable<AssemblyIdentity> GetAssemblyIdentities(AssemblyName partialName, ImmutableArray<ProcessorArchitecture> architectureFilter = default(ImmutableArray<ProcessorArchitecture>))
src\Compilers\Shared\GlobalAssemblyCacheHelpers\DotNetCoreGlobalAssemblyCache.cs (1)
22public override IEnumerable<AssemblyIdentity> GetAssemblyIdentities(AssemblyName partialName, ImmutableArray<ProcessorArchitecture> architectureFilter = default)
src\Compilers\Shared\GlobalAssemblyCacheHelpers\FusionAssemblyIdentity.cs (3)
396/// Converts <see cref="IAssemblyName"/> to <see cref="AssemblyName"/> with all metadata fields filled. 427/// Converts <see cref="AssemblyName"/> to an equivalent <see cref="IAssemblyName"/>. 429internal static IAssemblyName ToAssemblyNameObject(AssemblyName name)
src\Compilers\Shared\GlobalAssemblyCacheHelpers\GlobalAssemblyCache.cs (1)
47public abstract IEnumerable<AssemblyIdentity> GetAssemblyIdentities(AssemblyName partialName, ImmutableArray<ProcessorArchitecture> architectureFilter = default);
src\Compilers\Shared\GlobalAssemblyCacheHelpers\MonoGlobalAssemblyCache.cs (8)
36private static AssemblyName CreateAssemblyNameFromFile(string path) 37=> AssemblyName.GetAssemblyName(path); 95private static IEnumerable<(AssemblyIdentity Identity, string Path)> GetAssemblyIdentitiesAndPaths(AssemblyName name, ImmutableArray<ProcessorArchitecture> architectureFilter) 116var gacAssemblyName = CreateAssemblyNameFromFile(assemblyPath); 139public override IEnumerable<AssemblyIdentity> GetAssemblyIdentities(AssemblyName partialName, ImmutableArray<ProcessorArchitecture> architectureFilter = default(ImmutableArray<ProcessorArchitecture>)) 146AssemblyName name; 178var assemblyName = new AssemblyName(displayName); 193var gacAssemblyName = CreateAssemblyNameFromFile(assemblyPath);
Microsoft.CodeAnalysis.Scripting.Desktop.UnitTests (1)
GlobalAssemblyCacheTests.cs (1)
63var n = new AssemblyName("System.Core");
Microsoft.CodeAnalysis.Test.Utilities (7)
CompilationVerifier.cs (2)
312public PEReader ResolveAssembly(AssemblyName assemblyName) 317public PEReader ResolveModule(AssemblyName referencingAssembly, string fileName)
Platform\CoreClr\AssemblyLoadContextUtils.cs (1)
30protected override Assembly? Load(AssemblyName assemblyName)
Platform\CoreClr\TestExecutionLoadContext.cs (2)
34protected override Assembly Load(AssemblyName assemblyName) 102var name = new AssemblyName(id.FullName);
TargetFrameworkUtil.cs (1)
418var name = new AssemblyName(assemblyName);
TestBase.cs (1)
91public static readonly AssemblyName RuntimeCorLibName = RuntimeUtilities.IsCoreClrRuntime
Microsoft.CodeAnalysis.UnitTests (29)
AnalyzerAssemblyLoaderTests.cs (9)
348var name = AssemblyName.GetAssemblyName(testFixture.Delta2); 470var name = AssemblyName.GetAssemblyName(x); 1748var thisAssemblyName = GetType().Assembly.GetName(); 1807private class TestAnalyzerAssemblyResolver(Func<AssemblyName, Assembly?> func) : MarshalByRefObject, IAnalyzerAssemblyResolver 1809private readonly Func<AssemblyName, Assembly?> _func = func; 1811public List<AssemblyName> CalledFor { get; } = []; 1813public Assembly? ResolveAssembly(AssemblyName assemblyName)
Analyzers\AnalyzerFileReferenceTests.cs (1)
752public string? GetOriginalDependencyLocation(AssemblyName assembly) => throw new Exception();
MetadataReferences\AssemblyIdentityExtensions.cs (4)
18/// Converts this identity to <see cref="AssemblyName"/>. 20/// <returns>A new instance of <see cref="AssemblyName"/>.</returns> 22public static AssemblyName ToAssemblyName(this AssemblyIdentity identity) 24var result = new AssemblyName();
MetadataReferences\AssemblyIdentityTests.cs (4)
87var name = new AssemblyName("goo"); 127var name = new AssemblyName("goo"); 310var an = ai.ToAssemblyName(); 365var an = new AssemblyName();
MetadataReferences\FusionAssemblyIdentityTests.cs (8)
19/// Converts <see cref="FusionAssemblyIdentity.IAssemblyName"/> to <see cref="AssemblyName"/> with possibly 23/// An <see cref="AssemblyName"/> whose fields are be null if not present in <paramref name="nameObject"/>. 25internal static AssemblyName ToAssemblyName(FusionAssemblyIdentity.IAssemblyName nameObject) 27var result = new AssemblyName(); 49private void RoundTrip(AssemblyName name, bool testFullName = true) 51AssemblyName rtName; 92var name = new AssemblyIdentity("goo", version: new Version(0xffff, 0xffff, 0xffff, 0xffff)).ToAssemblyName(); 159var name = ToAssemblyName(nameObject);
src\Compilers\Shared\GlobalAssemblyCacheHelpers\FusionAssemblyIdentity.cs (3)
396/// Converts <see cref="IAssemblyName"/> to <see cref="AssemblyName"/> with all metadata fields filled. 427/// Converts <see cref="AssemblyName"/> to an equivalent <see cref="IAssemblyName"/>. 429internal static IAssemblyName ToAssemblyNameObject(AssemblyName name)
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (2)
CommandLineTests.vb (2)
278Assert.Equal(ProcessorArchitecture.MSIL, AssemblyName.GetAssemblyName(s_basicCompilerExecutable).ProcessorArchitecture) 719Dim assemblyName = System.Reflection.AssemblyName.GetAssemblyName(Path.Combine(tempDir, name))
Microsoft.CodeAnalysis.Workspaces (30)
src\Compilers\Core\Portable\DiagnosticAnalyzer\AnalyzerAssemblyLoader.Core.cs (5)
68private partial Assembly Load(AssemblyName assemblyName, string assemblyOriginalPath) 86private partial bool IsMatch(AssemblyName requestedName, AssemblyName candidateName) => 138protected override Assembly? Load(AssemblyName assemblyName) 233public Assembly? ResolveAssembly(AssemblyName assemblyName)
src\Compilers\Core\Portable\DiagnosticAnalyzer\AnalyzerAssemblyLoader.cs (21)
26/// For a given <see cref="AssemblyName"/> return the location it was originally added 30string? GetOriginalDependencyLocation(AssemblyName assembly); 51private readonly Dictionary<string, (AssemblyName? AssemblyName, string RealAssemblyPath)?> _analyzerAssemblyInfoMap = new(); 86/// The implementation needs to load an <see cref="Assembly"/> with the specified <see cref="AssemblyName"/>. The 88/// <see cref="AssemblyName.CodeBase"/> as that is empty on .NET Core. 93private partial Assembly Load(AssemblyName assemblyName, string assemblyOriginalPath); 100private partial bool IsMatch(AssemblyName requestedName, AssemblyName candidateName); 165(AssemblyName? assemblyName, _) = GetAssemblyInfoForPath(originalAnalyzerPath); 184/// Get the <see cref="AssemblyName"/> and the path it should be loaded from for the given original 188/// This is used in the implementation of the loader instead of <see cref="AssemblyName.GetAssemblyName(string)"/> 192protected (AssemblyName? AssemblyName, string RealAssemblyPath) GetAssemblyInfoForPath(string originalAnalyzerPath) 210AssemblyName? assemblyName; 213assemblyName = AssemblyName.GetAssemblyName(realPath); 290public string? GetOriginalDependencyLocation(AssemblyName assemblyName) 297/// Return the best (original, real) path information for loading an assembly with the specified <see cref="AssemblyName"/>. 299protected (string? BestOriginalPath, string? BestRealPath) GetBestPath(AssemblyName requestedName) 321AssemblyName? bestName = null; 324(AssemblyName? candidateName, string candidateRealPath) = GetAssemblyInfoForPath(candidateOriginalPath); 400/// the given <see cref="AssemblyName"/> to an <see cref="Assembly"/>. 404internal Assembly? ResolveAssemblyExternally(AssemblyName assemblyName)
src\Compilers\Core\Portable\DiagnosticAnalyzer\IAnalyzerAssemblyResolver.cs (1)
19Assembly? ResolveAssembly(AssemblyName assemblyName);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Helpers\MefHostServicesHelpers.cs (2)
35var thisAssemblyName = typeof(MefHostServicesHelpers).GetTypeInfo().Assembly.GetName(); 45var assemblyName = new AssemblyName(string.Format("{0}, Version={1}, Culture=neutral, PublicKeyToken={2}", assemblySimpleName, assemblyVersion, publicKeyToken));
Workspace\Solution\SourceGeneratorIdentity.cs (1)
34var assemblyName = assembly.GetName();
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (2)
MEF\ExportProviderCache.cs (2)
255public Assembly LoadAssembly(AssemblyName assemblyName) 260var assemblyName = new AssemblyName(assemblyFullName);
Microsoft.CSharp (2)
Microsoft\CSharp\RuntimeBinder\Semantics\Types\TypeManager.cs (2)
760AssemblyName assyName = assemblyToCheck.GetName(); 764AssemblyName.ReferenceMatchesDefinition(new AssemblyName(ivta.AssemblyName), assyName))
Microsoft.DotNet.Arcade.Sdk (1)
src\GetAssemblyFullName.cs (1)
30item.SetMetadata(FullNameMetadata, AssemblyName.GetAssemblyName(assemblyPath).FullName);
Microsoft.DotNet.Build.Tasks.TargetFramework (3)
src\Common\Internal\AssemblyResolver.cs (3)
35AssemblyName referenceName = new AssemblyName(AppDomain.CurrentDomain.ApplyPolicy(args.Name)); 97AssemblyName name = AssemblyName.GetAssemblyName(filePath);
Microsoft.DotNet.GenFacades (2)
RoslynBuildTask.cs (2)
45private Assembly ResolverForRoslyn(AssemblyLoadContext context, AssemblyName assemblyName) 57private Assembly LoadRoslyn(AssemblyName name, Func<string, Assembly> loadFromPath)
Microsoft.DotNet.SharedFramework.Sdk (1)
src\FileUtilities.cs (1)
32public static AssemblyName GetAssemblyName(string path)
Microsoft.DotNet.SignCheck (1)
src\Common\Internal\AssemblyResolution.cs (1)
26var name = new AssemblyName(args.Name);
Microsoft.DotNet.SignTool (2)
src\ContentUtil.cs (2)
123AssemblyName assemblyName = AssemblyName.GetAssemblyName(fullPath);
Microsoft.Extensions.DependencyModel (6)
DependencyContextExtensions.cs (5)
78public static IEnumerable<AssemblyName> GetDefaultAssemblyNames(this DependencyContext self) 85public static IEnumerable<AssemblyName> GetRuntimeAssemblyNames(this DependencyContext self, string runtimeIdentifier) 93public static IEnumerable<AssemblyName> GetDefaultAssemblyNames(this RuntimeLibrary self, DependencyContext context) 101public static IEnumerable<AssemblyName> GetRuntimeAssemblyNames(this RuntimeLibrary self, DependencyContext context, string runtimeIdentifier) 110private static AssemblyName GetAssemblyName(string assetPath)
RuntimeAssembly.cs (1)
28public AssemblyName Name => new(_assemblyName);
Microsoft.Extensions.FileProviders.Embedded.Tests (1)
TestAssembly.cs (1)
64public override AssemblyName GetName()
Microsoft.Extensions.Localization (2)
ResourceManagerStringLocalizerFactory.cs (2)
105var assemblyName = new AssemblyName(baseNamespace); 154var assemblyName = new AssemblyName(location);
Microsoft.Extensions.Localization.Tests (1)
ResourceManagerStringLocalizerFactoryTest.cs (1)
80var assemblyName = new AssemblyName(type.Assembly.FullName);
Microsoft.Maui.Controls (1)
Internals\ResourceLoader.cs (1)
26 public AssemblyName AssemblyName { get; set; }
Microsoft.ML.Core (1)
ComponentModel\AssemblyLoadingUtils.cs (1)
238foreach (var name in assembly.GetReferencedAssemblies())
Microsoft.VisualBasic.Tests (2)
Microsoft\VisualBasic\ApplicationServices\ApplicationBaseTests.cs (1)
81var assemblyName = assembly.GetName();
Microsoft\VisualBasic\ApplicationServices\AssemblyInfoTests.cs (1)
22var assemblyName = assembly.GetName();
Microsoft.VisualStudio.LanguageServices (1)
Diagnostics\VisualStudioDiagnosticAnalyzerProvider.Loader.cs (1)
35return Assembly.Load(AssemblyName.GetAssemblyName(fullPath));
MSBuild (22)
AssemblyNameExtension.cs (10)
58private AssemblyName asAssemblyName = null; 83internal AssemblyNameExtension(AssemblyName assemblyName) : this() 190return new AssemblyNameExtension(AssemblyName.GetAssemblyName(path)); 393internal AssemblyName AssemblyName 503AssemblyName a1 = asAssemblyName; 504AssemblyName a2 = that.asAssemblyName; 748internal static bool CompareCultures(AssemblyName a, AssemblyName b) 820private static AssemblyName GetAssemblyNameFromDisplayName(string displayName) 822AssemblyName assemblyName = new AssemblyName(displayName);
CoreCLRAssemblyLoader.cs (4)
111private Assembly TryGetWellKnownAssembly(AssemblyLoadContext context, AssemblyName assemblyName) 126private Assembly TryResolveAssembly(AssemblyLoadContext context, AssemblyName assemblyName) 146private Assembly TryResolveAssemblyFromPaths(AssemblyLoadContext context, AssemblyName assemblyName, IEnumerable<string> searchPaths) 169AssemblyName candidateAssemblyName = AssemblyLoadContext.GetAssemblyName(candidatePath);
LoadedType.cs (2)
144AssemblyName assemblyName = Type.GetTypeInfo().Assembly.GetName(); 166internal AssemblyName LoadedAssemblyName { get; private set; }
MSBuildLoadContext.cs (2)
49protected override Assembly? Load(AssemblyName assemblyName) 86AssemblyName candidateAssemblyName = AssemblyLoadContext.GetAssemblyName(candidatePath);
TaskEngineAssemblyResolver.cs (3)
60_eventHandler = new Func<AssemblyLoadContext, AssemblyName, Assembly>(ResolveAssembly); 100private Assembly ResolveAssembly(AssemblyLoadContext assemblyLoadContext, AssemblyName assemblyName) 164private Func<AssemblyLoadContext, AssemblyName, Assembly> _eventHandler = null;
TranslatorHelpers.cs (1)
216public static void Translate(this ITranslator translator, ref AssemblyName assemblyName)
MSBuildTaskHost (17)
AssemblyNameExtension.cs (10)
58private AssemblyName asAssemblyName = null; 83internal AssemblyNameExtension(AssemblyName assemblyName) : this() 190return new AssemblyNameExtension(AssemblyName.GetAssemblyName(path)); 393internal AssemblyName AssemblyName 503AssemblyName a1 = asAssemblyName; 504AssemblyName a2 = that.asAssemblyName; 748internal static bool CompareCultures(AssemblyName a, AssemblyName b) 820private static AssemblyName GetAssemblyNameFromDisplayName(string displayName) 822AssemblyName assemblyName = new AssemblyName(displayName);
AssemblyUtilities.cs (3)
75public static AssemblyName CloneIfPossible(this AssemblyName assemblyNameToClone) 78return (AssemblyName)assemblyNameToClone.Clone();
LoadedType.cs (2)
144AssemblyName assemblyName = Type.GetTypeInfo().Assembly.GetName(); 166internal AssemblyName LoadedAssemblyName { get; private set; }
TaskEngineAssemblyResolver.cs (1)
111AssemblyNameExtension taskAssemblyName = new AssemblyNameExtension(AssemblyName.GetAssemblyName(_taskAssemblyFile));
TranslatorHelpers.cs (1)
216public static void Translate(this ITranslator translator, ref AssemblyName assemblyName)
mscorlib (1)
src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
409[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Reflection.AssemblyName))]
netstandard (1)
netstandard.cs (1)
1376[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Reflection.AssemblyName))]
PresentationBuildTasks (1)
MS\Internal\MarkupCompiler\MarkupCompiler.cs (1)
2433AssemblyName assemblyName = new AssemblyName(Assembly.GetExecutingAssembly().FullName);
PresentationCore (10)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SafeSecurityHelper.cs (7)
69AssemblyName name = new AssemblyName(assembly.FullName); 120static Dictionary<object, AssemblyName> _assemblies; // get key via GetKeyForAssembly 131internal static Assembly GetLoadedAssembly(AssemblyName assemblyName) 141AssemblyName curAsmName = GetAssemblyName(assemblies[i]); 157static AssemblyName GetAssemblyName(Assembly assembly) 162AssemblyName result; 165_assemblies = new Dictionary<object, AssemblyName>();
System\Windows\Navigation\BaseUriHelper.cs (3)
202AssemblyName asmName = new AssemblyName(assemblyName); 441AssemblyName currAssemblyName = new AssemblyName(assemblyInfo.FullName); 608private static bool AssemblyMatchesKeyString(AssemblyName asmName, string assemblyKey)
PresentationFramework (9)
MS\Internal\AppModel\ResourceContainer.cs (1)
250AssemblyName assemblyInfo = new AssemblyName(assembly.FullName);
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SafeSecurityHelper.cs (2)
69AssemblyName name = new AssemblyName(assembly.FullName); 87AssemblyName name = new AssemblyName(protoAssembly.FullName);
System\Windows\Markup\Baml2006\Baml2006SchemaContext.cs (3)
461AssemblyName assemblyName = new AssemblyName(bamlAssembly.Name); 485AssemblyName shortName = new AssemblyName(assemblyName.Name); 512AssemblyName localAssemblyName = new AssemblyName(_localAssembly.FullName);
System\Windows\Markup\Baml2006\Baml6Assembly.cs (2)
44AssemblyName assemblyName = new AssemblyName(Name); 57AssemblyName shortName = new AssemblyName(assemblyName.Name);
System\Windows\SystemResources.cs (1)
951AssemblyName asemblyName = new AssemblyName(assembly.FullName);
ReachFramework (1)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SafeSecurityHelper.cs (1)
69AssemblyName name = new AssemblyName(assembly.FullName);
System.ComponentModel.Composition (12)
System\ComponentModel\Composition\Hosting\AssemblyCatalog.cs (2)
549AssemblyName assemblyName; 553assemblyName = AssemblyName.GetAssemblyName(codeBase);
System\ComponentModel\Composition\Hosting\DirectoryCatalog.cs (9)
48/// <see cref="Assembly.Load(AssemblyName)"/> can throw. 82/// <see cref="Assembly.Load(AssemblyName)"/> can throw. 121/// <see cref="Assembly.Load(AssemblyName)"/> can throw. 159/// <see cref="Assembly.Load(AssemblyName)"/> can throw. 202/// <see cref="Assembly.Load(AssemblyName)"/> can throw. 244/// <see cref="Assembly.Load(AssemblyName)"/> can throw. 289/// <see cref="Assembly.Load(AssemblyName)"/> can throw. 339/// <see cref="Assembly.Load(AssemblyName)"/> can throw. 561/// <see cref="Assembly.Load(AssemblyName)"/> can throw.
System\ComponentModel\Composition\MetadataViewGenerator.cs (1)
70private static readonly AssemblyName ProxyAssemblyName = new AssemblyName($"MetadataViewProxies_{Guid.NewGuid()}");
System.ComponentModel.TypeConverter (4)
System\ComponentModel\Design\ITypeResolutionService.cs (4)
17Assembly? GetAssembly(AssemblyName name); 22Assembly? GetAssembly(AssemblyName name, bool throwOnError); 47void ReferenceAssembly(AssemblyName name); 52string? GetPathOfAssembly(AssemblyName name);
System.Configuration.ConfigurationManager (2)
src\libraries\Common\src\System\Security\IdentityHelper.cs (1)
32internal static string? GetNormalizedStrongNameHash(AssemblyName name)
System\Configuration\ClientConfigPaths.cs (1)
250AssemblyName assemblyName = assembly.GetName();
System.IO.IsolatedStorage (2)
src\libraries\Common\src\System\Security\IdentityHelper.cs (1)
32internal static string? GetNormalizedStrongNameHash(AssemblyName name)
System\IO\IsolatedStorage\Helper.cs (1)
112AssemblyName assemblyName = assembly.GetName();
System.Linq.Expressions (1)
System\Linq\Expressions\Compiler\AssemblyGen.cs (1)
36var name = new AssemblyName("Snippets");
System.Private.CoreLib (65)
src\libraries\System.Private.CoreLib\src\Internal\Runtime\InteropServices\ComponentActivator.cs (1)
310Func<AssemblyName, Assembly> resolver = alc.LoadFromAssemblyName;
src\libraries\System.Private.CoreLib\src\Internal\Runtime\InteropServices\IsolatedComponentLoadContext.cs (1)
32protected override Assembly? Load(AssemblyName assemblyName)
src\libraries\System.Private.CoreLib\src\System\Activator.RuntimeType.cs (1)
124AssemblyName assemblyName = new AssemblyName(assemblyString);
src\libraries\System.Private.CoreLib\src\System\AppDomain.cs (2)
150public int ExecuteAssemblyByName(AssemblyName assemblyName, params string?[]? args) => 189public Assembly Load(AssemblyName assemblyRef) => Assembly.Load(assemblyRef);
src\libraries\System.Private.CoreLib\src\System\Reflection\Assembly.cs (5)
101public virtual AssemblyName GetName() => GetName(copiedName: false); 102public virtual AssemblyName GetName(bool copiedName) { throw NotImplemented.ByDesign; } 121public virtual string EscapedCodeBase => AssemblyName.EscapeCodeBase(CodeBase); 152public virtual AssemblyName[] GetReferencedAssemblies() { throw NotImplemented.ByDesign; } 344AssemblyName requestedAssemblyName = new AssemblyName(args.Name!);
src\libraries\System.Private.CoreLib\src\System\Reflection\AssemblyName.cs (7)
151var name = new AssemblyName 166private static Func<string, AssemblyName>? s_getAssemblyName; 167private static Func<string, AssemblyName> InitGetAssemblyName() 180return s_getAssemblyName = getAssemblyNameMethod.CreateDelegate<Func<string, AssemblyName>>(); 188public static AssemblyName GetAssemblyName(string assemblyFile) 294public static bool ReferenceMatchesDefinition(AssemblyName? reference, AssemblyName? definition)
src\libraries\System.Private.CoreLib\src\System\Reflection\AssemblyNameProxy.cs (2)
8public AssemblyName GetAssemblyName(string assemblyFile) 10return AssemblyName.GetAssemblyName(assemblyFile);
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\DynamicMethod.cs (1)
197AssemblyName assemblyName = new AssemblyName("Anonymously Hosted DynamicMethods Assembly");
src\libraries\System.Private.CoreLib\src\System\Resources\ManifestBasedResourceGroveler.cs (1)
420AssemblyName mname = _mediator.MainAssembly.GetName();
src\libraries\System.Private.CoreLib\src\System\Runtime\Loader\AssemblyDependencyResolver.cs (1)
110public string? ResolveAssemblyToPath(AssemblyName assemblyName)
src\libraries\System.Private.CoreLib\src\System\Runtime\Loader\AssemblyLoadContext.cs (12)
56private event Func<AssemblyLoadContext, AssemblyName, Assembly>? _resolving; 210public event Func<AssemblyLoadContext, AssemblyName, Assembly?>? Resolving 304public static AssemblyName GetAssemblyName(string assemblyPath) 308return AssemblyName.GetAssemblyName(assemblyPath); 314protected virtual Assembly? Load(AssemblyName assemblyName) 321public Assembly LoadFromAssemblyName(AssemblyName assemblyName) 607private static RuntimeAssembly? Resolve(IntPtr gchManagedAssemblyLoadContext, AssemblyName assemblyName) 616private Assembly? GetFirstResolvedAssemblyFromResolvingEvent(AssemblyName assemblyName) 619foreach (Func<AssemblyLoadContext, AssemblyName, Assembly> handler in Delegate.EnumerateInvocationList(_resolving)) 663private RuntimeAssembly? ResolveUsingLoad(AssemblyName assemblyName) 672private RuntimeAssembly? ResolveUsingEvent(AssemblyName assemblyName) 746private RuntimeAssembly? ResolveSatelliteAssembly(AssemblyName assemblyName)
src\libraries\System.Private.CoreLib\src\System\Security\SecurityException.cs (1)
85public AssemblyName? FailedAssemblyInfo { get; set; }
src\libraries\System.Private.CoreLib\src\System\StartupHookProvider.cs (1)
26public AssemblyName AssemblyName;
src\libraries\System.Reflection.Metadata\src\System\Reflection\Metadata\AssemblyNameInfo.cs (6)
19/// It's a more lightweight, immutable version of <seealso cref="AssemblyName"/> that does not pre-allocate <seealso cref="System.Globalization.CultureInfo"/> instances. 108/// <remarks>In contrary to <seealso cref="AssemblyName.FullName"/> it does not validate public key token neither computes it based on the provided public key.</remarks> 136/// Initializes a new instance of the <seealso cref="AssemblyName"/> class based on the stored information. 139/// Do not create an <see cref="AssemblyName"/> instance with <see cref="CultureName"/> string unless 142public AssemblyName ToAssemblyName() 144AssemblyName assemblyName = new();
src\System\Reflection\Assembly.CoreCLR.cs (1)
48public static Assembly Load(AssemblyName assemblyRef)
src\System\Reflection\Emit\RuntimeAssemblyBuilder.cs (8)
24public static AssemblyBuilder DefineDynamicAssembly(AssemblyName name, AssemblyBuilderAccess access) 30AssemblyName name, 36AssemblyName name, 84internal RuntimeAssemblyBuilder(AssemblyName name, 122private static unsafe RuntimeAssembly CreateDynamicAssembly(AssemblyLoadContext assemblyLoadContext, AssemblyName name, AssemblyBuilderAccess access) 158AssemblyName name, 230public override AssemblyName GetName(bool copiedName) => InternalAssembly.GetName(copiedName); 245public override AssemblyName[] GetReferencedAssemblies() =>
src\System\Reflection\RuntimeAssembly.cs (6)
121public override AssemblyName GetName(bool copiedName) 123var an = new AssemblyName(); 360internal static unsafe RuntimeAssembly InternalLoad(AssemblyName assemblyName, 491public override AssemblyName[] GetReferencedAssemblies() 493AssemblyName[]? referencedAssemblies = null; 658var an = new AssemblyName();
src\System\Reflection\TypeNameResolver.CoreCLR.cs (3)
17private Func<AssemblyName, Assembly?>? _assemblyResolver; 41Func<AssemblyName, Assembly?>? assemblyResolver, 164private Assembly? ResolveAssembly(AssemblyName assemblyName)
src\System\Runtime\Loader\AssemblyLoadContext.CoreCLR.cs (2)
113private static RuntimeAssembly? ResolveSatelliteAssembly(IntPtr gchManagedAssemblyLoadContext, AssemblyName assemblyName) 139private static RuntimeAssembly? ResolveUsingResolvingEvent(IntPtr gchManagedAssemblyLoadContext, AssemblyName assemblyName)
src\System\Type.CoreCLR.cs (3)
44Func<AssemblyName, Assembly?>? assemblyResolver, 56Func<AssemblyName, Assembly?>? assemblyResolver, 70Func<AssemblyName, Assembly?>? assemblyResolver,
System.Private.Windows.Core (2)
System\Private\Windows\Core\BinaryFormat\Deserializer\DefaultTypeResolver.cs (2)
53AssemblyName assemblyName = typeName.AssemblyName.ToAssemblyName(); 99static Assembly? ResolveSimpleAssemblyName(AssemblyName assemblyName)
System.Private.Xml (9)
System\Xml\Serialization\CodeGenerator.cs (1)
1253AssemblyName assemblyName = new AssemblyName();
System\Xml\Serialization\Compilation.cs (1)
151AssemblyName name = type.Assembly.GetName();
System\Xml\Serialization\Compiler.cs (1)
85internal static string GetTempAssemblyName(AssemblyName parent, string? ns)
System\Xml\Serialization\XmlSerializer.cs (2)
249AssemblyName name = type.Assembly.GetName(); 603AssemblyName name = type!.Assembly.GetName();
System\Xml\Xsl\IlGen\XmlILModule.cs (4)
40AssemblyName asmName = CreateAssemblyName(); 76AssemblyName asmName; 273private static AssemblyName CreateAssemblyName() 275AssemblyName name;
System.Reflection (1)
System.Reflection.cs (1)
7[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Reflection.AssemblyName))]
System.Reflection.Context (3)
System\Reflection\Context\Delegation\DelegatingAssembly.cs (3)
168public override AssemblyName GetName() 173public override AssemblyName GetName(bool copiedName) 178public override AssemblyName[] GetReferencedAssemblies()
System.Reflection.Emit (6)
System\Reflection\Emit\ModuleBuilderImpl.cs (1)
849AssemblyName aName = assembly.GetName();
System\Reflection\Emit\PersistedAssemblyBuilder.cs (5)
17private readonly AssemblyName _assemblyName; 34public PersistedAssemblyBuilder(AssemblyName name, Assembly coreAssembly, IEnumerable<CustomAttributeBuilder>? assemblyAttributes = null) 40_assemblyName = (AssemblyName)name.Clone(); 204public override AssemblyName GetName(bool copiedName) => (AssemblyName)_assemblyName.Clone();
System.Reflection.Metadata (15)
System\Reflection\Metadata\AssemblyNameInfo.cs (6)
19/// It's a more lightweight, immutable version of <seealso cref="AssemblyName"/> that does not pre-allocate <seealso cref="System.Globalization.CultureInfo"/> instances. 108/// <remarks>In contrary to <seealso cref="AssemblyName.FullName"/> it does not validate public key token neither computes it based on the provided public key.</remarks> 136/// Initializes a new instance of the <seealso cref="AssemblyName"/> class based on the stored information. 139/// Do not create an <see cref="AssemblyName"/> instance with <see cref="CultureName"/> string unless 142public AssemblyName ToAssemblyName() 144AssemblyName assemblyName = new();
System\Reflection\Metadata\MetadataReader.netstandard.cs (7)
14internal AssemblyName GetAssemblyName(StringHandle nameHandle, Version version, StringHandle cultureHandle, BlobHandle publicKeyOrTokenHandle, AssemblyHashAlgorithm assemblyHashAlgorithm, AssemblyFlags flags) 23var assemblyName = new AssemblyName() 49/// Gets the <see cref="AssemblyName"/> for a given file. 51/// <param name="assemblyFile">The path for the assembly which <see cref="AssemblyName"/> is to be returned.</param> 52/// <returns>An <see cref="AssemblyName"/> that represents the given <paramref name="assemblyFile"/>.</returns> 57public static unsafe AssemblyName GetAssemblyName(string assemblyFile) 87AssemblyName assemblyName = mdReader.GetAssemblyDefinition().GetAssemblyName();
System\Reflection\Metadata\TypeSystem\AssemblyDefinition.netstandard.cs (1)
8public AssemblyName GetAssemblyName()
System\Reflection\Metadata\TypeSystem\AssemblyReference.netstandard.cs (1)
8public AssemblyName GetAssemblyName()
System.Reflection.MetadataLoadContext (16)
System\Reflection\MetadataAssemblyResolver.cs (1)
35public abstract Assembly? Resolve(MetadataLoadContext context, AssemblyName assemblyName);
System\Reflection\MetadataLoadContext.Apis.cs (2)
186AssemblyName assemblyNameObject = new AssemblyName(assemblyName); 198public Assembly LoadFromAssemblyName(AssemblyName assemblyName)
System\Reflection\PathAssemblyResolver.cs (2)
55public override Assembly? Resolve(MetadataLoadContext context, AssemblyName assemblyName) 67AssemblyName assemblyNameFromPath = assemblyFromPath.GetName();
System\Reflection\TypeLoading\Assemblies\RoAssembly.cs (4)
36public sealed override AssemblyName GetName(bool copiedName) => GetAssemblyNameDataNoCopy().CreateAssemblyName(); 143public sealed override AssemblyName[] GetReferencedAssemblies() 148AssemblyName[] result = new AssemblyName[data.Length];
System\Reflection\TypeLoading\General\AssemblyNameData.cs (2)
29public AssemblyName CreateAssemblyName() 31AssemblyName an = new AssemblyName
System\Reflection\TypeLoading\General\Helpers.cs (3)
185AssemblyName an = new AssemblyName(); 308Func<AssemblyName, Assembly> assemblyResolver = 356public static RoAssemblyName ToRoAssemblyName(this AssemblyName assemblyName)
System\Reflection\TypeLoading\General\RoAssemblyName.cs (2)
73public AssemblyName ToAssemblyName() 75AssemblyName an = new AssemblyName()
System.Resources.Extensions (4)
System\Resources\Extensions\BinaryFormat\BinaryFormattedObject.TypeResolver.cs (2)
61AssemblyName assemblyName = typeName.AssemblyName.ToAssemblyName(); 105static Assembly? ResolveSimpleAssemblyName(AssemblyName assemblyName)
System\Resources\Extensions\TypeNameComparer.cs (2)
109AssemblyName an1 = new AssemblyName(typeSpan1.ToString()); 110AssemblyName an2 = new AssemblyName(typeSpan2.ToString());
System.Runtime (1)
artifacts\obj\System.Runtime\Debug\net10.0\System.Runtime.Forwards.cs (1)
437[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Reflection.AssemblyName))]
System.Runtime.Serialization.Schema (1)
System\Runtime\Serialization\Schema\CodeExporter.cs (1)
520AssemblyName assemblyName = Assembly.GetExecutingAssembly().GetName();
System.Text.Json.SourceGeneration (1)
JsonSourceGenerator.Emitter.cs (1)
43private static readonly AssemblyName s_assemblyName = typeof(Emitter).Assembly.GetName();
System.Text.RegularExpressions (4)
System\Text\RegularExpressions\Regex.cs (3)
222public static void CompileToAssembly(RegexCompilationInfo[] regexinfos, AssemblyName assemblyname) => 226public static void CompileToAssembly(RegexCompilationInfo[] regexinfos, AssemblyName assemblyname, CustomAttributeBuilder[]? attributes) => 230public static void CompileToAssembly(RegexCompilationInfo[] regexinfos, AssemblyName assemblyname, CustomAttributeBuilder[]? attributes, string? resourceFile)
System\Text\RegularExpressions\RegexAssemblyCompiler.cs (1)
31internal RegexAssemblyCompiler(AssemblyName an, CustomAttributeBuilder[]? attribs, string? resourceFile)
System.Windows.Extensions (2)
artifacts\obj\System.Windows.Extensions\Debug\net10.0\System.Windows.Extensions.notsupported.cs (2)
74public System.Reflection.AssemblyName AssemblyAccessToAssemblyName { get { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_System_Windows_Extensions); } } 77public static System.Xaml.Permissions.XamlAccessLevel AssemblyAccessTo(System.Reflection.AssemblyName assemblyName) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_System_Windows_Extensions); }
System.Windows.Forms (35)
System\Resources\AssemblyNamesTypeResolutionService.cs (12)
12private AssemblyName[]? _names; 13private ConcurrentDictionary<AssemblyName, Assembly>? _cachedAssemblies; 19internal AssemblyNamesTypeResolutionService(AssemblyName[]? names) => _names = names; 21public Assembly? GetAssembly(AssemblyName name) => GetAssembly(name, true); 24public Assembly? GetAssembly(AssemblyName name, bool throwOnError) 39foreach (AssemblyName assemblyName in _names.Where(an => an.Equals(name))) 63public string GetPathOfAssembly(AssemblyName name) 100AssemblyName? assemblyName = null; 111List<AssemblyName> assemblyList = new(_names.Length); 112foreach (AssemblyName asmName in _names) 129foreach (AssemblyName assemblyName in _names) 181public void ReferenceAssembly(AssemblyName name) => throw new NotSupportedException();
System\Resources\IAliasResolver.cs (2)
10AssemblyName? ResolveAlias(string alias); 11void PushAlias(string? alias, AssemblyName name);
System\Resources\ResXDataNode.cs (2)
594public string? GetValueTypeName(AssemblyName[]? names) 637public object? GetValue(AssemblyName[]? names) => GetValue(new AssemblyNamesTypeResolutionService(names));
System\Resources\ResXResourceReader.cs (11)
22private readonly AssemblyName[]? _assemblyNames; 44private ResXResourceReader(AssemblyName[] assemblyNames) 98public ResXResourceReader(Stream stream, AssemblyName[] assemblyNames) 103internal ResXResourceReader(Stream stream, AssemblyName[] assemblyNames, IAliasResolver? aliasResolver) 110public ResXResourceReader(TextReader reader, AssemblyName[] assemblyNames) : this(reader, assemblyNames, null) 114internal ResXResourceReader(TextReader reader, AssemblyName[] assemblyNames, IAliasResolver? aliasResolver) 121public ResXResourceReader(string fileName, AssemblyName[] assemblyNames) 126internal ResXResourceReader(string fileName, AssemblyName[] assemblyNames, IAliasResolver? aliasResolver) 299public static ResXResourceReader FromFileContents(string fileContents, AssemblyName[] assemblyNames) 515AssemblyName assemblyName = new(typeName!); 537AssemblyName? assemblyName = null;
System\Resources\ResXResourceReader.ReaderAliasResolver.cs (4)
12private readonly Dictionary<string, AssemblyName> _cachedAliases; 19public AssemblyName? ResolveAlias(string alias) 21_cachedAliases.TryGetValue(alias, out AssemblyName? result); 25public void PushAlias(string? alias, AssemblyName name)
System\Resources\ResXResourceWriter.cs (2)
249public virtual void AddAlias(string? aliasName, AssemblyName assemblyName) 493private string? GetAliasFromName(AssemblyName assemblyName)
System\Windows\Forms\ComponentModel\COM2Interop\COM2TypeInfoProcessor.cs (1)
40AssemblyName assemblyName = new()
System\Windows\Forms\Dialogs\ThreadExceptionDialog.cs (1)
181AssemblyName name = assembly.GetName();
System.Windows.Forms.Design (35)
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.cs (3)
66private AssemblyName[]? AssemblyNames { get; set; } 172Dictionary<Assembly, AssemblyName> assemblies = new(_objects.Count); 183AssemblyNames = new AssemblyName[assemblies.Count];
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.LocalDesignerSerializationManager.cs (4)
59AssemblyName[] names = _store.AssemblyNames!; 61foreach (AssemblyName n in names) 72foreach (AssemblyName n in names) 77foreach (AssemblyName dep in a.GetReferencedAssemblies())
System\Drawing\BitmapSelector.cs (1)
136AssemblyName assemblyName = assembly.GetName();
System\Drawing\Design\ToolboxItem.cs (23)
53public AssemblyName? AssemblyName 55get => (AssemblyName?)Properties["AssemblyName"]; 63public AssemblyName[]? DependentAssemblies 67AssemblyName[]? names = (AssemblyName[]?)Properties["DependentAssemblies"]; 68return (AssemblyName[]?)names?.Clone(); 388private static bool AreAssemblyNamesEqual(AssemblyName? name1, AssemblyName? name2) 405if (value is AssemblyName valueName) 446protected virtual Type? GetType(IDesignerHost? host, AssemblyName? assemblyName, string typeName, bool reference) 553AssemblyName assemblyName = type.Assembly.GetName(true); 555Dictionary<string, AssemblyName> parents = []; 560AssemblyName policiedName = parentType.Assembly.GetName(true); 562AssemblyName? aname = GetNonRetargetedAssemblyName(type, policiedName); 573AssemblyName[] parentAssemblies = new AssemblyName[parents.Count]; 639private static AssemblyName? GetNonRetargetedAssemblyName(Type type, AssemblyName policiedAssemblyName) 654foreach (AssemblyName name in type.Assembly.GetReferencedAssemblies()) 663foreach (AssemblyName name in type.Assembly.GetReferencedAssemblies()) 675foreach (AssemblyName name in type.Assembly.GetReferencedAssemblies()) 767ValidatePropertyType(propertyName, value, typeof(AssemblyName), true); 789ValidatePropertyType(propertyName, value, typeof(AssemblyName[]), true);
System\Resources\Tools\StronglyTypedResourceBuilder.cs (2)
177string typeName = node.GetValueTypeName((AssemblyName[]?)null)!; 179string? valueAsString = node.GetValue((AssemblyName[]?)null)!.ToString();
System\Windows\Forms\Design\AxImporter.IReferenceResolver.cs (1)
33string? ResolveComReference(AssemblyName name);
System\Windows\Forms\Design\DocumentDesigner.AxToolboxItem.cs (1)
178Assembly? a = trs.GetAssembly(AssemblyName.GetAssemblyName(fullPath));
System.Windows.Forms.Design.Tests (93)
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationServiceTests.cs (66)
171AssemblyName[] assemblies = Assert.IsType<AssemblyName[]>(info.GetValue("Assemblies", typeof(AssemblyName[]))); 259AssemblyName[] assemblies = Assert.IsType<AssemblyName[]>(info.GetValue("Assemblies", typeof(AssemblyName[]))); 361AssemblyName[] assemblies = Assert.IsType<AssemblyName[]>(info.GetValue("Assemblies", typeof(AssemblyName[]))); 406AssemblyName[] assemblies = Assert.IsType<AssemblyName[]>(info.GetValue("Assemblies", typeof(AssemblyName[]))); 452AssemblyName[] assemblies = Assert.IsType<AssemblyName[]>(info.GetValue("Assemblies", typeof(AssemblyName[]))); 498AssemblyName[] assemblies = Assert.IsType<AssemblyName[]>(info.GetValue("Assemblies", typeof(AssemblyName[]))); 547AssemblyName[] assemblies = Assert.IsType<AssemblyName[]>(info.GetValue("Assemblies", typeof(AssemblyName[]))); 596AssemblyName[] assemblies = Assert.IsType<AssemblyName[]>(info.GetValue("Assemblies", typeof(AssemblyName[]))); 650Assert.Null(info.GetValue("Assemblies", typeof(AssemblyName[]))); 668Assert.Null(info.GetValue("Assemblies", typeof(AssemblyName[]))); 722Assert.Null(info.GetValue("Assemblies", typeof(AssemblyName[]))); 733Assert.Null(info.GetValue("Assemblies", typeof(AssemblyName[]))); 759Assert.Null(info.GetValue("Assemblies", typeof(AssemblyName[]))); 772Assert.Null(info.GetValue("Assemblies", typeof(AssemblyName[]))); 807Assert.Null(info.GetValue("Assemblies", typeof(AssemblyName[]))); 821Assert.Null(info.GetValue("Assemblies", typeof(AssemblyName[]))); 866Assert.Null(info.GetValue("Assemblies", typeof(AssemblyName[]))); 879Assert.Null(info.GetValue("Assemblies", typeof(AssemblyName[]))); 930Assert.Null(info.GetValue("Assemblies", typeof(AssemblyName[]))); 941Assert.Null(info.GetValue("Assemblies", typeof(AssemblyName[]))); 967Assert.Null(info.GetValue("Assemblies", typeof(AssemblyName[]))); 980Assert.Null(info.GetValue("Assemblies", typeof(AssemblyName[]))); 1015Assert.Null(info.GetValue("Assemblies", typeof(AssemblyName[]))); 1029Assert.Null(info.GetValue("Assemblies", typeof(AssemblyName[]))); 1074Assert.Null(info.GetValue("Assemblies", typeof(AssemblyName[]))); 1087Assert.Null(info.GetValue("Assemblies", typeof(AssemblyName[]))); 1140Assert.Null(info.GetValue("Assemblies", typeof(AssemblyName[]))); 1151Assert.Null(info.GetValue("Assemblies", typeof(AssemblyName[]))); 1162Assert.Null(info.GetValue("Assemblies", typeof(AssemblyName[]))); 1190Assert.Null(info.GetValue("Assemblies", typeof(AssemblyName[]))); 1203Assert.Null(info.GetValue("Assemblies", typeof(AssemblyName[]))); 1216Assert.Null(info.GetValue("Assemblies", typeof(AssemblyName[]))); 1253Assert.Null(info.GetValue("Assemblies", typeof(AssemblyName[]))); 1267Assert.Null(info.GetValue("Assemblies", typeof(AssemblyName[]))); 1281Assert.Null(info.GetValue("Assemblies", typeof(AssemblyName[]))); 1328Assert.Null(info.GetValue("Assemblies", typeof(AssemblyName[]))); 1341Assert.Null(info.GetValue("Assemblies", typeof(AssemblyName[]))); 1354Assert.Null(info.GetValue("Assemblies", typeof(AssemblyName[]))); 1419Assert.Null(info.GetValue("Assemblies", typeof(AssemblyName[]))); 1430Assert.Null(info.GetValue("Assemblies", typeof(AssemblyName[]))); 1441Assert.Null(info.GetValue("Assemblies", typeof(AssemblyName[]))); 1469Assert.Null(info.GetValue("Assemblies", typeof(AssemblyName[]))); 1482Assert.Null(info.GetValue("Assemblies", typeof(AssemblyName[]))); 1495Assert.Null(info.GetValue("Assemblies", typeof(AssemblyName[]))); 1532Assert.Null(info.GetValue("Assemblies", typeof(AssemblyName[]))); 1546Assert.Null(info.GetValue("Assemblies", typeof(AssemblyName[]))); 1560Assert.Null(info.GetValue("Assemblies", typeof(AssemblyName[]))); 1607Assert.Null(info.GetValue("Assemblies", typeof(AssemblyName[]))); 1620Assert.Null(info.GetValue("Assemblies", typeof(AssemblyName[]))); 1633Assert.Null(info.GetValue("Assemblies", typeof(AssemblyName[])));
System\Drawing\Design\ToolboxItemTests.cs (27)
48public void ToolboxItem_AssemblyName_Set_GetReturnsExpected(AssemblyName value) 65Assert.Equal(value.FullName, ((AssemblyName)item.Properties["AssemblyName"]).FullName); 84Assert.Equal(value.FullName, ((AssemblyName)item.Properties["AssemblyName"]).FullName); 155yield return new object[] { Array.Empty<AssemblyName>() }; 156yield return new object[] { new AssemblyName[] { null } }; 157yield return new object[] { new AssemblyName[] { new() } }; 162public void ToolboxItem_DependentAssemblies_Set_GetReturnsExpected(AssemblyName[] value) 1161if (expected is AssemblyName expectedName) 1163Assert.Equal(expectedName.FullName, Assert.IsType<AssemblyName>(actual).FullName); 1206AssemblyName validNameWithCodeBase = new(typeof(int).Assembly.FullName) 1212AssemblyName invalidNameWithCodeBase = new("NoSuchAssembly") 1218AssemblyName invalidNameWithInvalidCodeBase = new("NoSuchAssembly") 1240AssemblyName badImageFormatExceptionCodeBase = new("NoSuchAssembly") 1246AssemblyName ioFormatExceptionCodeBase = new("NoSuchAssembly") 1278public void ToolboxItem_GetType_InvokeWithoutTypeNameAssemblyName_ReturnsExpected(IDesignerHost host, AssemblyName assemblyName, string typeName, bool reference, Type expected) 1295public void ToolboxItem_GetType_InvokeWithTypeNameAssemblyName_ReturnsExpected(IDesignerHost host, AssemblyName assemblyName, string typeName, bool reference, Type expected) 1347DependentAssemblies = new AssemblyName[2], 1392DependentAssemblies = new AssemblyName[2], 1421DependentAssemblies = new AssemblyName[2], 1431Assert.Equal(new AssemblyName[2], item.DependentAssemblies); 1533AssemblyName name = new(); 1656public new Type GetType(IDesignerHost host, AssemblyName assemblyName, string typeName, bool reference) 1686public Assembly GetAssembly(AssemblyName name) => GetAssemblyResult; 1688public Assembly GetAssembly(AssemblyName name, bool throwOnError) 1693public string GetPathOfAssembly(AssemblyName name) 1718public List<AssemblyName> ReferenceAssemblies { get; } = []; 1720public void ReferenceAssembly(AssemblyName name)
System.Windows.Forms.Tests (4)
System\Resources\ResXSerializationBinderTests.cs (4)
71public Assembly? GetAssembly(AssemblyName name) => throw new NotImplementedException(); 72public Assembly? GetAssembly(AssemblyName name, bool throwOnError) => throw new NotImplementedException(); 73public string? GetPathOfAssembly(AssemblyName name) => throw new NotImplementedException(); 110public void ReferenceAssembly(AssemblyName name) => throw new NotImplementedException();
System.Xaml (31)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SafeSecurityHelper.cs (6)
120static Dictionary<object, AssemblyName> _assemblies; // get key via GetKeyForAssembly 131internal static Assembly GetLoadedAssembly(AssemblyName assemblyName) 141AssemblyName curAsmName = GetAssemblyName(assemblies[i]); 157static AssemblyName GetAssemblyName(Assembly assembly) 162AssemblyName result; 165_assemblies = new Dictionary<object, AssemblyName>();
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\ReflectionHelper.cs (3)
411AssemblyName assemblyName = new AssemblyName(assemblyGivenName); 422AssemblyName cachedName = new AssemblyName(retassem.FullName); 423if (!AssemblyName.ReferenceMatchesDefinition(assemblyName, cachedName))
System\Xaml\MS\Impl\XmlNsInfo.cs (5)
54private ICollection<AssemblyName> _internalsVisibleTo; 55internal ICollection<AssemblyName> InternalsVisibleTo 232ICollection<AssemblyName> LoadInternalsVisibleTo() 234var result = new List<AssemblyName>(); 265void LoadInternalsVisibleToHelper(List<AssemblyName> result, string assemblyName, Assembly assembly)
System\Xaml\RefOnly\LooseTypeExtensions.cs (5)
39AssemblyName t1name = new AssemblyName(t1.Assembly.FullName); 40AssemblyName t2name = new AssemblyName(t2.Assembly.FullName); 52AssemblyName name1, AssemblyName name2) 54AssemblyName windowsBaseName = null;
System\Xaml\XamlSchemaContext.cs (12)
755ICollection<AssemblyName> friends = nsInfo.InternalsVisibleTo; 761AssemblyName toAssemblyName = new AssemblyName(toAssembly.FullName); 762foreach (AssemblyName friend in friends) 1214private AssemblyName[] _referenceAssemblyNames; 1234AssemblyName parsedAsmName = new AssemblyName(assemblyName); 1237AssemblyName[] asmNames = new AssemblyName[_referenceAssemblies.Count]; 1242AssemblyName refAsmName = _referenceAssemblyNames[i]; 1257private static bool AssemblySatisfiesReference(AssemblyName assemblyName, AssemblyName reference) 1289AssemblyName parsedAsmName = new AssemblyName(assemblyName); 1314AssemblyName shortName = new AssemblyName(parsedAsmName.Name);
TaskUsageLogger (1)
TaskUsageLogger.cs (1)
270AssemblyName name = new AssemblyName(evaluatedTaskAssemblyName);
UIAutomationClient (6)
MS\Internal\Automation\ProxyManager.cs (5)
52internal static void RegisterProxyAssembly ( AssemblyName assemblyName ) 361AssemblyName ourAssembly = Assembly.GetAssembly(typeof(ProxyManager)).GetName(); 366AssemblyName proxyAssemblyName = new AssemblyName(); 377AssemblyName assemblyName = new AssemblyName(); 378foreach ( AssemblyName name in callingAssembly.GetReferencedAssemblies() )
System\Windows\Automation\ClientSettings.cs (1)
41public static void RegisterClientSideProviderAssembly(AssemblyName assemblyName)
VBCSCompiler.UnitTests (2)
AnalyzerConsistencyCheckerTests.cs (1)
253public string? GetOriginalDependencyLocation(AssemblyName assembly) => throw new Exception();
CompilerServerTests.cs (1)
455AssemblyName.GetAssemblyName(compilerServerExecutable).ProcessorArchitecture);
xunit.console (2)
common\AssemblyResolution\AssemblyHelper.cs (2)
68protected override Assembly Load(AssemblyName assemblyName) 85Assembly OnResolving(AssemblyLoadContext context, AssemblyName name)
Xunit.NetCore.Extensions (2)
AssemblyFixtureSupport\XunitTestFrameworkExecutorWithAssemblyFixture.cs (1)
15public XunitTestFrameworkExecutorWithAssemblyFixture(AssemblyName assemblyName, ISourceInformationProvider sourceInformationProvider, IMessageSink diagnosticMessageSink)
AssemblyFixtureSupport\XunitTestFrameworkWithAssemblyFixture.cs (1)
18protected override ITestFrameworkExecutor CreateExecutor(AssemblyName assemblyName)