9 types derived from Assembly
Aspire.Dashboard.Tests (1)
Microsoft.AspNetCore.Mvc.Core.Test (1)
Microsoft.AspNetCore.Mvc.Razor.Test (1)
Microsoft.Extensions.FileProviders.Embedded.Tests (1)
System.Private.CoreLib (2)
System.Reflection.Context (1)
System.Reflection.MetadataLoadContext (1)
System.Xaml.Tests (1)
2436 references to Assembly
AnalyzerRunner (6)
Aspire.Confluent.Kafka.Tests (1)
Aspire.Dashboard (1)
Aspire.Dashboard.Tests (2)
Aspire.Hosting (10)
Aspire.Hosting.Azure (1)
Aspire.Hosting.Testing (9)
Aspire.Hosting.Testing.Tests (2)
Aspire.Hosting.Tests (1)
Aspire.Playground.Tests (4)
Aspire.RuntimeIdentifier.Tool (1)
BuildActionTelemetryTable (4)
CodeStyleConfigFileGenerator (2)
ControllersFromServicesWebSite (1)
DesignSurfaceExt (6)
dotnet-dev-certs (2)
dotnet-getdocument (2)
dotnet-openapi (3)
dotnet-sql-cache (2)
dotnet-svcutil.xmlserializer (30)
dotnet-svcutil.xmlserializer.IntegrationTests (2)
dotnet-svcutil-lib (53)
dotnet-user-jwts (2)
dotnet-user-secrets (2)
GenerateRulesMissingDocumentation (2)
GetDocument.Insider (16)
IdeCoreBenchmarks (2)
illink (22)
src\tools\illink\src\ILLink.Shared\TrimAnalysis\IntrinsicId.cs (13)
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>
288 /// <item><see cref="System.Reflection.Assembly.CreateInstance(string)"/></item>
289 /// <item><see cref="System.Reflection.Assembly.CreateInstance(string, bool)"/></item>
290 /// <item><see cref="System.Reflection.Assembly.CreateInstance(string, bool, System.Reflection.BindingFlags, System.Reflection.Binder, object[], System.Globalization.CultureInfo, object[])"/></item>
295 /// <see cref="System.Reflection.Assembly.Location"/>
299 /// <see cref="System.Reflection.Assembly.GetFile(string)"/>
303 /// <see cref="System.Reflection.Assembly.GetFiles()"/>
304 /// <see cref="System.Reflection.Assembly.GetFiles(bool)"/>
ILLink.RoslynAnalyzer (13)
src\tools\illink\src\ILLink.Shared\TrimAnalysis\IntrinsicId.cs (13)
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>
288 /// <item><see cref="System.Reflection.Assembly.CreateInstance(string)"/></item>
289 /// <item><see cref="System.Reflection.Assembly.CreateInstance(string, bool)"/></item>
290 /// <item><see cref="System.Reflection.Assembly.CreateInstance(string, bool, System.Reflection.BindingFlags, System.Reflection.Binder, object[], System.Globalization.CultureInfo, object[])"/></item>
295 /// <see cref="System.Reflection.Assembly.Location"/>
299 /// <see cref="System.Reflection.Assembly.GetFile(string)"/>
303 /// <see cref="System.Reflection.Assembly.GetFiles()"/>
304 /// <see cref="System.Reflection.Assembly.GetFiles(bool)"/>
ILLink.Tasks (1)
LocalizationWebsite (2)
Microsoft.Analyzers.Extra.Tests (60)
Microsoft.Analyzers.Local.Tests (28)
ApiLifecycle\ApiLifecycleAnalyzerTest.cs (16)
80public static IEnumerable<System.Reflection.Assembly> References => new[]
82Assembly.GetAssembly(typeof(ObsoleteAttribute))!,
83Assembly.GetAssembly(typeof(EditorBrowsableAttribute))!,
84Assembly.GetAssembly(typeof(Debugger))!,
85Assembly.GetAssembly(typeof(IReadOnlyList<>))!,
86Assembly.GetAssembly(typeof(ArgumentOutOfRangeException))!,
87Assembly.GetAssembly(typeof(IServiceProvider))!,
88Assembly.GetAssembly(typeof(RequiredAttribute))!,
89Assembly.GetAssembly(typeof(OptionsBuilder<>))!,
90Assembly.GetAssembly(typeof(IConfigurationSection))!,
91Assembly.GetAssembly(typeof(HttpRequestMessage))!,
92Assembly.GetAssembly(typeof(IDistributedCache))!,
93Assembly.GetAssembly(typeof(Microsoft.Extensions.ObjectPool.ObjectPool))!,
94Assembly.GetAssembly(typeof(IBufferWriter<>))!,
95Assembly.GetAssembly(typeof(ITagCollector))!,
96Assembly.GetAssembly(typeof(Microsoft.Extensions.Logging.ILogger))!,
Microsoft.Arcade.Common (1)
Microsoft.AspNetCore (4)
Microsoft.AspNetCore.Analyzer.Testing (5)
Microsoft.AspNetCore.App.Analyzers (2)
Microsoft.AspNetCore.App.Analyzers.Test (1)
Microsoft.AspNetCore.Components (9)
Microsoft.AspNetCore.Components.Endpoints (11)
Microsoft.AspNetCore.Components.Server (8)
Microsoft.AspNetCore.Components.Tests (2)
Microsoft.AspNetCore.Components.WebAssembly (37)
Microsoft.AspNetCore.Components.WebAssembly.Server (2)
Microsoft.AspNetCore.Components.WebView (2)
Microsoft.AspNetCore.Components.WebView.Maui (1)
Microsoft.AspNetCore.Components.WebView.WindowsForms (3)
Microsoft.AspNetCore.Components.WebView.Wpf (3)
Microsoft.AspNetCore.Hosting (13)
Microsoft.AspNetCore.Http.Extensions (2)
Microsoft.AspNetCore.Http.Extensions.Tests (1)
Microsoft.AspNetCore.Http.Microbenchmarks (1)
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (2)
Microsoft.AspNetCore.Identity.FunctionalTests (1)
Microsoft.AspNetCore.Identity.InMemory.Test (1)
Microsoft.AspNetCore.Identity.Test (2)
Microsoft.AspNetCore.Identity.UI (5)
Microsoft.AspNetCore.InternalTesting (11)
Microsoft.AspNetCore.InternalTesting.Tests (8)
Microsoft.AspNetCore.Mvc (3)
Microsoft.AspNetCore.Mvc.Core (44)
Microsoft.AspNetCore.Mvc.Core.Test (11)
Microsoft.AspNetCore.Mvc.FunctionalTests (20)
Infrastructure\ResourceFile.cs (10)
24public static void UpdateOrVerify(Assembly assembly, string outputFile, string expectedContent, string responseContent, string token = null)
49/// <param name="assembly">The <see cref="Assembly"/> containing <paramref name="resourceName"/>.</param>
68public static Stream GetResourceStream(Assembly assembly, string resourceName, bool sourceFile)
113/// <param name="assembly">The <see cref="Assembly"/> containing <paramref name="resourceName"/>.</param>
134public static async Task<string> ReadResourceAsync(Assembly assembly, string resourceName, bool sourceFile)
154/// <param name="assembly">The <see cref="Assembly"/> containing <paramref name="resourceName"/>.</param>
174public static string ReadResource(Assembly assembly, string resourceName, bool sourceFile)
195/// <param name="assembly">The <see cref="Assembly"/> containing <paramref name="resourceName"/>.</param>
207private static void UpdateFile(Assembly assembly, string resourceName, string previousContent, string content)
234private static bool Exists(Assembly assembly, string fullName)
Microsoft.AspNetCore.Mvc.Localization (1)
Microsoft.AspNetCore.Mvc.NewtonsoftJson (1)
Microsoft.AspNetCore.Mvc.Razor (10)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (7)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (3)
Microsoft.AspNetCore.Mvc.TagHelpers (1)
Microsoft.AspNetCore.Mvc.Test (5)
Microsoft.AspNetCore.Mvc.Testing (21)
Microsoft.AspNetCore.OpenApi (2)
Microsoft.AspNetCore.Razor.Runtime (8)
Microsoft.AspNetCore.Server.IIS (2)
Microsoft.AspNetCore.Server.IntegrationTesting (4)
Microsoft.AspNetCore.Shared.Tests (2)
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (2)
Microsoft.AspNetCore.SignalR.Core (2)
Microsoft.AspNetCore.TestHost (9)
Microsoft.AspNetCore.Tests (1)
Microsoft.Build (46)
CoreCLRAssemblyLoader.cs (16)
22private readonly Dictionary<string, Assembly> _pathsToAssemblies = new Dictionary<string, Assembly>(StringComparer.OrdinalIgnoreCase);
23private readonly Dictionary<string, Assembly> _namesToAssemblies = new Dictionary<string, Assembly>();
44public Assembly LoadFromPath(string fullPath)
68private Assembly LoadUsingLegacyDefaultContext(string fullPath)
78Assembly assembly;
88private Assembly LoadUsingPluginContext(string fullPath)
92Assembly assembly;
111private Assembly TryGetWellKnownAssembly(AssemblyLoadContext context, AssemblyName assemblyName)
122string[] searchPaths = [Assembly.GetExecutingAssembly().Location];
126private Assembly TryResolveAssembly(AssemblyLoadContext context, AssemblyName assemblyName)
130Assembly assembly = TryGetWellKnownAssembly(context, assemblyName);
146private Assembly TryResolveAssemblyFromPaths(AssemblyLoadContext context, AssemblyName assemblyName, IEnumerable<string> searchPaths)
185private Assembly LoadAndCache(AssemblyLoadContext context, string fullPath)
187var assembly = context.LoadFromAssemblyPath(fullPath);
Microsoft.Build.BuildCheck.UnitTests (1)
Microsoft.Build.CommandLine.UnitTests (6)
Microsoft.Build.Engine.OM.UnitTests (2)
Microsoft.Build.Engine.UnitTests (23)
Microsoft.Build.Framework (6)
Microsoft.Build.Framework.UnitTests (1)
Microsoft.Build.Tasks.CodeAnalysis (2)
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (7)
Microsoft.Build.Tasks.Core (22)
Microsoft.Build.Tasks.UnitTests (3)
Microsoft.Build.UnitTests.Shared (2)
Microsoft.Build.Utilities.Core (1)
Microsoft.Build.Utilities.UnitTests (1)
Microsoft.CodeAnalysis (36)
Microsoft.CodeAnalysis.CodeStyle (3)
Microsoft.CodeAnalysis.CodeStyle.Fixes (6)
Microsoft.CodeAnalysis.Compiler.Test.Resources (1)
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (10)
CommandLineTests.cs (9)
292"/analyzer:" + Assembly.GetExecutingAssembly().Location,
2925var csc = CreateCSharpCompiler(null, dir.Path, new[] { "/nologo", "/preferreduilang:en", "/t:library", "/a:" + Assembly.GetExecutingAssembly().Location, "a.cs" });
2961var csc = CreateCSharpCompiler(null, dir.Path, new[] { "/nologo", "/preferreduilang:en", "/t:library", "/a:" + Assembly.GetExecutingAssembly().Location, "a.cs", "/ruleset:" + ruleSetFile.Path });
2997"/a:" + Assembly.GetExecutingAssembly().Location, "a.cs",
3008"/a:" + Assembly.GetExecutingAssembly().Location, "a.cs",
3516"/a:" + Assembly.GetExecutingAssembly().Location, "a.cs",
3527"/a:" + Assembly.GetExecutingAssembly().Location, "a.cs",
10570args = args.Append("/a:" + Assembly.GetExecutingAssembly().Location);
15042"/analyzer:" + Assembly.GetExecutingAssembly().Location,
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (14)
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Features (1)
Microsoft.CodeAnalysis.CSharp.Scripting.Desktop.UnitTests (7)
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (14)
Diagnostics\AddMissingReference\AddMissingReferenceTests.vb (8)
17Private Shared ReadOnly s_presentationCoreAssembly As Assembly
18Private Shared ReadOnly s_presentationFrameworkAssembly As Assembly
19Private Shared ReadOnly s_windowsBaseAssembly As Assembly
20Private Shared ReadOnly s_systemXamlAssembly As Assembly
23s_presentationCoreAssembly = Assembly.Load("PresentationCore, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35")
24s_presentationFrameworkAssembly = Assembly.Load("PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35")
25s_windowsBaseAssembly = Assembly.Load("WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35")
26s_systemXamlAssembly = Assembly.Load("System.Xaml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (1)
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider (2)
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (30)
Microsoft.CodeAnalysis.ExternalAccess.Copilot (2)
Microsoft.CodeAnalysis.Features (2)
Microsoft.CodeAnalysis.InteractiveHost (2)
Microsoft.CodeAnalysis.LanguageServer (14)
Microsoft.CodeAnalysis.LanguageServer.UnitTests (3)
Microsoft.CodeAnalysis.Rebuild.UnitTests (2)
Microsoft.CodeAnalysis.Remote.ServiceHub (5)
Microsoft.CodeAnalysis.Scripting (33)
Hosting\AssemblyLoader\InteractiveAssemblyLoader.cs (17)
46private readonly Dictionary<Assembly, LoadedAssembly> _assembliesLoadedFromLocation;
74private readonly struct LoadedAssemblyInfo(Assembly assembly, AssemblyIdentity identity, string? location)
76public readonly Assembly Assembly = assembly;
90_assembliesLoadedFromLocation = new Dictionary<Assembly, LoadedAssembly>();
102internal Assembly LoadAssemblyFromStream(Stream peStream, Stream pdbStream)
104Assembly assembly = _runtimeAssemblyLoader.LoadFromStream(peStream, pdbStream);
182public void RegisterDependency(Assembly dependency)
195private void RegisterLoadedAssemblySimpleNameNoLock(Assembly assembly, string? location)
223internal Assembly? ResolveAssembly(string assemblyDisplayName, Assembly? requestingAssembly)
247internal Assembly? ResolveAssembly(AssemblyIdentity identity, string? loadDirectory)
252Assembly? assembly;
343private Assembly? TryGetAssemblyLoadedFromPath(AssemblyIdentity identity, string directory)
381private Assembly? GetOrLoadKnownAssembly(AssemblyIdentity identity)
383Assembly? assembly = null;
451private static Assembly? FindHighestVersionOrFirstMatchingIdentity(AssemblyIdentity identity, IEnumerable<LoadedAssemblyInfo> infos)
453Assembly? candidate = null;
Microsoft.CodeAnalysis.Scripting.UnitTests (10)
Microsoft.CodeAnalysis.Test.Utilities (16)
Microsoft.CodeAnalysis.UnitTests (81)
AnalyzerAssemblyLoaderTests.cs (61)
290Assembly alpha = loader.LoadFromPath(testFixture.Alpha);
309Assembly alpha = loader.LoadFromPath(testFixture.Alpha);
314Assembly beta = loader.LoadFromPath(testFixture.Beta);
346var assembly = loader.LoadFromPath(delta1Copy);
379Assembly beta = loader.LoadFromPath(testFixture.Beta);
406private static void VerifyAssemblies(AnalyzerAssemblyLoader loader, IEnumerable<Assembly> assemblies, params (string simpleName, string version, string path)[] expected) =>
409private static void VerifyAssemblies(AnalyzerAssemblyLoader loader, IEnumerable<Assembly> assemblies, int? expectedCopyCount, params (string simpleName, string version, string path)[] expected)
465private static void VerifyAssemblies(AnalyzerAssemblyLoader loader, IEnumerable<Assembly> assemblies, int? copyCount, params string[] assemblyPaths)
485IEnumerable<Assembly> loadedAssemblies;
498static bool isInLoadFromContext(AnalyzerAssemblyLoader loader, Assembly assembly)
508var other = AppDomain.CurrentDomain.Load(name);
540Assembly gamma = loader.LoadFromPath(testFixture.Gamma);
571Assembly gamma = loader.LoadFromPath(gammaFile);
606Assembly assembly = loader.LoadFromPath(alternatePath);
643Assembly razorAssembly = loader.LoadFromPath(alternatePath);
686Assembly gamma = loader.LoadFromPath(gammaFile);
736Assembly gamma = loader.LoadFromPath(gammaFile);
797Assembly gamma = loader.LoadFromPath(testFixture.Gamma);
801Assembly epsilon = loader.LoadFromPath(testFixture.Epsilon);
853Assembly epsilon = loader.LoadFromPath(testFixture.Epsilon);
912Assembly epsilon = loader.LoadFromPath(testFixture.Epsilon);
961Assembly delta2 = loader.LoadFromPath(testFixture.Delta2);
962Assembly delta2B = loader.LoadFromPath(testFixture.Delta2B);
999Assembly epsilon = loader.LoadFromPath(testFixture.Epsilon);
1059Assembly epsilon = loader.LoadFromPath(epsilonFile);
1113Assembly gamma = loader1.LoadFromPath(testFixture.Gamma);
1117Assembly epsilon = loader2.LoadFromPath(testFixture.Epsilon);
1173Assembly gamma = loader.LoadFromPath(testFixture.Gamma);
1177Assembly epsilon = loader.LoadFromPath(testFixture.Epsilon);
1270var assembly = loader.LoadFromPath(assemblyFilePath);
1304var assembly = loader.LoadFromPath(assemblyFilePath);
1352var gamma = loader.LoadFromPath(testFixture.GammaReferencingPublicSigned);
1356var epsilon = loader.LoadFromPath(testFixture.EpsilonReferencingPublicSigned);
1382var delta1Assembly = loader.LoadFromPath(testFixture.DeltaPublicSigned1);
1386var delta2Assembly = loader.LoadFromPath(testFixture.DeltaPublicSigned2);
1411Assembly analyzerAssembly = loader.LoadFromPath(testFixture.AnalyzerReferencesSystemCollectionsImmutable1);
1438Assembly analyzerAssembly = loader.LoadFromPath(testFixture.AnalyzerReferencesSystemCollectionsImmutable2);
1451var assembly = typeof(ImmutableArray<int>).Assembly;
1460var copiedAssembly = loader.LoadFromPath(destFile);
1475Assembly analyzerAssembly = loader.LoadFromPath(testFixture.AnalyzerWithNativeDependency);
1518Assembly? delta = loader.LoadFromPath(deltaCopy);
1558Assembly gamma = loader.LoadFromPath(gammaFile);
1585var expected = loader.LoadFromPath(path);
1590var actual = loader.LoadFromPath(path);
1609var expected = loader.LoadFromPath(path);
1618var actual = loader.LoadFromPath(path);
1644var assembly = loader.LoadFromPath(analyzerPath);
1667var assembly = loader.LoadFromPath(analyzerPath);
1718Assembly delta = loader.LoadFromPath(testFixture.Delta1);
1735var thisAssembly = typeof(AnalyzerAssemblyLoaderTests).Assembly;
1737Assembly loaded = loader.LoadFromPath(thisAssembly.Location);
1752var thisAssembly = typeof(AnalyzerAssemblyLoaderTests).Assembly;
1755Assembly alpha = loader.LoadFromPath(testFixture.Alpha);
1759Assembly loaded = loader.LoadFromPath(thisAssembly.Location);
1763Assembly delta = loader.LoadFromPath(testFixture.Delta1);
1779Assembly delta = loader.LoadFromPath(testFixture.Delta1);
1796var thisAssembly = typeof(AnalyzerAssemblyLoaderTests).Assembly;
1798Assembly loaded = loader.LoadFromPath(thisAssembly.Location);
1807private class TestAnalyzerAssemblyResolver(Func<AssemblyName, Assembly?> func) : MarshalByRefObject, IAnalyzerAssemblyResolver
1809private readonly Func<AssemblyName, Assembly?> _func = func;
1813public Assembly? ResolveAssembly(AssemblyName assemblyName, string rootDirectory)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (1)
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (14)
CommandLineTests.vb (13)
119"/analyzer:" + Assembly.GetExecutingAssembly().Location,
2638Dim vbc = New MockVisualBasicCompiler(Nothing, dir.Path, {"/nologo", "/preferreduilang:en", "/t:library", "/a:" + Assembly.GetExecutingAssembly().Location, "a.vb"})
2671Dim vbc = New MockVisualBasicCompiler(Nothing, dir.Path, {"/nologo", "/t:library", "/a:" + Assembly.GetExecutingAssembly().Location, "a.vb", "/ruleset:" + ruleSetFile.Path})
2704"/a:" + Assembly.GetExecutingAssembly().Location, "a.vb",
2718"/a:" + Assembly.GetExecutingAssembly().Location, "a.vb",
2754"/a:" + Assembly.GetExecutingAssembly().Location, "a.vb",
2769"/a:" + Assembly.GetExecutingAssembly().Location, "a.vb",
2805Dim vbc = New MockVisualBasicCompiler(Nothing, dir.Path, {"/nologo", "/t:library", "/a:" + Assembly.GetExecutingAssembly().Location, "a.vb", "/ruleset:" + ruleSetFile.Path})
7939args = args.Append("/a:" + Assembly.GetExecutingAssembly().Location)
9012Dim vbc = New MockVisualBasicCompiler(Nothing, _baseDirectory, {skipAnalyzersFlag, "/reportanalyzer", "/t:library", "/a:" + Assembly.GetExecutingAssembly().Location, source})
9114"/additionalfile:" & Assembly.GetExecutingAssembly.Location, ' Non-text file specified as an additional text file
9134IO.Path.GetFileNameWithoutExtension(Assembly.GetExecutingAssembly.Location),
9135Assembly.GetExecutingAssembly.Location),
Microsoft.CodeAnalysis.VisualBasic.Features (1)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (1)
Microsoft.CodeAnalysis.Workspaces (27)
Microsoft.CodeAnalysis.Workspaces.Desktop (5)
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (2)
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (4)
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (24)
Microsoft.CodeAnalysis.Workspaces.UnitTests (4)
Microsoft.CodeAnalysis.XunitHook (1)
Microsoft.CSharp (13)
Microsoft.Data.Analysis.Tests (1)
Microsoft.DotNet.Arcade.Sdk.Tests (4)
Microsoft.DotNet.AsmDiff (4)
Microsoft.DotNet.Build.Tasks.Packaging (5)
Microsoft.DotNet.Build.Tasks.TargetFramework (5)
Microsoft.DotNet.Build.Tasks.Workloads (1)
Microsoft.DotNet.GenFacades (6)
Microsoft.DotNet.NuGetRepack.Tasks (3)
Microsoft.DotNet.NuGetRepack.Tests (1)
Microsoft.DotNet.RemoteExecutor (5)
Microsoft.DotNet.SharedFramework.Sdk (5)
Microsoft.DotNet.SignCheck (3)
Microsoft.DotNet.SignTool (3)
Microsoft.DotNet.SwaggerGenerator.CmdLine (1)
Microsoft.Extensions.ApiDescription.Client.Tests (1)
Microsoft.Extensions.Configuration.UserSecrets (3)
Microsoft.Extensions.DependencyModel (10)
Microsoft.Extensions.FileProviders.Embedded (18)
Microsoft.Extensions.Hosting (3)
Microsoft.Extensions.Localization (21)
Microsoft.Extensions.Localization.Abstractions (1)
Microsoft.Extensions.Localization.Tests (5)
Microsoft.Gen.ComplianceReports.Unit.Tests (15)
test\Generators\Shared\RoslynTestUtils.cs (12)
41public static Project CreateTestProject(IEnumerable<Assembly>? references, bool includeBaseReferences = true)
53IEnumerable<Assembly>? references,
58var corelib = Assembly.GetAssembly(typeof(object))!.Location;
71foreach (var r in references)
246IEnumerable<Assembly>? references,
260IEnumerable<Assembly>? references,
290IEnumerable<Assembly>? references,
303IEnumerable<Assembly>? references,
357IEnumerable<Assembly>? references,
380IEnumerable<Assembly>? references,
394IEnumerable<Assembly>? references,
437IEnumerable<Assembly>? references,
Microsoft.Gen.ContextualOptions.Unit.Tests (13)
test\Generators\Shared\RoslynTestUtils.cs (12)
41public static Project CreateTestProject(IEnumerable<Assembly>? references, bool includeBaseReferences = true)
53IEnumerable<Assembly>? references,
58var corelib = Assembly.GetAssembly(typeof(object))!.Location;
71foreach (var r in references)
246IEnumerable<Assembly>? references,
260IEnumerable<Assembly>? references,
290IEnumerable<Assembly>? references,
303IEnumerable<Assembly>? references,
357IEnumerable<Assembly>? references,
380IEnumerable<Assembly>? references,
394IEnumerable<Assembly>? references,
437IEnumerable<Assembly>? references,
Microsoft.Gen.Logging.Unit.Tests (43)
test\Generators\Shared\RoslynTestUtils.cs (12)
41public static Project CreateTestProject(IEnumerable<Assembly>? references, bool includeBaseReferences = true)
53IEnumerable<Assembly>? references,
58var corelib = Assembly.GetAssembly(typeof(object))!.Location;
71foreach (var r in references)
246IEnumerable<Assembly>? references,
260IEnumerable<Assembly>? references,
290IEnumerable<Assembly>? references,
303IEnumerable<Assembly>? references,
357IEnumerable<Assembly>? references,
380IEnumerable<Assembly>? references,
394IEnumerable<Assembly>? references,
437IEnumerable<Assembly>? references,
Microsoft.Gen.MetadataExtractor.Unit.Tests (20)
Microsoft.Gen.Metrics.Unit.Tests (22)
test\Generators\Shared\RoslynTestUtils.cs (12)
41public static Project CreateTestProject(IEnumerable<Assembly>? references, bool includeBaseReferences = true)
53IEnumerable<Assembly>? references,
58var corelib = Assembly.GetAssembly(typeof(object))!.Location;
71foreach (var r in references)
246IEnumerable<Assembly>? references,
260IEnumerable<Assembly>? references,
290IEnumerable<Assembly>? references,
303IEnumerable<Assembly>? references,
357IEnumerable<Assembly>? references,
380IEnumerable<Assembly>? references,
394IEnumerable<Assembly>? references,
437IEnumerable<Assembly>? references,
Microsoft.Gen.MetricsReports.Unit.Tests (17)
test\Generators\Shared\RoslynTestUtils.cs (12)
41public static Project CreateTestProject(IEnumerable<Assembly>? references, bool includeBaseReferences = true)
53IEnumerable<Assembly>? references,
58var corelib = Assembly.GetAssembly(typeof(object))!.Location;
71foreach (var r in references)
246IEnumerable<Assembly>? references,
260IEnumerable<Assembly>? references,
290IEnumerable<Assembly>? references,
303IEnumerable<Assembly>? references,
357IEnumerable<Assembly>? references,
380IEnumerable<Assembly>? references,
394IEnumerable<Assembly>? references,
437IEnumerable<Assembly>? references,
Microsoft.Interop.SourceGeneration (1)
Microsoft.JSInterop (6)
Microsoft.JSInterop.WebAssembly (1)
Microsoft.Maui (11)
Microsoft.Maui.Controls (36)
ResourceDictionary.cs (8)
28 internal static Action<ResourceDictionary, Uri, string, Assembly, System.Xml.IXmlLineInfo> s_setAndLoadSource;
57 public void SetAndLoadSource(Uri value, string resourcePath, Assembly assembly, global::System.Xml.IXmlLineInfo lineInfo)
419 internal static Uri GetUriWithExplicitAssembly(string value, Assembly defaultAssembly)
421 (value, var assembly) = SplitUriAndAssembly(value, defaultAssembly);
425 internal static ValueTuple<string, Assembly> SplitUriAndAssembly(string value, Assembly defaultAssembly)
430 return (parts[0], Assembly.Load(parts[1]));
436 internal static Uri CombineUriAndAssembly(string value, Assembly assembly)
Microsoft.Maui.Controls.Build.Tasks (1)
Microsoft.Maui.Controls.Compatibility (7)
Microsoft.Maui.Controls.Xaml (23)
ResourceDictionaryHelpers.cs (4)
20 public static void LoadFromSource(ResourceDictionary rd, Uri source, string resourcePath, Assembly assembly, IXmlLineInfo lineInfo)
29 (value, var assembly) = ResourceDictionary.RDSourceTypeConverter.SplitUriAndAssembly(value, rootType.Assembly);
39 internal static void SetAndLoadSource(ResourceDictionary rd, Uri value, string resourcePath, Assembly assembly, IXmlLineInfo lineInfo)
49 static ResourceDictionary CreateFromResource(string resourcePath, Assembly assembly, IXmlLineInfo lineInfo)
XamlLoader.cs (6)
58 public static void Load(object view, string xaml, Assembly rootAssembly) => Load(view, xaml, rootAssembly, false);
60 public static void Load(object view, string xaml, Assembly rootAssembly, bool useDesignProperties)
226 var assembly = type.Assembly;
262 var assembly = type.Assembly;
317 static bool ResourceMatchesFilename(Assembly assembly, string resource, string filename)
340 static string ReadResourceAsXaml(Type type, Assembly assembly, string likelyTargetName, bool validate = false)
Microsoft.ML.AutoML (2)
Microsoft.ML.Benchmarks.Tests (1)
Microsoft.ML.CodeAnalyzer.Tests (2)
Microsoft.ML.Core (14)
Microsoft.ML.CpuMath.UnitTests (1)
Microsoft.ML.Data (2)
Microsoft.ML.GenAI.Core (2)
Microsoft.ML.OnnxConverter (2)
Microsoft.ML.Predictor.Tests (1)
Microsoft.ML.Samples (1)
Microsoft.ML.Samples.GPU (1)
Microsoft.ML.Tokenizers.Tests (1)
Microsoft.ML.TorchSharp (1)
Microsoft.ML.Transforms (6)
Microsoft.VisualBasic.Core (3)
Microsoft.VisualBasic.Forms (9)
Microsoft.VisualBasic.Tests (13)
Microsoft.VisualStudio.LanguageServices (10)
MSBuild (32)
CoreCLRAssemblyLoader.cs (16)
22private readonly Dictionary<string, Assembly> _pathsToAssemblies = new Dictionary<string, Assembly>(StringComparer.OrdinalIgnoreCase);
23private readonly Dictionary<string, Assembly> _namesToAssemblies = new Dictionary<string, Assembly>();
44public Assembly LoadFromPath(string fullPath)
68private Assembly LoadUsingLegacyDefaultContext(string fullPath)
78Assembly assembly;
88private Assembly LoadUsingPluginContext(string fullPath)
92Assembly assembly;
111private Assembly TryGetWellKnownAssembly(AssemblyLoadContext context, AssemblyName assemblyName)
122string[] searchPaths = [Assembly.GetExecutingAssembly().Location];
126private Assembly TryResolveAssembly(AssemblyLoadContext context, AssemblyName assemblyName)
130Assembly assembly = TryGetWellKnownAssembly(context, assemblyName);
146private Assembly TryResolveAssemblyFromPaths(AssemblyLoadContext context, AssemblyName assemblyName, IEnumerable<string> searchPaths)
185private Assembly LoadAndCache(AssemblyLoadContext context, string fullPath)
187var assembly = context.LoadFromAssemblyPath(fullPath);
MSBuildTaskHost (16)
mscorlib (1)
Mvc.Api.Analyzers.Test (1)
netstandard (1)
PortableTask (1)
PresentationBuildTasks (53)
PresentationCore (30)
PresentationFramework (120)
Roslyn.Compilers.Extension (1)
Roslyn.VisualStudio.DiagnosticsWindow (2)
Roslyn.VisualStudio.Next.UnitTests (5)
SignalR.Client.FunctionalTestApp (3)
SignalRSamples (1)
System.CodeDom (3)
System.ComponentModel.Composition (23)
System.ComponentModel.Composition.Registration (2)
System.ComponentModel.TypeConverter (14)
System.Composition.TypedParts (4)
System.Configuration.ConfigurationManager (6)
System.Data.Odbc (2)
System.Diagnostics.StackTrace (5)
System\Diagnostics\StackTraceSymbols.cs (5)
15private readonly ConditionalWeakTable<Assembly, MetadataReaderProvider?> _metadataCache;
22_metadataCache = new ConditionalWeakTable<Assembly, MetadataReaderProvider?>();
30foreach ((Assembly _, MetadataReaderProvider? provider) in _metadataCache)
53internal void GetSourceLineInfo(Assembly assembly, string assemblyPath, IntPtr loadedPeAddress, int loadedPeSize, bool isFileLayout,
117private MetadataReader? TryGetReader(Assembly assembly, string assemblyPath, IntPtr loadedPeAddress, int loadedPeSize, bool isFileLayout, IntPtr inMemoryPdbAddress, int inMemoryPdbSize)
System.Diagnostics.TraceSource (2)
System.IO.IsolatedStorage (2)
System.Private.CoreLib (193)
src\libraries\System.Private.CoreLib\src\System\Reflection\Assembly.cs (24)
19private static readonly Dictionary<string, Assembly> s_loadfile = new Dictionary<string, Assembly>();
154public virtual Assembly GetSatelliteAssembly(CultureInfo culture) { throw NotImplemented.ByDesign; }
155public virtual Assembly GetSatelliteAssembly(CultureInfo culture, Version? version) { throw NotImplemented.ByDesign; }
184public static bool operator ==(Assembly? left, Assembly? right)
202public static bool operator !=(Assembly? left, Assembly? right) => !(left == right);
206public static Assembly? GetAssembly(Type type)
228public static void SetEntryAssembly(Assembly? assembly)
242public static Assembly? GetEntryAssembly()
245return s_overriddenEntryAssembly as Assembly;
251public static Assembly Load(byte[] rawAssembly) => Load(rawAssembly, rawSymbolStore: null);
257public static Assembly Load(byte[] rawAssembly, byte[]? rawSymbolStore)
272public static Assembly LoadFile(string path)
283Assembly? result;
305private static Assembly? LoadFromResolveHandler(object? sender, ResolveEventArgs args)
307Assembly? requestingAssembly = args.RequestingAssembly;
375public static Assembly LoadFrom(string assemblyFile)
408public static Assembly LoadFrom(string assemblyFile, byte[]? hashValue, AssemblyHashAlgorithm hashAlgorithm)
414public static Assembly UnsafeLoadFrom(string assemblyFile) => LoadFrom(assemblyFile);
423public static Assembly ReflectionOnlyLoad(byte[] rawAssembly) { throw new PlatformNotSupportedException(SR.PlatformNotSupported_ReflectionOnly); }
426public static Assembly ReflectionOnlyLoad(string assemblyString) { throw new PlatformNotSupportedException(SR.PlatformNotSupported_ReflectionOnly); }
429public static Assembly ReflectionOnlyLoadFrom(string assemblyFile) { throw new PlatformNotSupportedException(SR.PlatformNotSupported_ReflectionOnly); }
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NativeLibrary.cs (7)
23Assembly assembly,
84public static IntPtr Load(string libraryName, Assembly assembly, DllImportSearchPath? searchPath)
119public static bool TryLoad(string libraryName, Assembly assembly, DllImportSearchPath? searchPath, out IntPtr handle)
187private static ConditionalWeakTable<Assembly, DllImportResolver>? s_nativeDllResolveMap;
201public static void SetDllImportResolver(Assembly assembly, DllImportResolver resolver)
212new ConditionalWeakTable<Assembly, DllImportResolver>(), null);
231internal static IntPtr LoadLibraryCallbackStub(string libraryName, Assembly assembly,
src\libraries\System.Private.CoreLib\src\System\Runtime\Loader\AssemblyLoadContext.cs (25)
54private event Func<Assembly, string, IntPtr>? _resolvingUnmanagedDll;
56private event Func<AssemblyLoadContext, AssemblyName, Assembly>? _resolving;
167public IEnumerable<Assembly> Assemblies
171foreach (Assembly a in GetLoadedAssemblies())
189public event Func<Assembly, string, IntPtr>? ResolvingUnmanagedDll
210public event Func<AssemblyLoadContext, AssemblyName, Assembly?>? Resolving
314protected virtual Assembly? Load(AssemblyName assemblyName)
321public Assembly LoadFromAssemblyName(AssemblyName assemblyName)
334public Assembly LoadFromAssemblyPath(string assemblyPath)
352public Assembly LoadFromNativeImagePath(string nativeImagePath, string? assemblyPath)
375public Assembly LoadFromStream(Stream assembly)
381public Assembly LoadFromStream(Stream assembly, Stream? assemblySymbols)
507/// * <see cref="Assembly.Load" />
508/// * <see cref="Assembly.GetType" />
560public static ContextualReflectionScope EnterContextualReflection(Assembly? activating)
616private Assembly? GetFirstResolvedAssemblyFromResolvingEvent(AssemblyName assemblyName)
619foreach (Func<AssemblyLoadContext, AssemblyName, Assembly> handler in Delegate.EnumerateInvocationList(_resolving))
621Assembly? resolvedAssembly = handler(this, assemblyName);
642private static RuntimeAssembly ValidateAssemblyNameWithSimpleName(Assembly assembly, string? requestedSimpleName)
667Assembly? assembly = Load(assemblyName);
677Assembly? assembly = GetFirstResolvedAssemblyFromResolvingEvent(assemblyName);
706internal static void InvokeAssemblyLoadEvent(Assembly assembly)
722Assembly? asm = handler(AppDomain.CurrentDomain, args);
792internal IntPtr GetResolvedUnmanagedDll(Assembly assembly, string unmanagedDllName)
795foreach (Func<Assembly, string, IntPtr> handler in Delegate.EnumerateInvocationList(_resolvingUnmanagedDll))
src\System\Attribute.CoreCLR.cs (8)
697public static Attribute[] GetCustomAttributes(Assembly element, Type attributeType)
702public static Attribute[] GetCustomAttributes(Assembly element, Type attributeType, bool inherit)
713public static Attribute[] GetCustomAttributes(Assembly element)
718public static Attribute[] GetCustomAttributes(Assembly element, bool inherit)
725public static bool IsDefined(Assembly element, Type attributeType)
730public static bool IsDefined(Assembly element, Type attributeType, bool inherit)
743public static Attribute? GetCustomAttribute(Assembly element, Type attributeType)
748public static Attribute? GetCustomAttribute(Assembly element, Type attributeType, bool inherit)
src\System\Reflection\TypeNameResolver.CoreCLR.cs (12)
17private Func<AssemblyName, Assembly?>? _assemblyResolver;
18private Func<Assembly?, string, bool, Type?>? _typeResolver;
24private Assembly? _requestingAssembly;
25private Assembly? _topLevelAssembly;
30Assembly requestingAssembly,
41Func<AssemblyName, Assembly?>? assemblyResolver,
42Func<Assembly?, string, bool, Type?>? typeResolver,
43Assembly? requestingAssembly,
81Assembly topLevelAssembly)
164private Assembly? ResolveAssembly(AssemblyName assemblyName)
166Assembly? assembly;
190Assembly? assembly;
src\System\Type.CoreCLR.cs (12)
19return TypeNameResolver.GetType(typeName, Assembly.GetExecutingAssembly(ref stackMark),
28return TypeNameResolver.GetType(typeName, Assembly.GetExecutingAssembly(ref stackMark),
37return TypeNameResolver.GetType(typeName, Assembly.GetExecutingAssembly(ref stackMark));
44Func<AssemblyName, Assembly?>? assemblyResolver,
45Func<Assembly?, string, bool, Type?>? typeResolver)
49((assemblyResolver != null) && (typeResolver != null)) ? null : Assembly.GetExecutingAssembly(ref stackMark));
56Func<AssemblyName, Assembly?>? assemblyResolver,
57Func<Assembly?, string, bool, Type?>? typeResolver,
62((assemblyResolver != null) && (typeResolver != null)) ? null : Assembly.GetExecutingAssembly(ref stackMark),
70Func<AssemblyName, Assembly?>? assemblyResolver,
71Func<Assembly?, string, bool, Type?>? typeResolver,
77((assemblyResolver != null) && (typeResolver != null)) ? null : Assembly.GetExecutingAssembly(ref stackMark),
System.Private.DataContractSerialization (7)
System.Private.Windows.Core (15)
System.Private.Windows.Core.TestUtilities (2)
System.Private.Windows.GdiPlus (1)
System.Private.Xml (37)
System\Xml\Serialization\Compilation.cs (21)
22private readonly Assembly? _assembly;
42internal TempAssembly(XmlMapping[] xmlMappings, Assembly assembly, XmlSerializerImplementation? contract)
138internal static Assembly? LoadGeneratedAssembly(Type type, string? defaultNamespace, out XmlSerializerImplementation? contract)
140Assembly? serializer = null;
159serializer = Assembly.Load(name);
197serializer = Assembly.Load(serializerName); // LoadWithPartialName just does this in .Net Core; changing the obsolete call.
202serializer = Assembly.LoadFrom(serializerName);
227private static Assembly? LoadAssemblyByPath(Type type, string assemblyName)
229Assembly? assembly = null;
239if ((string.IsNullOrEmpty(path) || !File.Exists(path)) && !string.IsNullOrEmpty(Assembly.GetEntryAssembly()?.Location))
241path = Path.Combine(Path.GetDirectoryName(Assembly.GetEntryAssembly()!.Location)!, $"{assemblyName}.dll");
251assembly = Assembly.LoadFile(path);
265private static bool IsSerializerVersionMatch(Assembly serializer, Type type, string? defaultNamespace)
301internal static bool GenerateSerializerToStream(XmlMapping[] xmlMappings, Type?[] types, string? defaultNamespace, Assembly? assembly, Hashtable assemblies, Stream stream)
318Assembly a = t.Assembly;
438internal static Assembly GenerateRefEmitAssembly(XmlMapping[] xmlMappings, Type?[] types)
441Assembly? mainAssembly = mainType?.Assembly;
540internal static Type GetTypeFromAssembly(Assembly assembly, string typeName)
589internal static void VerifyLoadContext(Type? t, Assembly? assembly)
692private readonly ConditionalWeakTable<Assembly, Dictionary<TempAssemblyCacheKey, TempAssembly>> _collectibleCaches = new ConditionalWeakTable<Assembly, Dictionary<TempAssemblyCacheKey, TempAssembly>>();
System.Reflection (1)
System.Reflection.Context (23)
System.Reflection.Emit (11)
System.Reflection.MetadataLoadContext (22)
System.Reflection.TypeExtensions (3)
System.Resources.Extensions (11)
System.Runtime (1)
System.Runtime.InteropServices (1)
System.Runtime.Serialization.Formatters (4)
System.Runtime.Serialization.Schema (3)
System.Security.Permissions (4)
System.ServiceModel.NetNamedPipe.Tests (1)
System.ServiceModel.Primitives.Tests (1)
System.Text.Json (3)
System.Windows.Extensions (1)
System.Windows.Forms (17)
System.Windows.Forms.Design (24)
System.Windows.Forms.Design.Tests (9)
System.Windows.Forms.IntegrationTests.Common (2)
System.Windows.Forms.Primitives.TestUtilities (1)
System.Windows.Forms.PrivateSourceGenerators.Tests (2)
System.Windows.Forms.Tests (14)
System.Xaml (95)
System\Xaml\MS\Impl\XmlNsInfo.cs (14)
27internal Assembly Assembly { get { return (Assembly)_assembly.Target; } }
118internal XmlNsInfo(Assembly assembly, bool fullyQualifyAssemblyName)
158Assembly assembly = Assembly;
195void LoadNsDefHelper(IList<XmlNsDefinition> result, string xmlns, string clrns, Assembly assembly)
210Assembly assembly = Assembly;
249Assembly assembly = Assembly;
280void LoadInternalsVisibleToHelper(List<AssemblyName> result, string assemblyName, Assembly assembly)
307Assembly assembly = Assembly;
341void LoadOldToNewNsHelper(Dictionary<string, string> result, string oldns, string newns, Assembly assembly)
360Assembly assembly = Assembly;
393void LoadPrefixesHelper(Dictionary<string, string> result, string xmlns, string prefix, Assembly assembly)
410Assembly assembly = Assembly;
454public NamespaceComparer(XmlNsInfo nsInfo, Assembly assembly)
System\Xaml\XamlSchemaContext.cs (38)
35private readonly ReadOnlyCollection<Assembly> _referenceAssemblies;
50public XamlSchemaContext(IEnumerable<Assembly> referenceAssemblies)
53public XamlSchemaContext(IEnumerable<Assembly> referenceAssemblies, XamlSchemaContextSettings settings)
58List<Assembly> listOfAssemblies = new List<Assembly>(referenceAssemblies);
59_referenceAssemblies = new ReadOnlyCollection<Assembly>(listOfAssemblies);
427Assembly resultAssembly = null;
433Assembly curAssembly = nsInfo.Assembly;
699public IList<Assembly> ReferenceAssemblies
710private ConcurrentDictionary<Assembly, XmlNsInfo> _xmlnsInfo;
712private ConcurrentDictionary<Assembly, XmlNsInfo> _xmlnsInfoForUnreferencedAssemblies;
718private IList<Assembly> _unexaminedAssemblies;
727private ConcurrentDictionary<Assembly, XmlNsInfo> XmlnsInfo
732Interlocked.CompareExchange(ref _xmlnsInfo, CreateDictionary<Assembly, XmlNsInfo>(ReferenceEqualityComparer.Instance), null);
764private ConcurrentDictionary<Assembly, XmlNsInfo> XmlnsInfoForUnreferencedAssemblies
770Interlocked.CompareExchange(ref _xmlnsInfoForUnreferencedAssemblies, CreateDictionary<Assembly, XmlNsInfo>(ReferenceEqualityComparer.Instance), null);
777internal bool AreInternalsVisibleTo(Assembly fromAssembly, Assembly toAssembly)
833if (_unexaminedAssemblies is WeakReferenceList<Assembly>)
837Assembly assembly = _unexaminedAssemblies[i];
916internal string GetRootNamespace(Assembly asm)
970private XmlNsInfo GetXmlNsInfo(Assembly assembly)
998foreach (var asm in _referenceAssemblies)
1036private ReadOnlyCollection<string> GetXmlNsMappings(Assembly assembly, string clrNs)
1066Assembly[] currentAssemblies = AppDomain.CurrentDomain.GetAssemblies();
1067_unexaminedAssemblies = new WeakReferenceList<Assembly>(currentAssemblies.Length);
1069foreach (Assembly assembly in currentAssemblies)
1087_unexaminedAssemblies = new List<Assembly>(ReferenceAssemblies);
1115IList<Assembly> unexaminedAssembliesCopy;
1119_unexaminedAssemblies = new WeakReferenceList<Assembly>(0);
1127var assembly = unexaminedAssembliesCopy[i];
1247protected internal virtual Assembly OnAssemblyResolve(string assemblyName)
1264private Assembly ResolveReferenceAssembly(string assemblyName)
1322private Assembly ResolveAssembly(string assemblyName)
1329Assembly result = SafeSecurityHelper.GetLoadedAssembly(parsedAsmName);
1344return Assembly.Load(assemblyName);
1360return Assembly.Load(shortName);
1366return Assembly.LoadWithPartialName(assemblyName);
System.Xaml.Tests (22)
System\Xaml\XamlSchemaContextTests.cs (17)
53yield return new object?[] { Array.Empty<Assembly>() };
54yield return new object?[] { new Assembly?[] { typeof(XamlSchemaContextSettings).Assembly, typeof(int).Assembly, null } };
59public void Ctor_ReferencedAssemblies(IEnumerable<Assembly> referenceAssemblies)
80}, new Assembly?[] { typeof(XamlSchemaContextSettings).Assembly, typeof(int).Assembly, null }, true, true
82yield return new object?[] { null, Array.Empty<Assembly>(), false, false };
87public void Ctor_XamlSchemaContextSettings_ReferenceAssemblies(XamlSchemaContextSettings settings, IEnumerable<Assembly> referenceAssemblies, bool expectdSupportMarkupExtensionsWithDuplicateArity, bool expectedFullyQualifyAssemblyNamesInClrNamespaces)
177var context = new XamlSchemaContext(new Assembly[] { assembly1, assembly2 });
259var context = new XamlSchemaContext(new Assembly[] { assemblyWithPrefix });
266var context = new XamlSchemaContext(new Assembly?[] { null });
329var context = new XamlSchemaContext(new Assembly[] { assembly });
343var context = new XamlSchemaContext(new Assembly[] { assembly });
357var context = new XamlSchemaContext(new Assembly[] { assembly });
371var context = new XamlSchemaContext(new Assembly[] { assembly });
385var context = new XamlSchemaContext(new Assembly[] { assembly });
443static string Name(Assembly assembly) => new AssemblyName(assembly.FullName!).Name!;
933var context = new XamlSchemaContext(new Assembly[] { typeof(int).Assembly });
941var context = new XamlSchemaContext(new Assembly?[] { null });
TaskUsageLogger (2)
Templates.Blazor.Tests (3)
Templates.Blazor.WebAssembly.Auth.Tests (4)
Templates.Blazor.WebAssembly.Tests (4)
Templates.Mvc.Tests (4)
Templates.Tests (4)
UIAutomationClient (7)
VBCSCompiler (3)
VBCSCompiler.UnitTests (2)
WindowsBase.Tests (3)
WsFedSample (1)
xunit.assert (2)
xunit.console (24)
common\AssemblyResolution\DependencyContextAssemblyCache.cs (11)
22static readonly Tuple<string, Assembly> ManagedAssemblyNotFound = new Tuple<string, Assembly>(null, null);
32readonly ConcurrentDictionary<string, Assembly> managedAssemblyCache;
64managedAssemblyCache = new ConcurrentDictionary<string, Assembly>(StringComparer.OrdinalIgnoreCase);
158public Assembly LoadManagedDll(string assemblyName, Func<string, Assembly> managedAssemblyLoader)
160if (!managedAssemblyCache.TryGetValue(assemblyName, out var result))
208Tuple<string, Assembly> ResolveManagedAssembly(string assemblyName, Func<string, Assembly> managedAssemblyLoader)
219var assembly = managedAssemblyLoader(resolvedAssemblyPath);
243var assembly = managedAssemblyLoader(resolvedAssemblyPath);