58 references to GetRuntimeDirectory
csc (1)
src\Compilers\Shared\BuildClient.cs (1)
93: RuntimeEnvironment.GetRuntimeDirectory();
dotnet-dev-certs (1)
src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
76var runtimeDirectory = RuntimeEnvironment.GetRuntimeDirectory();
dotnet-getdocument (1)
src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
76var runtimeDirectory = RuntimeEnvironment.GetRuntimeDirectory();
dotnet-openapi (1)
src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
76var runtimeDirectory = RuntimeEnvironment.GetRuntimeDirectory();
dotnet-sql-cache (1)
src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
76var runtimeDirectory = RuntimeEnvironment.GetRuntimeDirectory();
dotnet-user-jwts (1)
src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
76var runtimeDirectory = RuntimeEnvironment.GetRuntimeDirectory();
dotnet-user-secrets (1)
src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
76var runtimeDirectory = RuntimeEnvironment.GetRuntimeDirectory();
GetDocument.Insider (1)
src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
76var runtimeDirectory = RuntimeEnvironment.GetRuntimeDirectory();
InteractiveHost.UnitTests (1)
AbstractInteractiveHostTests.cs (1)
45var dir = RuntimeEnvironment.GetRuntimeDirectory();
Microsoft.AspNetCore.Components.WebAssembly.Server (1)
src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
76var runtimeDirectory = RuntimeEnvironment.GetRuntimeDirectory();
Microsoft.AspNetCore.Shared.Tests (1)
src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
76var runtimeDirectory = RuntimeEnvironment.GetRuntimeDirectory();
Microsoft.Build (1)
TypeLoader.cs (1)
57string[] runtimeAssemblies = Directory.GetFiles(RuntimeEnvironment.GetRuntimeDirectory(), "*.dll");
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (2)
CommandLineTestBase.cs (1)
45return RuntimeEnvironment.GetRuntimeDirectory();
CommandLineTests.cs (1)
515AssertEx.Equal(new[] { RuntimeEnvironment.GetRuntimeDirectory() }.Concat(new[] { @"x", @"..\goo", @"../bar", @"a b" }.Select(prependBasePath)), args.ReferencePaths.ToArray());
Microsoft.CodeAnalysis.CSharp.Scripting.Desktop.UnitTests (2)
InteractiveSessionReferencesTests.cs (2)
121var options = ScriptOptions.WithMetadataResolver(ScriptMetadataResolver.WithSearchPaths(RuntimeEnvironment.GetRuntimeDirectory())); 226WithMetadataResolver(ScriptMetadataResolver.WithSearchPaths(RuntimeEnvironment.GetRuntimeDirectory())).
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (2)
Diagnostics\DiagnosticTest.cs (2)
2906var parsedArgs = CSharpCommandLineParser.Default.Parse(new[] { pathmapArg, "a.cs" }, TempRoot.Root, RuntimeEnvironment.GetRuntimeDirectory(), null); 2917var parsedArgs = CSharpCommandLineParser.Default.Parse(args, TempRoot.Root, RuntimeEnvironment.GetRuntimeDirectory(), null);
Microsoft.CodeAnalysis.Features (1)
Workspace\MiscellaneousFileUtilities.cs (1)
94searchPaths: [RuntimeEnvironment.GetRuntimeDirectory()],
Microsoft.CodeAnalysis.InteractiveHost (3)
Interactive\Core\InteractiveHost.Service.cs (3)
114FileUtilities.NormalizeDirectoryPath(RuntimeEnvironment.GetRuntimeDirectory()), 527var sdkDirectory = s_currentPlatformInfo.PlatformAssemblyPaths.IsEmpty ? RuntimeEnvironment.GetRuntimeDirectory() : null; 844=> Task.FromResult(RuntimeEnvironment.GetRuntimeDirectory());
Microsoft.CodeAnalysis.Scripting.Desktop.UnitTests (1)
MetadataShadowCopyProviderTests.cs (1)
35FileUtilities.NormalizeDirectoryPath(RuntimeEnvironment.GetRuntimeDirectory()));
Microsoft.CodeAnalysis.Test.Utilities (2)
Compilation\RuntimeUtilities.cs (1)
50sdkDir: sdkDirectory ?? RuntimeEnvironment.GetRuntimeDirectory(),
Platform\Desktop\CLRHelpers.cs (1)
185private static readonly string s_resourceFilePath = Path.Combine(RuntimeEnvironment.GetRuntimeDirectory(), "mscorrc.dll");
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (12)
CommandLineTests.vb (12)
45Private Shared ReadOnly s_defaultSdkDirectory As String = RuntimeEnvironment.GetRuntimeDirectory() 3541Dim parsedArgs = VisualBasicCommandLineParser.Default.Parse({pathmapArg, "a.vb"}, TempRoot.Root, RuntimeEnvironment.GetRuntimeDirectory(), Nothing) 3550Dim parsedArgs = VisualBasicCommandLineParser.Default.Parse(args, TempRoot.Root, RuntimeEnvironment.GetRuntimeDirectory(), Nothing) 3564Dim args As VisualBasicCommandLineArguments = VisualBasicCommandLineParser.Default.Parse(New String() {}, Nothing, RuntimeEnvironment.GetRuntimeDirectory()) 5153newVbCore.WriteAllBytes(File.ReadAllBytes(Path.Combine(RuntimeEnvironment.GetRuntimeDirectory(), "Microsoft.VisualBasic.dll"))) 5244sysRuntime.WriteAllBytes(File.ReadAllBytes(Path.Combine(RuntimeEnvironment.GetRuntimeDirectory(), "System.Runtime.dll"))) 5263msCorLib.WriteAllBytes(File.ReadAllBytes(Path.Combine(RuntimeEnvironment.GetRuntimeDirectory(), "mscorlib.dll"))) 5266output = ProcessUtilities.RunAndGetOutput(s_basicCompilerExecutable, "/nologo /nostdlib /sdkpath:" & dir.Path & " /t:library /vbruntime* /r:" & Path.Combine(RuntimeEnvironment.GetRuntimeDirectory(), "System.dll") & " " & src.ToString(), startFolder:=dir.Path) 5272output = ProcessUtilities.RunAndGetOutput(s_basicCompilerExecutable, "/nologo /nostdlib /sdkpath:" & dir.Path & " /t:library /vbruntime* /r:" & Path.Combine(RuntimeEnvironment.GetRuntimeDirectory(), "System.dll") & " " & src.ToString(), startFolder:=dir.Path) 5299" /t:library /r:" & Path.Combine(RuntimeEnvironment.GetRuntimeDirectory(), "System.dll") & 5309msCorLib.WriteAllBytes(File.ReadAllBytes(Path.Combine(RuntimeEnvironment.GetRuntimeDirectory(), "mscorlib.dll"))) 5384Assert.Equal(If(sdkPathOrNothing, RuntimeEnvironment.GetRuntimeDirectory()), refPaths(0))
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\CommandLineProject.cs (1)
35var commandLineArguments = commandLineParser.Parse(commandLineArgs, projectDirectory, isInteractive: false, sdkDirectory: RuntimeEnvironment.GetRuntimeDirectory());
Microsoft.CodeAnalysis.Workspaces.MSBuild (2)
MSBuild\MSBuildProjectLoader.Worker.cs (1)
331sdkDirectory: RuntimeEnvironment.GetRuntimeDirectory());
MSBuild\MSBuildWorkspace.cs (1)
557var runtimeDir = System.Runtime.InteropServices.RuntimeEnvironment.GetRuntimeDirectory();
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (1)
VisualStudioMSBuildWorkspaceTests.cs (1)
3135sdkDirectory: System.Runtime.InteropServices.RuntimeEnvironment.GetRuntimeDirectory());
Microsoft.Extensions.ApiDescription.Client.Tests (1)
src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
76var runtimeDirectory = RuntimeEnvironment.GetRuntimeDirectory();
Microsoft.VisualStudio.LanguageServices (2)
Interactive\VsResetInteractive.cs (1)
135referenceSearchPathsBuilder.Add(RuntimeEnvironment.GetRuntimeDirectory());
ProjectSystem\MetadataReferences\VisualStudioMetadataReferenceManager.cs (1)
144RuntimeEnvironment.GetRuntimeDirectory()
Microsoft.VisualStudio.LanguageServices.CSharp (1)
ProjectSystemShim\TempPECompilerService.cs (1)
107return CSharpCommandLineParser.Default.Parse(arguments, baseDirectory, RuntimeEnvironment.GetRuntimeDirectory());
MSBuild (1)
TypeLoader.cs (1)
57string[] runtimeAssemblies = Directory.GetFiles(RuntimeEnvironment.GetRuntimeDirectory(), "*.dll");
RunTests (1)
Options.cs (1)
278var dir = RuntimeEnvironment.GetRuntimeDirectory();
Swaggatherer (1)
src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
76var runtimeDirectory = RuntimeEnvironment.GetRuntimeDirectory();
Templates.Blazor.Tests (1)
src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
76var runtimeDirectory = RuntimeEnvironment.GetRuntimeDirectory();
Templates.Blazor.WebAssembly.Auth.Tests (1)
src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
76var runtimeDirectory = RuntimeEnvironment.GetRuntimeDirectory();
Templates.Blazor.WebAssembly.Tests (1)
src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
76var runtimeDirectory = RuntimeEnvironment.GetRuntimeDirectory();
Templates.Mvc.Tests (1)
src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
76var runtimeDirectory = RuntimeEnvironment.GetRuntimeDirectory();
Templates.Tests (1)
src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
76var runtimeDirectory = RuntimeEnvironment.GetRuntimeDirectory();
vbc (1)
src\Compilers\Shared\BuildClient.cs (1)
93: RuntimeEnvironment.GetRuntimeDirectory();
VBCSCompiler (1)
src\Compilers\Shared\BuildClient.cs (1)
93: RuntimeEnvironment.GetRuntimeDirectory();
VBCSCompiler.UnitTests (2)
TouchedFileLoggingTests.cs (2)
69new BuildPaths(clientDirectory, _baseDirectory, RuntimeEnvironment.GetRuntimeDirectory(), Path.GetTempPath()), 120new BuildPaths(clientDirectory, _baseDirectory, RuntimeEnvironment.GetRuntimeDirectory(), Path.GetTempPath()),
Wasm.Performance.ConsoleHost (1)
src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
76var runtimeDirectory = RuntimeEnvironment.GetRuntimeDirectory();