292 references to GetTempPath
AnalyzerRunner (1)
PersistentStorageConfiguration.cs (1)
28var location = Path.Combine(Path.GetTempPath(), "RoslynTests", "AnalyzerRunner", "temp-db");
aspire (1)
Packaging\TemporaryNuGetConfig.cs (1)
22var tempDirectory = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
Aspire.Cli.Tests (2)
TestServices\TestProjectLocator.cs (1)
27var fakeProjectFilePath = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString(), "AppHost.csproj");
Utils\TemporaryRepo.cs (1)
59var tempPath = Path.GetTempPath();
Aspire.Dashboard.Tests (3)
Integration\StartupTests.cs (3)
139var configFilePath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 238var fileConfigDirectory = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 548var configFilePath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
Aspire.EndToEnd.Tests (4)
tests\Shared\TemplatesTesting\BuildEnvironment.cs (2)
25? Path.GetTempPath() 28: Path.GetTempPath();
tests\Shared\TemplatesTesting\TemplateCustomHive.cs (2)
29? Path.Combine(Path.GetTempPath(), $"templates-${s_tmpDirSuffix}") 104? Path.GetTempPath()
Aspire.Hosting.Garnet.Tests (1)
GarnetFunctionalTests.cs (1)
126bindMountPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
Aspire.Hosting.Kafka.Tests (1)
KafkaFunctionalTests.cs (1)
137bindMountPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
Aspire.Hosting.Keycloak.Tests (2)
KeycloakPublicApiTests.cs (2)
154var tempDirectory = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 177var tempDirectory = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
Aspire.Hosting.Milvus.Tests (1)
MilvusFunctionalTests.cs (1)
97bindMountPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
Aspire.Hosting.MongoDB.Tests (3)
MongoDbFunctionalTests.cs (3)
137bindMountPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 259var bindMountPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 357var initFilesPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
Aspire.Hosting.MySql.Tests (2)
MySqlFunctionalTests.cs (2)
306var bindMountPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 393var initFilesPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
Aspire.Hosting.PostgreSQL.Tests (3)
PostgresFunctionalTests.cs (3)
224bindMountPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 367var bindMountPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 455var initFilesPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
Aspire.Hosting.Python.Tests (1)
AddPythonAppTests.cs (1)
247var projectDirectory = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
Aspire.Hosting.Qdrant.Tests (1)
QdrantFunctionalTests.cs (1)
115bindMountPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
Aspire.Hosting.Redis.Tests (1)
RedisFunctionalTests.cs (1)
277var bindMountPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
Aspire.Hosting.Seq.Tests (1)
SeqFunctionalTests.cs (1)
96bindMountPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
Aspire.Hosting.SqlServer.Tests (1)
SqlServerFunctionalTests.cs (1)
156bindMountPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
Aspire.Hosting.Tests (12)
AspireStoreTests.cs (4)
34builder.Configuration[AspireStore.AspireStorePathKeyName] = Path.GetTempPath(); 41Assert.Contains(Path.GetTempPath(), path); 58builder.Configuration[AspireStore.AspireStorePathKeyName] = Path.GetTempPath(); 132builder.Configuration[AspireStore.AspireStorePathKeyName] = Path.GetTempPath();
ManifestGenerationTests.cs (1)
536var manifestPath = Path.Combine(Path.GetTempPath(), "tempmanifests", Guid.NewGuid().ToString(), "manifest.json");
ProjectResourceTests.cs (1)
44var projectDirectoryPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
Publishing\ResourceContainerImageBuilderTests.cs (2)
204var tempOutputPath = Path.GetTempPath(); 243var tempOutputPath = Path.GetTempPath();
Schema\SchemaTests.cs (3)
48var tempPath = Path.GetTempPath(); 60var tempPath = Path.GetTempPath(); 78var tempPath = Path.GetTempPath();
Utils\DockerfileUtils.cs (1)
40var tempContextPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
Aspire.Hosting.Valkey.Tests (1)
ValkeyFunctionalTests.cs (1)
82bindMountPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
Aspire.Templates.Tests (4)
tests\Shared\TemplatesTesting\BuildEnvironment.cs (2)
25? Path.GetTempPath() 28: Path.GetTempPath();
tests\Shared\TemplatesTesting\TemplateCustomHive.cs (2)
29? Path.Combine(Path.GetTempPath(), $"templates-${s_tmpDirSuffix}") 104? Path.GetTempPath()
Binding.UDS.IntegrationTests (2)
UDSBindingTests.cs (2)
210return Path.Combine(Path.GetTempPath(), "unix1.txt"); 215return Path.Combine(Path.GetTempPath(), "invalid.txt");
BuildValidator (1)
Program.cs (1)
105debugPath ??= Path.Combine(Path.GetTempPath(), $"BuildValidator");
csc (2)
src\Compilers\Shared\BuildClient.cs (1)
114var tempDir = Path.GetTempPath();
src\Compilers\Shared\BuildServerConnection.cs (1)
656var tempPath = Path.GetTempPath();
csi (1)
Csi.cs (1)
30tempDir: Path.GetTempPath());
dotnet-svcutil-lib (2)
CommandProcessorOptions.cs (1)
574var tempDir = Path.GetTempPath();
FrameworkFork\Microsoft.CodeDom\Compiler\TempFiles.cs (1)
305if (String.IsNullOrEmpty(tempDir)) tempDir = Path.GetTempPath();
dotnet-svcutil-lib.Tests (6)
FixupUtil.cs (3)
41new ReplaceInfo(Path.GetTempPath(), "$TEMP$"), 42new ReplaceInfo(Path.GetTempPath().Replace("\\", "\\\\"), "$TEMP$"), 43new ReplaceInfo(Path.GetTempPath().Replace("\\", "/"), "$TEMP$"),
GlobalToolTests.cs (2)
122this_TestGroupOutputDir = Path.Combine(Path.GetTempPath(), this_TestCaseName); 151this_TestGroupOutputDir = Path.Combine(Path.GetTempPath(), this_TestCaseName);
UnitTest.cs (1)
347var outputDir = Path.GetTempPath();
dotnet-user-jwts (1)
src\Tools\Shared\SecretsHelpers\ProjectIdResolver.cs (1)
51var outputFile = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
dotnet-user-secrets (1)
src\Tools\Shared\SecretsHelpers\ProjectIdResolver.cs (1)
51var outputFile = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
FilesWebSite (1)
Controllers\DownloadFilesController.cs (1)
18_testFilesPath = Path.Combine(Path.GetTempPath(), "test-files");
IdeBenchmarks (1)
SQLitePersistentStorageBenchmark.cs (1)
133var tempDir = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
IIS.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISFunctionalTestBase.cs (1)
24LogFolderPath = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString());
IIS.LongTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISFunctionalTestBase.cs (1)
24LogFolderPath = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString());
IIS.NewHandler.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISFunctionalTestBase.cs (1)
24LogFolderPath = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString());
IIS.NewShim.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISFunctionalTestBase.cs (1)
24LogFolderPath = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString());
IIS.ShadowCopy.Tests (2)
ShadowCopyTests.cs (1)
346var directoryPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISFunctionalTestBase.cs (1)
24LogFolderPath = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString());
IISExpress.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISFunctionalTestBase.cs (1)
24LogFolderPath = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString());
Interop.FunctionalTests (1)
H2SpecCommands.cs (1)
217var tempFile = Path.GetTempPath() + Guid.NewGuid() + ".xml";
Microsoft.AspNetCore.Authentication.JwtBearer.Tools.Tests (9)
src\Tools\Shared\TestHelpers\TemporaryDirectory.cs (1)
21Root = Path.Combine(ResolveLinks(Path.GetTempPath()), "dotnet-tool-tests", Guid.NewGuid().ToString("N"));
UserJwtsTestFixture.cs (1)
64var projectPath = Directory.CreateDirectory(Path.Combine(Path.GetTempPath(), "userjwtstest", Guid.NewGuid().ToString()));
UserJwtsTests.cs (7)
708var path = Directory.CreateDirectory(Path.Combine(Path.GetTempPath(), "userjwtstest")); 734var path = Directory.CreateDirectory(Path.Combine(Path.GetTempPath(), "userjwtstest")); 759var path = Directory.CreateDirectory(Path.Combine(Path.GetTempPath(), "userjwtstest")); 784var path = Directory.CreateDirectory(Path.Combine(Path.GetTempPath(), "userjwtstest")); 809var tempPath = Path.GetTempPath(); 825var tempPath = Path.GetTempPath(); 840var tempPath = Path.GetTempPath();
Microsoft.AspNetCore.Components.WebAssembly.Server (2)
TargetPickerUi.cs (2)
399var profilePath = Path.Combine(Path.GetTempPath(), "blazor-chrome-debug"); 425var profilePath = Path.Combine(Path.GetTempPath(), "blazor-edge-debug");
Microsoft.AspNetCore.DataProtection.Tests (1)
Repositories\FileSystemXmlRepositoryTests.cs (1)
318string uniqueTempPath = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString());
Microsoft.AspNetCore.FunctionalTests (3)
WebApplicationFunctionalTests.cs (3)
16var contentRootPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 59var contentRootPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 102var contentRootPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
Microsoft.AspNetCore.Http (1)
src\Http\WebUtilities\src\AspNetCoreTempDirectory.cs (1)
20Path.GetTempPath(); // Fall back.
Microsoft.AspNetCore.InternalTesting (1)
HelixHelper.cs (1)
20? Path.Combine(Path.GetTempPath(), uploadFileName)
Microsoft.AspNetCore.InternalTesting.Tests (1)
AssemblyTestLogTests.cs (1)
368var tempDir = Path.Combine(Path.GetTempPath(), $"TestLogging_{Guid.NewGuid():N}");
Microsoft.AspNetCore.Mvc.Core.Test (1)
ApplicationParts\RelatedAssemblyPartTest.cs (1)
12private static readonly string AssemblyDirectory = Path.GetTempPath().TrimEnd(Path.DirectorySeparatorChar);
Microsoft.AspNetCore.Mvc.FunctionalTests (1)
WebApplicationFactorySlnxTests.cs (1)
20_tempDirectory = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString("N")[..8]);
Microsoft.AspNetCore.OpenApi.Build.Tests (2)
GenerateAdditionalXmlFilesForOpenApiTests.cs (2)
46var classLibTempPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 74var tempPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
Microsoft.AspNetCore.Server.IntegrationTesting (2)
ApplicationPublisher.cs (1)
122var tempPath = Path.GetTempPath() + Guid.NewGuid().ToString("N");
Deployers\RemoteWindowsDeployer\RemoteWindowsDeployer.cs (1)
318var physicalFilePath = Path.Combine(Path.GetTempPath(), embeddedFileName);
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (1)
IISDeployer.cs (1)
308_configPath = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString("D"));
Microsoft.AspNetCore.TestHost.Tests (1)
UseSolutionRelativeContentRootTests.cs (1)
18_tempDirectory = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString("N")[..8]);
Microsoft.AspNetCore.Tests (13)
WebApplicationTests.cs (13)
391var contentRoot = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 411var contentRoot = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 468var contentRoot = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString()); 502var contentRoot = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 531var contentRoot = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 573var contentRoot = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 788var contentRoot = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 831var contentRoot = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 880var contentRoot = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 1079var contentRoot = Path.GetTempPath().ToString(); 2249var contentRoot = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 2281ContentRootPath = Path.GetTempPath() 2300Assert.Equal(Path.GetTempPath(), hostEnv.ContentRootPath);
Microsoft.AspNetCore.WebUtilities (2)
AspNetCoreTempDirectory.cs (1)
20Path.GetTempPath(); // Fall back.
FileBufferingWriteStream.cs (1)
37/// uses the value returned by <see cref="Path.GetTempPath"/>.
Microsoft.AspNetCore.WebUtilities.Tests (1)
FileBufferingWriteStreamTests.cs (1)
12private readonly string TempDirectory = Path.Combine(Path.GetTempPath(), "FileBufferingWriteTests", Path.GetRandomFileName());
Microsoft.Build.Tasks.CodeAnalysis (2)
src\Compilers\Core\MSBuildTask\ManagedCompiler.cs (1)
531string? tempDirectory = Path.GetTempPath();
src\Compilers\Shared\BuildServerConnection.cs (1)
656var tempPath = Path.GetTempPath();
Microsoft.Build.Tasks.CodeAnalysis.Sdk (2)
src\Compilers\Core\MSBuildTask\ManagedCompiler.cs (1)
531string? tempDirectory = Path.GetTempPath();
src\Compilers\Shared\BuildServerConnection.cs (1)
656var tempPath = Path.GetTempPath();
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
PdbSourceDocument\AbstractPdbSourceDocumentTests.cs (1)
58var path = Path.Combine(Path.GetTempPath(), nameof(PdbSourceDocumentTests));
Microsoft.CodeAnalysis.CSharp.WinRT.UnitTests (2)
Metadata\WinMdDumpTest.cs (2)
457string fileExpected = Path.Combine(Path.GetTempPath(), "roslyn_winmd_dump.expected.txt"); 458string fileActual = Path.Combine(Path.GetTempPath(), "roslyn_winmd_dump.actual.txt");
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (1)
CSharpCommandLineParserServiceTests.cs (1)
14private static readonly string s_directory = Path.GetTempPath();
Microsoft.CodeAnalysis.EditorFeatures (1)
Preview\AbstractPreviewFactoryService.cs (1)
622buffer, Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString(), document.Name));
Microsoft.CodeAnalysis.ExternalAccess.OmniSharp (1)
Analyzers\OmnisharpAnalyzerLoaderFactory.cs (1)
13baseDirectory ??= Path.Combine(Path.GetTempPath(), "CodeAnalysis", "OmnisharpAnalyzerShadowCopies");
Microsoft.CodeAnalysis.Features (1)
MetadataAsSource\MetadataAsSourceFileService.cs (1)
54private readonly string _rootTemporaryPath = Path.Combine(Path.GetTempPath(), MetadataAsSource);
Microsoft.CodeAnalysis.InteractiveHost (1)
Interactive\Core\InteractiveHost.Service.cs (1)
167Path.Combine(Path.GetTempPath(), "InteractiveHostShadow"),
Microsoft.CodeAnalysis.LanguageServer (2)
FileBasedPrograms\VirtualProjectXmlProvider.cs (1)
188? Path.GetTempPath()
Program.cs (1)
335return Path.Combine(Path.GetTempPath(), pipeName + ".sock");
Microsoft.CodeAnalysis.LanguageServer.UnitTests (1)
Utilities\AbstractLanguageServerClientTests.TestLspClient.cs (1)
77: Path.Combine(Path.GetTempPath(), pipeName + ".sock");
Microsoft.CodeAnalysis.PublicApiAnalyzers.UnitTests (1)
DeclarePublicAPIAnalyzerTestsBase.cs (1)
920var tempPath = Path.GetTempPath();
Microsoft.CodeAnalysis.Remote.ServiceHub (2)
src\VisualStudio\Core\Def\Watson\FaultReporter.cs (2)
271var logPath = Path.Combine(Path.GetTempPath(), "VSLogs"); 287var logPath = Path.Combine(Path.GetTempPath(), "servicehub", "logs");
Microsoft.CodeAnalysis.Scripting (1)
Hosting\AssemblyLoader\MetadataShadowCopyProvider.cs (1)
87_baseDirectory = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString());
Microsoft.CodeAnalysis.Scripting.TestUtilities (2)
CSharpScriptTestBase.cs (1)
37tempDir: Path.GetTempPath());
VisualBasicScriptTestBase.cs (1)
30tempDir: Path.GetTempPath());
Microsoft.CodeAnalysis.Test.Utilities (4)
Assert\ConditionalFactAttribute.cs (1)
173var tempDir = Path.GetTempPath();
Compilation\RuntimeUtilities.cs (1)
47tempDirectory ??= Path.GetTempPath();
Platform\Custom\SigningTestHelpers.cs (1)
21new DesktopStrongNameProvider(ImmutableArray<string>.Empty, new VirtualizedStrongNameFileSystem(Path.GetTempPath()));
TempFiles\TempRoot.cs (1)
22Root = Path.Combine(Path.GetTempPath(), "RoslynTests");
Microsoft.CodeAnalysis.UnitTests (1)
AnalyzerAssemblyLoaderTests.cs (1)
276var path = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName() + ".dll");
Microsoft.CodeAnalysis.Workspaces (5)
Serialization\AbstractOptionsSerializationService.cs (1)
162var strongNameProvider = new DesktopStrongNameProvider([], Path.GetTempPath());
Serialization\SerializationExtensions.cs (1)
39.WithStrongNameProvider(new DesktopStrongNameProvider(GetStrongNameKeyPaths(info), Path.GetTempPath()));
Workspace\CommandLineProject.cs (1)
47var strongNameProvider = new DesktopStrongNameProvider(commandLineArguments.KeyFileSearchPaths, Path.GetTempPath());
Workspace\Host\Metadata\IAnalyzerAssemblyLoaderProvider.cs (1)
55Path.Combine(Path.GetTempPath(), nameof(Roslyn), "AnalyzerAssemblyLoader"),
Workspace\ProjectSystem\ProjectSystemProjectOptionsProcessor.cs (1)
174.WithStrongNameProvider(new DesktopStrongNameProvider([.. _commandLineArgumentsForCommandLine.KeyFileSearchPaths.WhereNotNull()], Path.GetTempPath()));
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
MSBuild\MSBuildProjectLoader.Worker.cs (1)
349.WithStrongNameProvider(new DesktopStrongNameProvider(commandLineArgs.KeyFileSearchPaths, Path.GetTempPath()))
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (5)
ProjectGuardFiles.cs (5)
19File.WriteAllText(Path.Combine(Path.GetTempPath(), "global.json"), 26File.WriteAllText(Path.Combine(Path.GetTempPath(), "Directory.Build.props"), 44File.WriteAllText(Path.Combine(Path.GetTempPath(), "Directory.Build.rsp"), 49File.WriteAllText(Path.Combine(Path.GetTempPath(), "Directory.Build.targets"), 58File.WriteAllText(Path.Combine(Path.GetTempPath(), "NuGet.Config"),
Microsoft.DotNet.Arcade.Sdk.Tests (2)
GetLicenseFilePathTests.cs (1)
18var dir = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString());
Utilities\TestProjectFixture.cs (1)
43var tempDir = Path.Combine(Path.GetTempPath(), "arcade", instanceName);
Microsoft.DotNet.Build.Tasks.Installers (2)
src\CreateWixBuildWixpack.cs (2)
94WixpackWorkingDir = Path.Combine(Path.GetTempPath(), "WixpackTemp", Guid.NewGuid().ToString().Split('-')[0]); 197var tempFilePath = Path.Combine(Path.GetTempPath(), Path.GetFileName(includeFile));
Microsoft.DotNet.Build.Tasks.Templating.Tests (3)
GenerateFileFromTemplateTests.cs (3)
16string tempDir = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString()); 43string tempDir = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString()); 68string tempDir = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString());
Microsoft.DotNet.Build.Tasks.VisualStudio.Tests (4)
OptProf\GenerateTrainingInputFilesTests.cs (1)
136var temp = Path.GetTempPath();
OptProf\GenerateTrainingPropsFileTests.cs (2)
15var temp = Path.GetTempPath(); 43var temp = Path.GetTempPath();
OptProf\GetRunSettingsSessionConfigurationTests.cs (1)
415var temp = Path.GetTempPath();
Microsoft.DotNet.Build.Tasks.Workloads.Tests (3)
CreateVisualStudioWorkloadSetTests.cs (1)
22string baseIntermediateOutputPath = Path.Combine(Path.GetTempPath(), "WLS");
CreateVisualStudioWorkloadTests.cs (2)
26string baseIntermediateOutputPath = Path.Combine(Path.GetTempPath(), "WL"); 162string baseIntermediateOutputPath = Path.Combine(Path.GetTempPath(), "WLa64");
Microsoft.DotNet.Helix.Sdk (1)
CommandPayload.cs (1)
23var dir = new DirectoryInfo(Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString("N")));
Microsoft.DotNet.Internal.SymbolHelper (2)
SymbolUploadHelper.cs (1)
83_workingDir = workingDir ?? Path.GetTempPath();
SymbolUploadHelperFactory.cs (1)
46installDirectory ??= Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
Microsoft.DotNet.MacOsPkg.Core (2)
Package.cs (2)
64string tempDest = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 183string tempDir = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
Microsoft.DotNet.NuGetRepack.Tasks (2)
src\NuGetVersionUpdater.cs (1)
66tempDirectoryOpt = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString());
src\ReplacePackageParts.cs (1)
123string tempPackagePath = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString());
Microsoft.DotNet.NuGetRepack.Tests (6)
ReplacePackagePartsTests.cs (1)
18var dir = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString());
VersionUpdaterTests.cs (5)
59var dir = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString()); 102var dir = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString()); 130var dir = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString()); 169var dir = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString()); 170var outputDir = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString());
Microsoft.DotNet.Open.Api.Tools.Tests (1)
src\Tools\Shared\TestHelpers\TemporaryDirectory.cs (1)
21Root = Path.Combine(ResolveLinks(Path.GetTempPath()), "dotnet-tool-tests", Guid.NewGuid().ToString("N"));
Microsoft.DotNet.RemoteExecutor (2)
Program.cs (1)
104Directory.SetCurrentDirectory(Path.GetTempPath());
RemoteInvokeOptions.cs (1)
37public string ExceptionFile { get; } = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
Microsoft.DotNet.SignCheckLibrary (5)
Verification\LinuxPackageVerifier.cs (1)
36string tempDir = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
Verification\MachOVerifier.cs (1)
149string tempDir = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
Verification\PkgVerifier.cs (1)
37string extractionPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
Verification\RpmVerifier.cs (1)
27using var dataStream = File.Create(Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString()));
Verification\SignatureVerificationResult.cs (1)
189_tempPath = Path.Combine(Path.GetTempPath(), "SignCheck", Path.GetRandomFileName());
Microsoft.DotNet.SignTool (2)
src\VerifySignatures.cs (2)
44string tempDir = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 85string tempDir = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
Microsoft.DotNet.SignTool.Tests (2)
SignToolTests.cs (2)
266_tmpDir = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString()); 3165var tempDir = Path.GetTempPath();
Microsoft.Extensions.AI.Evaluation.Integration.Tests (1)
ResultsTests.cs (1)
33Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()),
Microsoft.Extensions.AI.Evaluation.Reporting.Tests (2)
DiskBased\DiskBasedResponseCacheTests.cs (1)
19string path = Path.Combine(Path.GetTempPath(), "M.E.AI.Eval.ResponseCacheTests", Path.GetRandomFileName());
DiskBased\DiskBasedResultStoreTests.cs (1)
18string path = Path.Combine(Path.GetTempPath(), "M.E.AI.Eval.ResultStoreTests", Path.GetRandomFileName());
Microsoft.Extensions.ApiDescription.Client.Tests (2)
GetOpenApiReferenceMetadataTest.cs (1)
200var outputPath = Path.Combine(Path.GetTempPath(), $"{className}.cs");
src\Tools\Shared\TestHelpers\TemporaryDirectory.cs (1)
21Root = Path.Combine(ResolveLinks(Path.GetTempPath()), "dotnet-tool-tests", Guid.NewGuid().ToString("N"));
Microsoft.Extensions.ApiDescription.Tool.Tests (9)
GetDocumentTests.cs (8)
25var outputPath = Directory.CreateDirectory(Path.Combine(Path.GetTempPath(), Path.GetRandomFileName())); 51var outputPath = Directory.CreateDirectory(Path.Combine(Path.GetTempPath(), Path.GetRandomFileName())); 77var outputPath = Directory.CreateDirectory(Path.Combine(Path.GetTempPath(), Path.GetRandomFileName())); 104var outputPath = Directory.CreateDirectory(Path.Combine(Path.GetTempPath(), Path.GetRandomFileName())); 138var outputPath = Directory.CreateDirectory(Path.Combine(Path.GetTempPath(), Path.GetRandomFileName())); 167var outputPath = Directory.CreateDirectory(Path.Combine(Path.GetTempPath(), Path.GetRandomFileName())); 194var outputPath = Directory.CreateDirectory(Path.Combine(Path.GetTempPath(), Path.GetRandomFileName())); 220var outputPath = Directory.CreateDirectory(Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()));
src\Tools\Shared\TestHelpers\TemporaryDirectory.cs (1)
21Root = Path.Combine(ResolveLinks(Path.GetTempPath()), "dotnet-tool-tests", Guid.NewGuid().ToString("N"));
Microsoft.Extensions.Caching.StackExchangeRedis.Tests (1)
Infrastructure\RedisTestConfig.cs (1)
155var tempPath = Path.GetTempPath();
Microsoft.Extensions.SecretManager.Tools.Tests (5)
SecretManagerTests.cs (2)
101: Path.GetTempPath(); 279: Path.GetTempPath();
src\Tools\Shared\TestHelpers\TemporaryDirectory.cs (1)
21Root = Path.Combine(ResolveLinks(Path.GetTempPath()), "dotnet-tool-tests", Guid.NewGuid().ToString("N"));
TemporaryFileProvider.cs (1)
14Root = Directory.CreateDirectory(Path.Combine(Path.GetTempPath(), "tmpfiles", Guid.NewGuid().ToString())).FullName;
UserSecretsTestFixture.cs (1)
57var projectPath = Directory.CreateDirectory(Path.Combine(Path.GetTempPath(), "usersecretstest", Guid.NewGuid().ToString()));
Microsoft.Gen.ComplianceReports.Unit.Tests (1)
GeneratorTests.cs (1)
140var projectDir = Path.GetTempPath();
Microsoft.Gen.MetadataExtractor.Unit.Tests (3)
GeneratorTests.cs (3)
128["build_property.MetadataReportOutputPath"] = Path.GetTempPath(), 134Assert.False(File.Exists(Path.Combine(Path.GetTempPath(), ReportFilename))); 168var projectDir = Path.GetTempPath();
Microsoft.Gen.MetricsReports.Unit.Tests (3)
GeneratorTests.cs (3)
89["build_property.MetricsReportOutputPath"] = Path.GetTempPath() 94Assert.False(File.Exists(Path.Combine(Path.GetTempPath(), ReportFilename))); 121var projectDir = Path.GetTempPath();
Microsoft.ML.AutoML.Samples (2)
Cifar10.cs (2)
11public static string cifar10FolderPath = Path.Combine(Path.GetTempPath(), "cifar10"); 12public static string cifar10ZipPath = Path.Combine(Path.GetTempPath(), "cifar10.zip");
Microsoft.ML.Core (3)
ComponentModel\AssemblyLoadingUtils.cs (1)
113return Path.GetFullPath(Path.Combine(Path.GetTempPath(), "MLNET_" + guid.ToString()));
Data\Repository.cs (1)
125Path.GetTempPath();
Environment\HostEnvironmentBase.cs (1)
330public string TempFilePath { get; set; } = System.IO.Path.GetTempPath();
Microsoft.ML.Maml (1)
MAML.cs (1)
137Path.GetTempPath(),
Microsoft.ML.TensorFlow.Tests (3)
TensorflowTests.cs (3)
36tempFolder = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 1752Assert.True(File.Exists(Path.Combine(Path.GetTempPath(), "MLNET", ImageClassificationTrainer.ModelFileName[options.Arch]))); 2039string tempDirectory = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
Microsoft.ML.Tests (4)
ImagesTests.cs (1)
1282string imageTempPath = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString() + extension);
OnnxConversionTest.cs (3)
647string modelPath = Path.GetTempPath() + Guid.NewGuid().ToString() + ".model.bin"; 648string onnxPath = Path.GetTempPath() + Guid.NewGuid().ToString() + ".model.onnx"; 649string onnxJsonPath = Path.GetTempPath() + Guid.NewGuid().ToString() + ".model.onnx.json";
Microsoft.ML.Tokenizers.Data.Tests (1)
test\Microsoft.ML.Tokenizers.Tests\Utils.cs (1)
53Path.Combine(Path.GetTempPath(), Path.ChangeExtension(Guid.NewGuid().ToString(), extension));
Microsoft.ML.Tokenizers.Tests (1)
Utils.cs (1)
53Path.Combine(Path.GetTempPath(), Path.ChangeExtension(Guid.NewGuid().ToString(), extension));
Microsoft.VisualBasic.Core (1)
Microsoft\VisualBasic\FileIO\SpecialDirectories.vb (1)
100Return GetDirectoryPath(IO.Path.GetTempPath(), SR.IO_SpecialDirectory_Temp)
Microsoft.VisualBasic.Forms.Tests (7)
System\Windows\Forms\FileLogTraceListenerTests.vb (1)
260fullLogFileName.Should.StartWith(Path.GetTempPath)
System\Windows\Forms\FileSystemProxyTests.vb (3)
181Dim expected As String = Path.GetTempPath.TrimEnd(Path.DirectorySeparatorChar) 182FileSystemUtils.NormalizePath(Path.GetTempPath).Should.Be(expected) 411temp.Should.Be(Path.GetTempPath)
System\Windows\Forms\VbFileCleanupTestBaseTests.vb (2)
15CreateTempDirectory().Should.StartWith(Path.GetTempPath) 28CreateTempFile(tempDirectory).Should.StartWith(Path.GetTempPath)
System\Windows\TestUtilities\VbFileCleanupTestBase.vb (1)
12Private Shared ReadOnly s_baseTempPath As String = Path.Join(Path.GetTempPath, "DownLoadTest9d9e3a8-7a46-4333-a0eb-4faf76994801")
Microsoft.VisualBasic.IntegrationTests (1)
InteractionTests.cs (1)
107string path = Path.Join(Path.GetTempPath(), GetUniqueName());
Microsoft.VisualBasic.Tests (1)
Microsoft\VisualBasic\Devices\AudioTests.cs (1)
52string location = Path.Join(Path.GetTempPath(), GetUniqueName());
Microsoft.VisualStudio.LanguageServices (5)
EditAndContinue\EditAndContinueFeedbackDiagnosticFileProvider.cs (1)
62_tempDir = Path.GetTempPath();
Telemetry\FileLogger.cs (1)
39_logFilePath = Path.Combine(Path.GetTempPath(), "Roslyn", "Telemetry", GetLogFileName());
Watson\FaultReporter.cs (2)
271var logPath = Path.Combine(Path.GetTempPath(), "VSLogs"); 287var logPath = Path.Combine(Path.GetTempPath(), "servicehub", "logs");
Workspace\SourceGeneratedFileManager.cs (1)
94_temporaryDirectory = PathUtilities.EnsureTrailingSeparator(Path.Combine(Path.GetTempPath(), "VSGeneratedDocuments"));
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (6)
ProjectSystemShim\CPS\CSharpCompilerOptionsTests.cs (2)
94var expectedNewBinPath = Path.Combine(Path.GetTempPath(), newBinPath); 101var absoluteObjPath = Path.GetFullPath(Path.Combine(Path.GetTempPath(), relativeObjPath));
ProjectSystemShim\CSharpHelpers.cs (4)
33var projectBinPath = Path.GetTempPath(); 56var projectFilePath = Path.GetTempPath(); 64var projectFilePath = Path.GetTempPath(); 136baseDirectory = Path.GetTempPath();
Microsoft.VisualStudio.LanguageServices.Implementation (2)
ProjectSystem\CPS\CPSProject_IWorkspaceProjectContext.cs (2)
117: Path.GetTempPath(); 194: Path.GetTempPath();
PresentationCore (1)
src\Microsoft.DotNet.Wpf\src\Shared\System\IO\FileHelper.cs (1)
97string folderPath = Path.GetTempPath();
PresentationFramework (1)
System\Windows\Documents\Speller.cs (1)
1557tempFolder = System.IO.Path.GetTempPath();
Replay (2)
Replay.cs (1)
59outputDirectory = Path.Combine(Path.GetTempPath(), "replay");
src\Compilers\Shared\BuildServerConnection.cs (1)
656var tempPath = Path.GetTempPath();
Roslyn.VisualStudio.Next.UnitTests (2)
Remote\RemoteHostClientServiceFactoryTests.cs (1)
80(service, cancellationToken) => service.UpdateContinuouslyAsync("emptySource", Path.GetTempPath(), cancellationToken),
Services\SolutionServiceTests.cs (1)
349var configPath = Path.Combine(Path.GetTempPath(), ".editorconfig");
RulesetToEditorconfigConverter.UnitTests (1)
RulesetToEditorconfigConverterTests.cs (1)
18var directory = Directory.CreateDirectory(Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()));
System.Formats.Tar (2)
System\Formats\Tar\TarHeader.Write.cs (1)
1217ReadOnlySpan<char> tmp = Path.TrimEndingDirectorySeparator(Path.GetTempPath());
System\Formats\Tar\TarHelpers.Unix.cs (1)
25string filename = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
System.IO.MemoryMappedFiles (1)
System\IO\MemoryMappedFiles\MemoryMappedFile.Unix.cs (1)
316string path = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString("N"));
System.IO.Pipes (1)
System\IO\Pipes\PipeStream.Unix.cs (1)
33private static readonly string s_pipePrefix = Path.Combine(Path.GetTempPath(), "CoreFxPipe_");
System.Private.CoreLib (2)
src\libraries\System.Private.CoreLib\src\System\IO\Directory.Unix.cs (1)
31string tempPath = Path.GetTempPath();
src\libraries\System.Private.CoreLib\src\System\IO\Path.Unix.cs (1)
102string tempPath = Path.GetTempPath();
System.Private.Windows.Core.TestUtilities (2)
FileCleanupTestBase.cs (1)
19_testDirectory = Path.Join(Path.GetTempPath(), GetUniqueName());
TempFile.cs (1)
84return IO.Path.Join(IO.Path.GetTempPath(), file);
System.Windows.Forms.Design.Tests (2)
System\Resources\Tools\StronglyTypedResourceBuilderTests.cs (2)
619string expectedUrl = $"{Path.GetTempPath()}testurl1"; 643string changedUrl = $"{Path.GetTempPath()}testurl2";
System.Windows.Forms.Primitives (1)
System\Windows\Forms\Internals\ThemingScope.cs (1)
84string tempFilePath = Path.Join(Path.GetTempPath(), Path.GetRandomFileName());
System.Windows.Forms.Primitives.Tests (1)
Interop\Shell32\ShellItemTests.cs (1)
14string path = Path.GetTempPath();
System.Windows.Forms.Tests (2)
System\Windows\Forms\InputLanguageTests.cs (2)
225string file = Path.Join(Path.GetTempPath(), $"install-language-{languageTag}.ps1"); 238string file = Path.Join(Path.GetTempPath(), $"uninstall-language-{languageTag}.ps1");
System.Windows.Forms.UI.IntegrationTests (1)
OpenFileDialogTests.cs (1)
28dialog.InitialDirectory = Path.GetTempPath();
Templates.Blazor.WebAssembly.Auth.Tests (1)
src\Shared\E2ETesting\BrowserFixture.cs (1)
259return Path.Combine(Path.GetTempPath(), "BrowserFixtureUserProfiles", context);
Templates.Blazor.WebAssembly.Tests (1)
src\Shared\E2ETesting\BrowserFixture.cs (1)
259return Path.Combine(Path.GetTempPath(), "BrowserFixtureUserProfiles", context);
Templates.Mvc.Tests (1)
src\Shared\E2ETesting\BrowserFixture.cs (1)
259return Path.Combine(Path.GetTempPath(), "BrowserFixtureUserProfiles", context);
Templates.Tests (1)
src\Shared\E2ETesting\BrowserFixture.cs (1)
259return Path.Combine(Path.GetTempPath(), "BrowserFixtureUserProfiles", context);
vbc (2)
src\Compilers\Shared\BuildClient.cs (1)
114var tempDir = Path.GetTempPath();
src\Compilers\Shared\BuildServerConnection.cs (1)
656var tempPath = Path.GetTempPath();
VBCSCompiler (3)
src\Compilers\Server\VBCSCompiler\CompilerRequestHandler.cs (1)
75AnalyzerAssemblyLoader = Microsoft.CodeAnalysis.AnalyzerAssemblyLoader.CreateNonLockingLoader(Path.Combine(Path.GetTempPath(), "VBCSCompiler", "AnalyzerAssemblyLoader"));
src\Compilers\Shared\BuildClient.cs (1)
114var tempDir = Path.GetTempPath();
src\Compilers\Shared\BuildServerConnection.cs (1)
656var tempPath = Path.GetTempPath();
VBCSCompiler.UnitTests (6)
CompilerServerTests.cs (1)
203tempDir: Path.GetTempPath());
ServerUtil.cs (2)
45tempDirectory ?? Path.GetTempPath(), 52tempDirectory ?? Path.GetTempPath(),
TouchedFileLoggingTests.cs (2)
69new BuildPaths(clientDirectory, _baseDirectory, RuntimeEnvironment.GetRuntimeDirectory(), Path.GetTempPath()), 120new BuildPaths(clientDirectory, _baseDirectory, RuntimeEnvironment.GetRuntimeDirectory(), Path.GetTempPath()),
VBCSCompilerServerTests.cs (1)
40var baseDirectory = Path.Combine(Path.GetTempPath(), TestBase.GetUniqueName());