4 overrides of Location
System.Private.CoreLib (2)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\AssemblyBuilder.cs (1)
58public override string Location => string.Empty;
System\Reflection\Runtime\General\ThunkedApis.cs (1)
62public override string Location
System.Reflection.Context (1)
System\Reflection\Context\Delegation\DelegatingAssembly.cs (1)
27public override string Location
System.Reflection.MetadataLoadContext (1)
System\Reflection\TypeLoading\Assemblies\RoAssembly.cs (1)
46public abstract override string Location { get; }
239 references to Location
Aspire.Cli.Tests (1)
tests\Shared\TestModuleInitializer.cs (1)
29? Path.GetDirectoryName(Assembly.GetExecutingAssembly()!.Location) ?? string.Empty
Aspire.Dashboard.Tests (1)
Integration\Playwright\Infrastructure\DashboardServerFixture.cs (1)
43var currentAssemblyDirectory = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location)!;
Aspire.Hosting (2)
Dashboard\DashboardEventHandlers.cs (2)
97if (entryAssembly?.Location is null or { Length: 0 }) 109return GetFrameworkVersionsFromRuntimeConfig(entryAssembly.Location);
Aspire.Hosting.Analyzers.Tests (1)
AnalyzerTest.cs (1)
64return netCoreAppRef.AddAssemblies([TrimAssemblyExtension(typeof(DistributedApplication).Assembly.Location)]);
Aspire.Hosting.Azure.Kusto.Tests (1)
tests\Shared\TestModuleInitializer.cs (1)
29? Path.GetDirectoryName(Assembly.GetExecutingAssembly()!.Location) ?? string.Empty
Aspire.Hosting.Azure.Tests (1)
tests\Shared\TestModuleInitializer.cs (1)
29? Path.GetDirectoryName(Assembly.GetExecutingAssembly()!.Location) ?? string.Empty
Aspire.Hosting.CodeGeneration.Go.Tests (1)
tests\Shared\TestModuleInitializer.cs (1)
29? Path.GetDirectoryName(Assembly.GetExecutingAssembly()!.Location) ?? string.Empty
Aspire.Hosting.CodeGeneration.Java.Tests (1)
tests\Shared\TestModuleInitializer.cs (1)
29? Path.GetDirectoryName(Assembly.GetExecutingAssembly()!.Location) ?? string.Empty
Aspire.Hosting.CodeGeneration.Python.Tests (1)
tests\Shared\TestModuleInitializer.cs (1)
29? Path.GetDirectoryName(Assembly.GetExecutingAssembly()!.Location) ?? string.Empty
Aspire.Hosting.CodeGeneration.Rust.Tests (1)
tests\Shared\TestModuleInitializer.cs (1)
29? Path.GetDirectoryName(Assembly.GetExecutingAssembly()!.Location) ?? string.Empty
Aspire.Hosting.CodeGeneration.TypeScript.Tests (1)
tests\Shared\TestModuleInitializer.cs (1)
29? Path.GetDirectoryName(Assembly.GetExecutingAssembly()!.Location) ?? string.Empty
Aspire.Hosting.Containers.Tests (1)
tests\Shared\TestModuleInitializer.cs (1)
29? Path.GetDirectoryName(Assembly.GetExecutingAssembly()!.Location) ?? string.Empty
Aspire.Hosting.Docker.Tests (1)
tests\Shared\TestModuleInitializer.cs (1)
29? Path.GetDirectoryName(Assembly.GetExecutingAssembly()!.Location) ?? string.Empty
Aspire.Hosting.Foundry.Tests (1)
tests\Shared\TestModuleInitializer.cs (1)
29? Path.GetDirectoryName(Assembly.GetExecutingAssembly()!.Location) ?? string.Empty
Aspire.Hosting.Kubernetes.Tests (1)
tests\Shared\TestModuleInitializer.cs (1)
29? Path.GetDirectoryName(Assembly.GetExecutingAssembly()!.Location) ?? string.Empty
Aspire.Hosting.Maui.Tests (1)
tests\Shared\TestModuleInitializer.cs (1)
29? Path.GetDirectoryName(Assembly.GetExecutingAssembly()!.Location) ?? string.Empty
Aspire.Hosting.Python.Tests (1)
tests\Shared\TestModuleInitializer.cs (1)
29? Path.GetDirectoryName(Assembly.GetExecutingAssembly()!.Location) ?? string.Empty
Aspire.Hosting.RemoteHost (1)
AtsCapabilityScanner.cs (1)
2681var assemblyLocation = assembly.Location;
Aspire.Hosting.Tests (1)
tests\Shared\TestModuleInitializer.cs (1)
29? Path.GetDirectoryName(Assembly.GetExecutingAssembly()!.Location) ?? string.Empty
Aspire.Hosting.Yarp.Tests (1)
tests\Shared\TestModuleInitializer.cs (1)
29? Path.GetDirectoryName(Assembly.GetExecutingAssembly()!.Location) ?? string.Empty
Aspire.RuntimeIdentifier.Tool (1)
Program.cs (1)
17RootCommand rootCommand = new("Aspire.RuntimeIdentifier.Tool v" + FileVersionInfo.GetVersionInfo(Assembly.GetExecutingAssembly().Location).ProductVersion)
ConfigurationSchemaGenerator.Tests (24)
GeneratorTests.cs (24)
46MetadataReference.CreateFromFile(typeof(Attribute).Assembly.Location), 47MetadataReference.CreateFromFile(typeof(Attribute).Assembly.Location.Replace("System.Private.CoreLib", "System.Runtime")), 48MetadataReference.CreateFromFile(typeof(Enumerable).Assembly.Location), 49MetadataReference.CreateFromFile(typeof(HttpContent).Assembly.Location) 454MetadataReference.CreateFromFile(typeof(Uri).Assembly.Location), 455MetadataReference.CreateFromFile(typeof(X509Certificate2).Assembly.Location) 685MetadataReference.CreateFromFile(typeof(TypeConverter).Assembly.Location), 686MetadataReference.CreateFromFile(typeof(TypeConverterAttribute).Assembly.Location), 687MetadataReference.CreateFromFile(typeof(Host).Assembly.Location), 688MetadataReference.CreateFromFile(typeof(IHost).Assembly.Location), 689MetadataReference.CreateFromFile(typeof(IServiceCollection).Assembly.Location), 690MetadataReference.CreateFromFile(typeof(IServiceProvider).Assembly.Location), 691MetadataReference.CreateFromFile(typeof(IConfigurationBuilder).Assembly.Location), 692MetadataReference.CreateFromFile(typeof(ConfigurationManager).Assembly.Location), 693MetadataReference.CreateFromFile(typeof(IOptionsMonitor<>).Assembly.Location), 694MetadataReference.CreateFromFile(typeof(OptionsBuilderConfigurationExtensions).Assembly.Location), 695MetadataReference.CreateFromFile(typeof(BinderOptions).Assembly.Location), 696MetadataReference.CreateFromFile(typeof(Console).Assembly.Location) 755MetadataReference.CreateFromFile(typeof(DynamicAttribute).Assembly.Location), 756MetadataReference.CreateFromFile(typeof(JsonNamingPolicy).Assembly.Location) 784MetadataReference.CreateFromFile(typeof(ConfigurationKeyNameAttribute).Assembly.Location) 824MetadataReference.CreateFromFile(typeof(ConfigurationKeyNameAttribute).Assembly.Location) 1357ConfigSchemaGenerator.CreateMetadataReference(typeof(IJsonLineInfo).Assembly.Location) 1597typeof(GeneratorTests).Assembly.Location,
dotnet (2)
Commands\MSBuild\MSBuildForwardingApp.cs (2)
30msbuildArgs.OtherMSBuildArgs.Add($"-distributedlogger:{loggerType.FullName},{loggerType.GetTypeInfo().Assembly.Location}*{forwardingLoggerType.FullName},{forwardingLoggerType.GetTypeInfo().Assembly.Location}");
dotnet-format (2)
Analyzers\CodeStyleInformationProvider.cs (1)
14private static readonly string s_executingPath = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) ?? string.Empty;
Commands\FormatCommandCommon.cs (1)
355var pathParts = typeof(string).Assembly.Location.Split('\\', '/');
dotnet-Microsoft.XmlSerializer.Generator (4)
Sgen.cs (4)
322outputDirectory ??= (gac ? Environment.CurrentDirectory : Path.GetDirectoryName(assembly.Location)); 408Console.Out.WriteLine(SR.Format(SR.InfoGeneratedFile, assembly.Location, codePath)); 413Console.Out.WriteLine(FormatMessage(parsableerrors, false, SR.Format(SR.ErrGenerationFailed, assembly.Location))); 418Console.Out.WriteLine(FormatMessage(parsableerrors, true, SR.Format(SR.InfoNoSerializableTypes, assembly.Location)));
dotnet-suggest (1)
SuggestionShellScriptHandler.cs (1)
31var assemblyLocation = Assembly.GetAssembly(typeof(SuggestionShellScriptHandler)).Location;
dotnet-svcutil.xmlserializer (3)
Microsoft\Tools\ServiceModel\SvcUtil\InputModule.cs (2)
240ToolConsole.WriteWarning(SR.Format(SR.WrnCouldNotLoadTypesFromReferenceAssemblyAt, assembly.Location)); 249throw new ToolInputException(SR.Format(SR.ErrCouldNotLoadTypesFromAssemblyAt, assembly.Location));
Microsoft\Tools\ServiceModel\SvcUtil\Options.cs (1)
368throw new ToolOptionException(SR.Format(SR.ErrDuplicateReferenceValues, Options.Cmd.Reference, assembly.Location));
dotnet-svcutil.xmlserializer.IntegrationTests (2)
SvcutilTests.cs (2)
23string testassemblypath = Assembly.GetExecutingAssembly().Location; 27Tool.Main(new string[] { Assembly.GetExecutingAssembly().Location, $"--out:{outputFile}", $"--smreference:{smassemblypath}", $"--quiet"});
dotnet-svcutil-lib (6)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CodeExporter.cs (1)
127string assemblyName = System.IO.Path.GetFileName(assembly.Location);
Metadata\ServiceDescriptor.cs (1)
105string toolPath = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
Shared\ProjectPropertyResolver.cs (1)
146var dotnetDir = Path.GetDirectoryName(typeof(int).Assembly.Location);
Tool.cs (1)
59_fullPath = typeof(Tool).GetTypeInfo().Assembly.Location;
TypeLoader.cs (2)
71warning = string.Format(SR.ErrCouldNotLoadTypesFromAssemblyAtFormat, assembly.Location); 80warning = string.Format(SR.WrnCouldNotLoadTypesFromReferenceAssemblyAtFormat, assembly.Location);
dotnet-user-jwts (1)
src\aspnetcore\src\Tools\Shared\SecretsHelpers\ProjectIdResolver.cs (1)
146var assemblyLocation = typeof(ProjectIdResolver).Assembly.Location;
dotnet-user-secrets (1)
src\aspnetcore\src\Tools\Shared\SecretsHelpers\ProjectIdResolver.cs (1)
146var assemblyLocation = typeof(ProjectIdResolver).Assembly.Location;
dotnet-watch (1)
Watch\MsBuildFileSetFactory.cs (1)
185var assemblyDir = Path.GetDirectoryName(typeof(MSBuildFileSetFactory).Assembly.Location);
GenerateDocumentationAndConfigFiles (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Helpers\MefHostServicesHelpers.cs (2)
60var thisAssemblyName = typeof(MefHostServicesHelpers).GetTypeInfo().Assembly.Location; 72return assembly?.Location;
ILCompiler.Compiler (1)
src\runtime\src\tools\illink\src\ILLink.Shared\TrimAnalysis\IntrinsicId.cs (1)
315/// <see cref="System.Reflection.Assembly.Location"/>
illink (1)
ILLink.RoslynAnalyzer (1)
src\runtime\src\tools\illink\src\ILLink.Shared\TrimAnalysis\IntrinsicId.cs (1)
315/// <see cref="System.Reflection.Assembly.Location"/>
ILLink.Tasks (1)
LinkTask.cs (1)
273var taskDirectory = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
Infrastructure.Tests (4)
ExtractTestPartitions\MockAssemblyBuilder.cs (4)
236MetadataReference.CreateFromFile(typeof(object).Assembly.Location), 237MetadataReference.CreateFromFile(typeof(Attribute).Assembly.Location) 242Path.GetDirectoryName(typeof(object).Assembly.Location)!, 251Path.GetDirectoryName(typeof(object).Assembly.Location)!,
Microsoft.Analyzers.Extra.Tests (6)
Resources\RoslynTestUtils.cs (2)
35var corelib = Assembly.GetAssembly(typeof(object))!.Location; 50refs.Add(MetadataReference.CreateFromFile(r.Location));
SyntaxNodeExtensionsTests.cs (4)
52references: new[] { MetadataReference.CreateFromFile(typeof(object).Assembly.Location) }); 84references: new[] { MetadataReference.CreateFromFile(typeof(object).Assembly.Location) }); 147references: new[] { MetadataReference.CreateFromFile(typeof(object).Assembly.Location) }); 177references: new[] { MetadataReference.CreateFromFile(typeof(object).Assembly.Location) });
Microsoft.Analyzers.Local.Tests (2)
Resources\RoslynTestUtils.cs (2)
35var corelib = Assembly.GetAssembly(typeof(object))!.Location; 50refs.Add(MetadataReference.CreateFromFile(r.Location));
Microsoft.AspNetCore.Components.WebView.WindowsForms (1)
BlazorWebView.cs (1)
176 var entryAssemblyLocation = Assembly.GetEntryAssembly()?.Location;
Microsoft.AspNetCore.Components.WebView.Wpf (1)
BlazorWebView.cs (1)
259 var entryAssemblyLocation = Assembly.GetEntryAssembly()?.Location;
Microsoft.AspNetCore.Hosting (1)
StaticWebAssets\StaticWebAssetsLoader.cs (1)
76var assemblyLocation = assembly.Location;
Microsoft.AspNetCore.Mvc.Core (2)
ApplicationParts\RelatedAssemblyAttribute.cs (2)
70var assemblyDirectory = string.IsNullOrEmpty(assembly.Location) ? 72Path.GetDirectoryName(assembly.Location);
Microsoft.Build (3)
BackEnd\Components\RequestBuilder\AssemblyLoadsTracker.cs (1)
129string assemblyPath = args.LoadedAssembly.IsDynamic ? string.Empty : args.LoadedAssembly.Location;
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (1)
365string realTaskAssemblyLocation = TaskInstance.GetType().Assembly.Location;
src\msbuild\src\Shared\TypeLoader.cs (1)
75string msbuildDirectory = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
Microsoft.Build.Framework (5)
BackEnd\Handshake.cs (1)
124var fileVersion = new Version(FileVersionInfo.GetVersionInfo(Assembly.GetExecutingAssembly().Location).FileVersion!);
BuildEnvironmentHelper.cs (1)
106msbuildExePath = typeof(BuildEnvironmentHelper).Assembly.Location;
Loader\CoreCLRAssemblyLoader.cs (1)
124string[] searchPaths = [Assembly.GetExecutingAssembly().Location];
Loader\LoadedType.cs (2)
52Path = string.IsNullOrEmpty(loadedAssembly.Location) 54: loadedAssembly.Location;
Microsoft.Build.Tasks.CodeAnalysis (4)
src\roslyn\src\Compilers\Core\MSBuildTask\Csc.cs (1)
211var rspFile = Path.Combine(Path.GetDirectoryName(typeof(ManagedCompiler).Assembly.Location)!, "csc.rsp");
src\roslyn\src\Compilers\Core\MSBuildTask\ManagedToolTask.cs (1)
242var buildTaskDirectory = Path.GetDirectoryName(buildTask.Location);
src\roslyn\src\Compilers\Core\MSBuildTask\Utilities.cs (1)
182return assembly.Location;
src\roslyn\src\Compilers\Core\MSBuildTask\Vbc.cs (1)
395var rspFile = Path.Combine(Path.GetDirectoryName(typeof(ManagedCompiler).Assembly.Location)!, "vbc.rsp");
Microsoft.Build.Tasks.Core (2)
GetSDKReferenceFiles.cs (1)
1094currentAssembly = Assembly.GetExecutingAssembly().Location;
ManifestUtil\Util.cs (1)
111return Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
Microsoft.CodeAnalysis (6)
CommandLine\CommonCompiler.cs (1)
175var location = type.Assembly.Location;
DiagnosticAnalyzer\AnalyzerAssemblyLoader.Core.cs (1)
193CodeAnalysisEventSource.Log.ResolvedAssembly(Directory, assemblyName.ToString(), resolver.GetType().Name, assembly.Location, GetLoadContext(assembly)!.ToString());
MetadataReference\MetadataReference.cs (2)
354string location = assembly.Location; 378return !assembly.IsDynamic && !string.IsNullOrEmpty(assembly.Location);
SourceGeneration\GeneratorTimerExtensions.cs (2)
36eventSource.StartSingleGeneratorRunTime(type.FullName!, type.Assembly.Location, id); 37return new RunTimer(t => eventSource.StopSingleGeneratorRunTime(type.FullName!, type.Assembly.Location, t.Ticks, id), adjustRunTime);
Microsoft.CodeAnalysis.Analyzers (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Helpers\MefHostServicesHelpers.cs (2)
60var thisAssemblyName = typeof(MefHostServicesHelpers).GetTypeInfo().Assembly.Location; 72return assembly?.Location;
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Helpers\MefHostServicesHelpers.cs (2)
60var thisAssemblyName = typeof(MefHostServicesHelpers).GetTypeInfo().Assembly.Location; 72return assembly?.Location;
Microsoft.CodeAnalysis.Features (2)
Diagnostics\Service\DiagnosticAnalyzerComparer.cs (1)
34return (analyzer.GetAnalyzerId(), GetAnalyzerLastWriteTime(typeInfo.Assembly.Location));
SemanticSearch\SemanticSearchWorkspace.cs (1)
21public static readonly string ReferenceAssembliesDirectory = Path.Combine(Path.GetDirectoryName(typeof(SemanticSearchWorkspace).Assembly.Location)!, "SemanticSearchRefs");
Microsoft.CodeAnalysis.Scripting (2)
src\roslyn\src\Compilers\Shared\GlobalAssemblyCacheHelpers\MonoGlobalAssemblyCache.cs (2)
30var corlibAssemblyFile = typeof(object).Assembly.Location; 33var systemAssemblyFile = typeof(Uri).Assembly.Location;
Microsoft.CodeAnalysis.Workspaces (4)
Log\RoslynEventSource.cs (1)
113var fvi = FileVersionInfo.GetVersionInfo(assembly.Location);
src\roslyn\src\Compilers\Core\Portable\DiagnosticAnalyzer\AnalyzerAssemblyLoader.Core.cs (1)
193CodeAnalysisEventSource.Log.ResolvedAssembly(Directory, assemblyName.ToString(), resolver.GetType().Name, assembly.Location, GetLoadContext(assembly)!.ToString());
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Helpers\MefHostServicesHelpers.cs (2)
60var thisAssemblyName = typeof(MefHostServicesHelpers).GetTypeInfo().Assembly.Location; 72return assembly?.Location;
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
MSBuild\BuildHostProcessManager.cs (1)
35private static string MSBuildWorkspaceDirectory => Path.GetDirectoryName(typeof(BuildHostProcessManager).Assembly.Location) ?? AppContext.BaseDirectory;
Microsoft.Data.Analysis.Interactive (1)
DataFrameKernelExtension.cs (1)
31await cSharpKernel.SendAsync(new SubmitCode($@"#r ""{typeof(DataFrameKernelExtension).Assembly.Location}""
Microsoft.Data.Analysis.Tests (2)
DataFrame.IOTests.cs (1)
1338Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location) + "/";
test\Microsoft.ML.TestFramework\BaseTestClass.cs (1)
55var currentAssemblyLocation = new FileInfo(typeof(BaseTestClass).Assembly.Location);
Microsoft.DotNet.HotReload.Watch (1)
AppModels\HotReloadAppModel.cs (1)
15=> Path.Combine(Path.GetDirectoryName(typeof(HotReloadAppModel).Assembly.Location)!, "hotreload", targetFramework, assemblyName + ".dll");
Microsoft.DotNet.HotReload.WebAssembly.Browser (1)
src\sdk\src\Dotnet.Watch\HotReloadAgent\HotReloadAgent.cs (1)
320var assemblyLocation = startupHookType.Assembly.Location;
Microsoft.Extensions.DependencyModel (1)
DependencyContextLoader.cs (1)
130string assemblyLocation = assembly.Location;
Microsoft.Extensions.DotNetDeltaApplier (2)
src\sdk\src\Dotnet.Watch\HotReloadAgent.Host\StartupHook.cs (1)
40Log($"Loaded into process: {processPath} ({typeof(StartupHook).Assembly.Location})");
src\sdk\src\Dotnet.Watch\HotReloadAgent\HotReloadAgent.cs (1)
320var assemblyLocation = startupHookType.Assembly.Location;
Microsoft.Extensions.FileProviders.Embedded (2)
EmbeddedFileProvider.cs (1)
58var assemblyLocation = assembly.Location;
ManifestEmbeddedFileProvider.cs (1)
130var assemblyLocation = assembly.Location;
Microsoft.Extensions.Http.Diagnostics.PerformanceTests (2)
NoRemoteCallHandler.cs (1)
23var assemblyFileLocation = Path.GetDirectoryName(typeof(NoRemoteCallHandler).Assembly.Location)!;
NoRemoteCallNotSeekableHandler.cs (1)
26var assemblyFileLocation = Path.GetDirectoryName(typeof(NoRemoteCallHandler).Assembly.Location)!;
Microsoft.Extensions.Http.Diagnostics.Tests (1)
Logging\Internal\NoRemoteCallHandler.cs (1)
19var assemblyFileLocation = Path.GetDirectoryName(typeof(NoRemoteCallHandler).Assembly.Location)!;
Microsoft.Gen.BuildMetadata.Unit.Tests (2)
test\Generators\Shared\RoslynTestUtils.cs (2)
58var corelib = Assembly.GetAssembly(typeof(object))!.Location; 73refs.Add(MetadataReference.CreateFromFile(r.Location));
Microsoft.Gen.ComplianceReports.Unit.Tests (2)
test\Generators\Shared\RoslynTestUtils.cs (2)
58var corelib = Assembly.GetAssembly(typeof(object))!.Location; 73refs.Add(MetadataReference.CreateFromFile(r.Location));
Microsoft.Gen.ContextualOptions.Unit.Tests (2)
test\Generators\Shared\RoslynTestUtils.cs (2)
58var corelib = Assembly.GetAssembly(typeof(object))!.Location; 73refs.Add(MetadataReference.CreateFromFile(r.Location));
Microsoft.Gen.Logging.Unit.Tests (9)
CompilationHelper.cs (7)
25string corelib = Assembly.GetAssembly(typeof(object))!.Location; 32refs.Add(MetadataReference.CreateFromFile(typeof(ILogger).Assembly.Location)); 33refs.Add(MetadataReference.CreateFromFile(typeof(LoggerMessageAttribute).Assembly.Location)); 34refs.Add(MetadataReference.CreateFromFile(typeof(IEnrichmentTagCollector).Assembly.Location)); 35refs.Add(MetadataReference.CreateFromFile(typeof(DataClassification).Assembly.Location)); 36refs.Add(MetadataReference.CreateFromFile(typeof(PrivateDataAttribute).Assembly.Location)); 37refs.Add(MetadataReference.CreateFromFile(typeof(BigInteger).Assembly.Location));
test\Generators\Shared\RoslynTestUtils.cs (2)
58var corelib = Assembly.GetAssembly(typeof(object))!.Location; 73refs.Add(MetadataReference.CreateFromFile(r.Location));
Microsoft.Gen.MetadataExtractor.Unit.Tests (2)
test\Generators\Shared\RoslynTestUtils.cs (2)
58var corelib = Assembly.GetAssembly(typeof(object))!.Location; 73refs.Add(MetadataReference.CreateFromFile(r.Location));
Microsoft.Gen.Metrics.Unit.Tests (2)
test\Generators\Shared\RoslynTestUtils.cs (2)
58var corelib = Assembly.GetAssembly(typeof(object))!.Location; 73refs.Add(MetadataReference.CreateFromFile(r.Location));
Microsoft.Gen.MetricsReports.Unit.Tests (2)
test\Generators\Shared\RoslynTestUtils.cs (2)
58var corelib = Assembly.GetAssembly(typeof(object))!.Location; 73refs.Add(MetadataReference.CreateFromFile(r.Location));
Microsoft.ML.AutoML.Interactive (1)
AutoMLMonitorKernelExtension.cs (1)
41await cSharpKernel.SendAsync(new SubmitCode($@"#r ""{typeof(AutoMLMonitorKernelExtension).Assembly.Location}""
Microsoft.ML.AutoML.Tests (1)
DatasetUtil.cs (1)
237DatasetUtil).Assembly.Location).Directory.FullName, relativePath);
Microsoft.ML.CodeAnalyzer.Tests (1)
Helpers\AdditionalMetadataReferences.cs (1)
31var location = typeof(TType).Assembly.Location;
Microsoft.ML.Core (2)
Utilities\PathUtils.cs (2)
28string path = typeof(Utils).Assembly.Location; 90var assemblyDir = Path.GetDirectoryName(assemblyForBasePath.Assembly.Location);
Microsoft.ML.CpuMath.UnitTests (1)
UnitTests.cs (1)
997options.StartInfo.WorkingDirectory = System.IO.Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
Microsoft.ML.IntegrationTests (1)
IntegrationTestBaseClass.cs (1)
47var currentAssemblyLocation = new FileInfo(typeof(IntegrationTestBaseClass).Assembly.Location);
Microsoft.ML.OnnxConverter (1)
SaveOnnxCommand.cs (1)
326var versionInfo = System.Diagnostics.FileVersionInfo.GetVersionInfo(assembly.Location);
Microsoft.ML.PerformanceTests (4)
ImageClassificationBench.cs (1)
209ImageClassificationBench).Assembly.Location);
Numeric\Ranking.cs (1)
88_modelPathMslr = Path.Combine(Path.GetDirectoryName(typeof(RankingTest).Assembly.Location), "FastTreeRankingModel.zip");
Text\MultiClassClassification.cs (2)
105_modelPathWiki = Path.Combine(Path.GetDirectoryName(typeof(MulticlassClassificationTest).Assembly.Location), @"WikiModel.zip"); 123string modelpath = Path.Combine(Path.GetDirectoryName(typeof(MulticlassClassificationTest).Assembly.Location), @"WikiModel.fold000.zip");
Microsoft.ML.Samples (4)
Dynamic\Trainers\MulticlassClassification\ImageClassification\ImageClassificationDefault.cs (1)
310ImageClassificationDefault).Assembly.Location);
Dynamic\Trainers\MulticlassClassification\ImageClassification\LearningRateSchedulingCifarResnetTransferLearning.cs (1)
351LearningRateSchedulingCifarResnetTransferLearning).Assembly.Location);
Dynamic\Trainers\MulticlassClassification\ImageClassification\ResnetV2101TransferLearningEarlyStopping.cs (1)
307ResnetV2101TransferLearningEarlyStopping).Assembly.Location);
Dynamic\Trainers\MulticlassClassification\ImageClassification\ResnetV2101TransferLearningTrainTestSplit.cs (1)
328ResnetV2101TransferLearningTrainTestSplit).Assembly.Location);
Microsoft.ML.Samples.GPU (4)
docs\samples\Microsoft.ML.Samples\Dynamic\Trainers\MulticlassClassification\ImageClassification\ImageClassificationDefault.cs (1)
310ImageClassificationDefault).Assembly.Location);
docs\samples\Microsoft.ML.Samples\Dynamic\Trainers\MulticlassClassification\ImageClassification\LearningRateSchedulingCifarResnetTransferLearning.cs (1)
351LearningRateSchedulingCifarResnetTransferLearning).Assembly.Location);
docs\samples\Microsoft.ML.Samples\Dynamic\Trainers\MulticlassClassification\ImageClassification\ResnetV2101TransferLearningEarlyStopping.cs (1)
307ResnetV2101TransferLearningEarlyStopping).Assembly.Location);
docs\samples\Microsoft.ML.Samples\Dynamic\Trainers\MulticlassClassification\ImageClassification\ResnetV2101TransferLearningTrainTestSplit.cs (1)
328ResnetV2101TransferLearningTrainTestSplit).Assembly.Location);
Microsoft.ML.TestFramework (2)
BaseTestClass.cs (1)
55var currentAssemblyLocation = new FileInfo(typeof(BaseTestClass).Assembly.Location);
CopyAction.cs (1)
45var testDirectory = new FileInfo(typeof(CopyAction).Assembly.Location).Directory;
Microsoft.NET.Sdk.WorkloadMSBuildSdkResolver (2)
CachingWorkloadResolver.cs (1)
72string sentinelPath = Path.Combine(Path.GetDirectoryName(typeof(CachingWorkloadResolver).Assembly.Location) ?? string.Empty, "DisableWorkloadResolver.sentinel");
WorkloadSdkResolver.cs (1)
78var sdkDirectory = Path.GetDirectoryName(typeof(DotnetFiles).Assembly.Location);
Microsoft.TemplateEngine.Edge (1)
Settings\ComponentManager.cs (1)
215AddProbingPath(Path.GetDirectoryName(type.Assembly.Location));
Microsoft.TestPlatform.Extensions.BlameDataCollector (1)
WindowsHangDumper.cs (1)
144var dumpMinitoolPath = Path.Combine(Path.GetDirectoryName(Assembly.GetCallingAssembly().Location)!, "dump", dumpMinitoolName);
Microsoft.TestPlatform.PlatformAbstractions (3)
common\System\ProcessHelper.cs (1)
238return Path.GetDirectoryName(typeof(ProcessHelper).Assembly.Location);
netcore\Runtime\PlatformAssemblyExtensions.cs (1)
22return assembly.Location;
netcore\System\ProcessHelper.cs (1)
21return Path.GetDirectoryName(Assembly.GetEntryAssembly()!.Location)!;
Microsoft.TestPlatform.TestHostRuntimeProvider (2)
Hosting\DefaultTestHostManager.cs (1)
185var currentWorkingDirectory = Path.GetDirectoryName(typeof(DefaultTestHostManager).Assembly.Location);
Hosting\DotnetTestHostManager.cs (1)
382var testHostNextToRunner = Path.Combine(Path.GetDirectoryName(Assembly.GetEntryAssembly()!.Location)!, "testhost.dll");
Microsoft.VisualBasic.Forms (1)
Microsoft\VisualBasic\ApplicationServices\AssemblyInfo.vb (1)
91Return IO.Path.GetDirectoryName(_assembly.Location)
MSBuild (1)
src\msbuild\src\Shared\TypeLoader.cs (1)
75string msbuildDirectory = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
NuGet.Build.Tasks (1)
StaticGraphRestoreTaskBase.cs (1)
38protected static readonly Lazy<FileInfo> ThisAssemblyLazy = new Lazy<FileInfo>(() => new FileInfo(typeof(RestoreTaskEx).Assembly.Location));
PresentationBuildTasks (2)
MS\Internal\Tasks\IncrementalCompileAnalyzer.cs (1)
83if (IsFileChanged(Assembly.GetExecutingAssembly().Location) ||
MS\Internal\Tasks\TaskHelper.cs (1)
47string acPath = Assembly.GetExecutingAssembly().Location;
PresentationFramework (3)
MS\Internal\AppModel\ContentFilePart.cs (1)
103entryLocation = Application.ResourceAssembly.Location;
MS\Internal\WindowsRuntime\Generated\WinRT.cs (1)
100private static readonly string _currentModuleDirectory = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location);
System\Windows\Documents\Serialization\SerializerDescriptor.cs (1)
94sd._assemblyPath = factoryType.Assembly.Location;
Roslyn.Diagnostics.Analyzers (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Helpers\MefHostServicesHelpers.cs (2)
60var thisAssemblyName = typeof(MefHostServicesHelpers).GetTypeInfo().Assembly.Location; 72return assembly?.Location;
rzc (2)
DiscoverCommand.cs (1)
131currentDirectory ??= Path.GetDirectoryName(typeof(Application).Assembly.Location);
ServerCommand.cs (1)
158var rzcPath = Assembly.GetExecutingAssembly().Location;
SuperFileCheck (1)
Program.cs (1)
42var superFileCheckPath = typeof(Program).Assembly.Location;
System.ComponentModel.TypeConverter (3)
System\ComponentModel\Design\DesigntimeLicenseContext.cs (2)
74string location = asm.Location; 95string location = resourceAssembly.Location;
System\ComponentModel\LicFileLicenseProvider.cs (1)
77if (type.Assembly.Location.Length != 0)
System.Configuration.ConfigurationManager (1)
System\Configuration\ClientConfigPaths.cs (1)
58if (exeAssembly?.Location.Length == 0)
System.Diagnostics.EventLog (1)
System\Diagnostics\EventLog.cs (1)
704string assmLocation = typeof(EventLog).Assembly.Location;
System.IO.IsolatedStorage (1)
System\IO\IsolatedStorage\Helper.cs (1)
123location = assembly.Location;
System.Net.Quic (1)
System\Net\Quic\Internal\MsQuicApi.cs (1)
99string path = !ShouldUseAppLocalMsQuic() && typeof(MsQuicApi).Assembly.Location is string assemblyLocation && !string.IsNullOrEmpty(assemblyLocation)
System.Private.CoreLib (2)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Assembly.cs (1)
320string requestorPath = requestingAssembly.Location;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Loader\AssemblyLoadContext.cs (1)
860string? parentDirectory = Path.GetDirectoryName(parentAssembly.Location);
System.Private.Xml (5)
System\Xml\Serialization\Compilation.cs (4)
234if (!string.IsNullOrEmpty(type.Assembly.Location)) 236path = Path.Combine(Path.GetDirectoryName(type.Assembly.Location)!, $"{assemblyName}.dll"); 239if ((string.IsNullOrEmpty(path) || !File.Exists(path)) && !string.IsNullOrEmpty(Assembly.GetEntryAssembly()?.Location)) 241path = Path.Combine(Path.GetDirectoryName(Assembly.GetEntryAssembly()!.Location)!, $"{assemblyName}.dll");
System\Xml\Serialization\XmlSerializer.cs (1)
697string? nameOrLocation = assembly.Location;
System.Reflection.Context (1)
System\Reflection\Context\Delegation\DelegatingAssembly.cs (1)
29get { return UnderlyingAssembly.Location; }
System.Reflection.MetadataLoadContext (1)
System\Reflection\TypeLoading\Assemblies\Ecma\EcmaAssembly.Modules.cs (1)
41string location = containingAssembly.Location;
System.Runtime.InteropServices (1)
System\Runtime\InteropServices\RuntimeEnvironment.cs (1)
21string? runtimeDirectory = typeof(object).Assembly.Location;
System.Runtime.Serialization.Schema (1)
System\Runtime\Serialization\Schema\CodeExporter.cs (1)
123string assemblyName = System.IO.Path.GetFileName(assembly.Location);
System.Windows.Forms (4)
System\Resources\AssemblyNamesTypeResolutionService.cs (1)
160if (result?.Assembly?.Location is { } location)
System\Windows\Forms\Application.cs (1)
1131s_appFileVersion = type is not null && type.Assembly.Location.Length > 0
System\Windows\Forms\Control.ControlVersionInfo.cs (1)
172private bool OwnerIsInMemoryAssembly => _owner.GetType().Assembly.Location.Length == 0;
System\Windows\Forms\Dialogs\ThreadExceptionDialog.cs (1)
183string location = assembly.Location;
testhost (1)
src\vstest\src\testhost.x86\DefaultEngineInvoker.cs (1)
115string objectTypeLocation = typeof(object).Assembly.Location;
testhost.arm64 (1)
src\vstest\src\testhost.x86\DefaultEngineInvoker.cs (1)
115string objectTypeLocation = typeof(object).Assembly.Location;
testhost.x86 (1)
DefaultEngineInvoker.cs (1)
115string objectTypeLocation = typeof(object).Assembly.Location;
VBCSCompiler (1)
src\roslyn\src\Compilers\Server\VBCSCompiler\AnalyzerConsistencyChecker.cs (1)
132var loadedAssemblyLocation = loader.GetOriginalDependencyLocation(loadedAssembly.GetName()) ?? loadedAssembly.Location;
vstest.console (5)
InProcessVsTestConsoleWrapper.cs (1)
128string someExistingFile = typeof(InProcessVsTestConsoleWrapper).Assembly.Location;
Processors\EnableDiagArgumentProcessor.cs (1)
147string objectTypeLocation = typeof(object).Assembly.Location;
TestPlatformHelpers\TestRequestManager.cs (3)
1175CodeBase = typeof(ConsoleLogger).Assembly.Location, 1209consoleLogger.CodeBase = typeof(ConsoleLogger).Assembly.Location; 1244msBuildLogger.CodeBase = typeof(MSBuildLogger).Assembly.Location;
vstest.console.arm64 (5)
src\vstest\src\vstest.console\InProcessVsTestConsoleWrapper.cs (1)
128string someExistingFile = typeof(InProcessVsTestConsoleWrapper).Assembly.Location;
src\vstest\src\vstest.console\Processors\EnableDiagArgumentProcessor.cs (1)
147string objectTypeLocation = typeof(object).Assembly.Location;
src\vstest\src\vstest.console\TestPlatformHelpers\TestRequestManager.cs (3)
1175CodeBase = typeof(ConsoleLogger).Assembly.Location, 1209consoleLogger.CodeBase = typeof(ConsoleLogger).Assembly.Location; 1244msBuildLogger.CodeBase = typeof(MSBuildLogger).Assembly.Location;