558 references to GetTempPath
AnalyzerRunner (1)
PersistentStorageConfiguration.cs (1)
28var location = Path.Combine(Path.GetTempPath(), "RoslynTests", "AnalyzerRunner", "temp-db");
Aspire.Cli.Tests (2)
TestServices\TestProjectLocator.cs (1)
25var fakeProjectFilePath = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString(), "AppHost.csproj");
Utils\TemporaryRepo.cs (1)
60var tempPath = Path.GetTempPath();
Aspire.Dashboard.Tests (3)
Integration\StartupTests.cs (3)
137var configFilePath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 236var fileConfigDirectory = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 546var 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)
127bindMountPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
Aspire.Hosting.Kafka.Tests (1)
KafkaFunctionalTests.cs (1)
138bindMountPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
Aspire.Hosting.Keycloak.Tests (2)
KeycloakPublicApiTests.cs (2)
155var tempDirectory = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 178var tempDirectory = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
Aspire.Hosting.Milvus.Tests (1)
MilvusFunctionalTests.cs (1)
96bindMountPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
Aspire.Hosting.MongoDB.Tests (3)
MongoDbFunctionalTests.cs (3)
136bindMountPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 258var bindMountPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 356var initFilesPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
Aspire.Hosting.MySql.Tests (2)
MySqlFunctionalTests.cs (2)
305var bindMountPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 392var initFilesPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
Aspire.Hosting.PostgreSQL.Tests (3)
PostgresFunctionalTests.cs (3)
225bindMountPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 368var bindMountPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 456var initFilesPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
Aspire.Hosting.Python.Tests (1)
AddPythonAppTests.cs (1)
248var projectDirectory = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
Aspire.Hosting.Qdrant.Tests (1)
QdrantFunctionalTests.cs (1)
116bindMountPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
Aspire.Hosting.Redis.Tests (1)
RedisFunctionalTests.cs (1)
278var bindMountPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
Aspire.Hosting.Seq.Tests (1)
SeqFunctionalTests.cs (1)
97bindMountPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
Aspire.Hosting.SqlServer.Tests (1)
SqlServerFunctionalTests.cs (1)
155bindMountPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
Aspire.Hosting.Tests (10)
AspireStoreTests.cs (4)
35builder.Configuration[AspireStore.AspireStorePathKeyName] = Path.GetTempPath(); 42Assert.Contains(Path.GetTempPath(), path); 59builder.Configuration[AspireStore.AspireStorePathKeyName] = Path.GetTempPath(); 133builder.Configuration[AspireStore.AspireStorePathKeyName] = Path.GetTempPath();
ManifestGenerationTests.cs (1)
537var manifestPath = Path.Combine(Path.GetTempPath(), "tempmanifests", Guid.NewGuid().ToString(), "manifest.json");
ProjectResourceTests.cs (1)
45var projectDirectoryPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
Schema\SchemaTests.cs (3)
49var tempPath = Path.GetTempPath(); 61var tempPath = Path.GetTempPath(); 79var tempPath = Path.GetTempPath();
Utils\DockerfileUtils.cs (1)
40var tempContextPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
Aspire.Hosting.Valkey.Tests (1)
ValkeyFunctionalTests.cs (1)
83bindMountPath = 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)
104debugPath ??= Path.Combine(Path.GetTempPath(), $"BuildValidator");
csc (2)
src\Compilers\Shared\BuildClient.cs (1)
114var tempDir = Path.GetTempPath();
src\Compilers\Shared\BuildServerConnection.cs (1)
655var 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)
347var 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.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.Tests (13)
WebApplicationTests.cs (13)
389var contentRoot = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 409var contentRoot = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 466var contentRoot = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString()); 500var contentRoot = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 529var contentRoot = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 571var contentRoot = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 786var contentRoot = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 829var contentRoot = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 878var contentRoot = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 1077var contentRoot = Path.GetTempPath().ToString(); 2247var contentRoot = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 2279ContentRootPath = Path.GetTempPath() 2298Assert.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 (3)
Evaluation\Expander\WellKnownFunctions.cs (1)
124returnVal = Path.GetTempPath();
FileUtilities.cs (1)
77string pathWithUpperCase = Path.Combine(Path.GetTempPath(), $"CASESENSITIVETEST{Guid.NewGuid():N}");
TempFileUtilities.cs (1)
46string basePath = Path.Combine(Path.GetTempPath(), msbuildTempFolder);
Microsoft.Build.BuildCheck.UnitTests (1)
TestAssemblyInfo.cs (1)
70string newTempPath = Path.Combine(Path.GetTempPath(), subdirectory);
Microsoft.Build.CommandLine.UnitTests (5)
TestAssemblyInfo.cs (1)
70string newTempPath = Path.Combine(Path.GetTempPath(), subdirectory);
XMake_Tests.cs (4)
1102string tempdir = Path.GetTempPath(); 1140string tempdir = Path.GetTempPath(); 1370directory = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString("N")); 2865dest = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString("N"));
Microsoft.Build.Engine.OM.UnitTests (22)
Construction\ProjectFormatting_Tests.cs (2)
409directory = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString()); 464directory = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString());
Construction\ProjectImportElement_Tests.cs (1)
240string tempPath = Path.GetTempPath();
Construction\ProjectRootElement_Tests.cs (2)
634directory = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString("N")); 662Directory.SetCurrentDirectory(Path.GetTempPath()); // should be used for project.DirectoryPath; it must exist
Definition\Project_Tests.cs (4)
206string file = Path.GetTempPath() + Path.DirectorySeparatorChar + Guid.NewGuid().ToString("N"); 1730testFileRoot = Path.Combine(Path.GetTempPath(), "foodir"); 2490directory = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString()); 2596string myTempDir = Path.Combine(Path.GetTempPath() + "MyTempDir");
Definition\ProjectCollection_Tests.cs (2)
1239collection.AddToolset(new Toolset("testTools", Path.GetTempPath(), collection, Path.GetTempPath()));
Definition\ProjectItem_Tests.cs (3)
350directory = Path.Combine(Path.GetTempPath(), "a"); 397directory = Path.Combine(Path.GetTempPath(), "a"); 1985string projectDirectory = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
FileUtilities.cs (1)
77string pathWithUpperCase = Path.Combine(Path.GetTempPath(), $"CASESENSITIVETEST{Guid.NewGuid():N}");
Instance\ProjectInstance_Tests.cs (5)
285directory = Path.Combine(Path.GetTempPath(), "WildcardsInsideTargets"); 420projA.FullPath = Path.Combine(Path.GetTempPath(), "a.proj"); 421projB.FullPath = Path.Combine(Path.GetTempPath(), "b.proj"); 456projA.FullPath = Path.Combine(Path.GetTempPath(), "a.proj"); 457projB.FullPath = Path.Combine(Path.GetTempPath(), "b.proj");
TempFileUtilities.cs (1)
46string basePath = Path.Combine(Path.GetTempPath(), msbuildTempFolder);
TestAssemblyInfo.cs (1)
70string newTempPath = Path.Combine(Path.GetTempPath(), subdirectory);
Microsoft.Build.Engine.UnitTests (47)
BackEnd\BuildManager_Tests.cs (1)
350string shutdownProjectDirectory = Path.Combine(Path.GetTempPath(), String.Format(CultureInfo.InvariantCulture, "VSNodeShutdown_{0}_UnitTest", Process.GetCurrentProcess().Id));
BackEnd\IntrinsicTask_Tests.cs (1)
3332string tempPath = Path.GetTempPath();
BackEnd\LoggingServicesLogMethod_Tests.cs (1)
442string tempPath = Path.GetTempPath();
BackEnd\MSBuild_Tests.cs (1)
45Directory.SetCurrentDirectory(Path.GetTempPath());
BackEnd\RequestBuilder_Tests.cs (1)
288return Path.GetTempPath() + "testProject" + configId + ".proj";
BuildEnvironmentHelper_Tests.cs (2)
405var entryProcess = Path.Combine(Path.GetTempPath(), "foo.exe"); 517TempFolderRoot = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString("N"));
ConsoleLogger_Tests.cs (1)
375string tempProjectDir = Path.Combine(Path.GetTempPath(), "EmptyTargetsOnDetailedButNotNotmal");
Construction\ElementLocation_Tests.cs (2)
105file = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 140file = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
Construction\SolutionFile_OldParser_Tests.cs (2)
689string proj1Path = Path.Combine(Path.GetTempPath(), "someproj.etp"); 803sp.SolutionFileDirectory = Path.GetTempPath();
Definition\ToolsetConfigurationReaderTestHelper.cs (1)
32s_testFolderFullPath = Path.Combine(Path.GetTempPath(), "configFileTests");
EscapingInProjects_Tests.cs (1)
638string path = Path.Combine(Path.GetTempPath(), projectRelativePath);
Evaluation\Evaluator_Tests.cs (25)
332string tempPath = Path.GetTempPath(); 461string tempPath = Path.GetTempPath(); 533string tempPath = Path.GetTempPath(); 580string tempPath = Path.GetTempPath(); 622string tempPath = Path.GetTempPath(); 668string tempPath = Path.GetTempPath(); 714string tempPath = Path.GetTempPath(); 758string tempPath = Path.GetTempPath(); 804string tempPath = Path.GetTempPath(); 1156directory = Path.Combine(Path.GetTempPath(), "fol$der"); 1157directory2 = Path.Combine(Path.GetTempPath(), "fol$der" + Path.DirectorySeparatorChar + "fol$der2"); 2272string directory = Path.Combine(Path.GetTempPath(), "ImportWildcardsRelative"); 2284string directory = Path.Combine(Path.GetTempPath(), "ImportWildcardsRelative2"); 2299string directory = Path.Combine(Path.GetTempPath(), "ImportWildcardsRelative3"); 2321string directory = Path.Combine(Path.GetTempPath(), "ImportWildcardsFullPath"); 3422string projectDirectory = Path.Combine(Path.GetTempPath(), "VerifyPropertySetInImportStillOverrides"); 3483string projectDirectory = Path.Combine(Path.GetTempPath(), "VerifyTreatAsLocalPropertyInImportDoesntAffectParentProjectAboveIt"); 3543string projectDirectory = Path.Combine(Path.GetTempPath(), "VerifyTreatAsLocalPropertyInImportAffectsParentProjectBelowIt"); 3615string projectDirectory = Path.Combine(Path.GetTempPath(), "VerifyTreatAsLocalPropertyUnionBetweenImports"); 3688string projectDirectory = Path.Combine(Path.GetTempPath(), "VerifyDuplicateTreatAsLocalProperty"); 3753string projectDirectory = Path.Combine(Path.GetTempPath(), "VerifyGlobalPropertyPassedToP2P"); 3815string projectDirectory = Path.Combine(Path.GetTempPath(), "VerifyLocalPropertyPropagatesIfExplicitlyPassedToP2P"); 4400string projectDirectory = Path.Combine(Path.GetTempPath(), "VerifyDTDProcessingIsDisabled"); 4553string projectDirectory = Path.Combine(Path.GetTempPath(), "ThrownInvalidProjectExceptionProperlyHandled"); 5086string tempPath = Path.GetTempPath();
Evaluation\Preprocessor_Tests.cs (1)
707directory = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString());
FileUtilities_Tests.cs (4)
535Assert.True(FileUtilities.FileOrDirectoryExistsNoThrow(Path.GetTempPath())); 756Assert.StartsWith(Path.GetTempPath(), path); 778Assert.StartsWith(Path.GetTempPath(), path); 824Assert.StartsWith(Path.GetTempPath(), path);
InvalidProjectFileException_Tests.cs (2)
30string file = Path.GetTempPath() + Guid.NewGuid().ToString("N"); 62string file = Path.GetTempPath() + Guid.NewGuid().ToString("N");
TestAssemblyInfo.cs (1)
70string newTempPath = Path.Combine(Path.GetTempPath(), subdirectory);
Microsoft.Build.Framework.UnitTests (1)
TestAssemblyInfo.cs (1)
70string newTempPath = Path.Combine(Path.GetTempPath(), subdirectory);
Microsoft.Build.Tasks.CodeAnalysis (2)
src\Compilers\Core\MSBuildTask\ManagedCompiler.cs (1)
530string? tempDirectory = Path.GetTempPath();
src\Compilers\Shared\BuildServerConnection.cs (1)
655var tempPath = Path.GetTempPath();
Microsoft.Build.Tasks.CodeAnalysis.Sdk (2)
src\Compilers\Core\MSBuildTask\ManagedCompiler.cs (1)
530string? tempDirectory = Path.GetTempPath();
src\Compilers\Shared\BuildServerConnection.cs (1)
655var tempPath = Path.GetTempPath();
Microsoft.Build.Tasks.Core (3)
FileUtilities.cs (1)
77string pathWithUpperCase = Path.Combine(Path.GetTempPath(), $"CASESENSITIVETEST{Guid.NewGuid():N}");
ManifestUtil\XmlUtil.cs (1)
151if (!uri.LocalPath.StartsWith(Path.GetTempPath(), StringComparison.Ordinal))
TempFileUtilities.cs (1)
46string basePath = Path.Combine(Path.GetTempPath(), msbuildTempFolder);
Microsoft.Build.Tasks.UnitTests (146)
AssemblyDependency\ResolveAssemblyReferenceCacheSerialization.cs (1)
27var tempPath = Path.GetTempPath();
AssemblyDependency\ResolveAssemblyReferenceTestFixture.cs (6)
382Path.Combine(Path.GetTempPath(), @"RawFileNameRelative\System.Xml.dll"), 383Path.Combine(Path.GetTempPath(), @"RelativeAssemblyFiles\System.Xml.dll"), 887Path.GetTempPath() 1203if (String.Equals(path, Path.Combine(Path.GetTempPath(), @"RawFileNameRelative\System.Xml.dll"), StringComparison.OrdinalIgnoreCase)) 1208if (String.Equals(path, Path.Combine(Path.GetTempPath(), @"RelativeAssemblyFiles\System.Xml.dll"), StringComparison.OrdinalIgnoreCase)) 2989string tempPath = Path.GetTempPath();
AssignLinkMetadata_Tests.cs (2)
20private readonly string _defaultItemSpec = Path.Combine(Path.GetTempPath(), "SubFolder", "a.cs"); 179FullPath = Path.Combine(Path.GetTempPath(), "a.proj")
Copy_Tests.cs (16)
952string destinationFolder = Path.Combine(Path.GetTempPath(), "2A333ED756AF4dc392E728D0F874A398"); 1304string sourceFile = Path.GetTempPath(); 1522string destinationFile = Path.GetTempPath(); 1568string temp = Path.GetTempPath(); 1656string temp = Path.GetTempPath(); 1779string temp = Path.GetTempPath(); 1844string temp = Path.GetTempPath(); 1914string sourceFileEscaped = Path.GetTempPath() + "a%253A_" + Guid.NewGuid().ToString("N") + ".txt"; 1916string temp = Path.GetTempPath(); 1976string tempPath = Path.GetTempPath(); 2033string tempPath = Path.GetTempPath(); 2110string temp = Path.GetTempPath(); 2548string temp = Path.GetTempPath(); 2722string temp = Path.GetTempPath(); 2804string temp = Path.GetTempPath(); 2870string temp = Path.GetTempPath();
Exec_Tests.cs (7)
63string tempPath = Path.GetTempPath(); 121string tempPath = Path.GetTempPath(); 335string newTmp = Path.Combine(Path.GetTempPath(), directoryWithAmpersand); 372string newTmp = Path.Combine(Path.GetTempPath(), directoryWithAmpersand); 447string newTmp = Path.Combine(Path.GetTempPath(), directoryWithAmpersand); 579string folder = Path.Combine(Path.GetTempPath(), includeNonAnsiInCommand ? nonAnsiCharacters : ansiCharacters); 1006string tempPath = Path.GetTempPath();
FileStateTests.cs (12)
95var state = new FileState(Path.GetTempPath()); 333Assert.Equal(new FileInfo(Path.GetTempPath()).Exists, new FileState(Path.GetTempPath()).FileExists); 334Assert.True(new FileState(Path.GetTempPath()).IsDirectory); 340Assert.Equal(new FileInfo(Path.GetTempPath()).IsReadOnly, new FileState(Path.GetTempPath()).IsReadOnly); 346Assert.Equal(new FileInfo(Path.GetTempPath()).LastWriteTime, new FileState(Path.GetTempPath()).LastWriteTime); 352Assert.Equal(new FileInfo(Path.GetTempPath()).LastWriteTimeUtc, new FileState(Path.GetTempPath()).LastWriteTimeUtcFast); 358Helpers.VerifyAssertThrowsSameWay(delegate () { var x = new FileInfo(Path.GetTempPath()).Length; }, delegate () { var x = new FileState(Path.GetTempPath()).Length; });
GetInstalledSDKLocations_Tests.cs (2)
47string tempPath = Path.Combine(Path.GetTempPath(), "FakeSDKDirectory"); 115string tempPath = Path.Combine(Path.GetTempPath(), "FakeSDKDirectory2");
GetSDKReference_Tests.cs (3)
50string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "FakeSDKForReferenceAssemblies"); 154string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "FakeSDKForReferenceAssemblies"); 190private readonly string _cacheDirectory = Path.Combine(Path.GetTempPath(), "GetSDKReferenceFiles");
MakeDir_Tests.cs (5)
24string temp = Path.GetTempPath(); 65string temp = Path.GetTempPath(); 128string temp = Path.GetTempPath(); 174string temp = Path.GetTempPath(); 233string temp = Path.GetTempPath();
Move_Tests.cs (4)
419string temp = Path.GetTempPath(); 635string temp = Path.GetTempPath(); 680string temp = Path.GetTempPath(); 734string temp = Path.GetTempPath();
MSBuild_Tests.cs (1)
47Directory.SetCurrentDirectory(Path.GetTempPath());
ResolveCodeAnalysisRuleSet_Tests.cs (7)
78string codeAnalysisRuleSet = Path.Combine(Path.GetTempPath(), @"CodeAnalysis.ruleset"); 122string projectDirectory = Path.GetTempPath(); 150string projectDirectory = Path.GetTempPath(); 173var directory = Path.GetTempPath(); 201string directory = Path.GetTempPath(); 225string projectDirectory = Path.GetTempPath(); 250string projectDirectory = Path.GetTempPath();
ResolveSDKReference_Tests.cs (45)
123string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "TestMaxPlatformVersionWithTargetFrameworkVersion"); 462string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "VerifyDependsOnWarningFromManifest"); 577string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "Prefer32bit1"); 632string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "Prefer32bit2"); 690string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "Prefer32bit3"); 745string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "Prefer32bit4"); 800string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "Prefer32bit5"); 855string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "Prefer32bit6"); 912string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "Prefer32bit7"); 967string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "Prefer32bit8"); 1021string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "Prefer32bit9"); 1491string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "SDKFoundButBadlyFormattedSDKManifestWarnings"); 1550string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "SDKFoundButBadlyFormattedSDKManifestErrors"); 1601string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "TestMaxPlatformVersionWithTargetFrameworkVersion"); 1707string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "EmptySDKManifestAttributes"); 1792string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "OverrideManifestAttributes"); 1890string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "GoodManifestMatchingConfigAndArch"); 1963string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "GoodManifestMatchingConfigOnly"); 2032string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "NoCopyOnPlatformIdentityFound"); 2099string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "GoodManifestMatchingConfigOnly"); 2173string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "ManifestOnlyHasArmLocation"); 2241string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "ManifestArmLocationWithOthers"); 2312string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "MatchNoNamesButNamesExistWarning"); 2384string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "MatchNoNamesButNamesExistError"); 2453string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "SingleSupportedArchitectureMatchesProject"); 2526string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "ProductFamilySetInManifest"); 2591string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "ProductFamilySetInManifestAndMetadata"); 2658string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "SupportsMultipleVersionsNotInManifest"); 2722string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "SupportsMultipleVersionsBadMetadata"); 2790string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "ConflictsBetweenSameProductFamilySameName"); 2888string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "ConflictsBetweenSameProductFamilyDiffName"); 2986string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "ConflictsBetweenSameProductFamilyDiffName"); 3099string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "ConflictsBetweenSameSDKName"); 3205string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "SupportsMultipleVersionsVerifyManifestReading"); 3279string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "OverrideManifestWithMetadata"); 3356string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "OverrideManifestWithMetadataButMetadataDoesNotMatch"); 3422string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "OverrideManifestWithMetadata"); 3500string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "SingleSupportedArchitectureDoesNotMatchProject"); 3564string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "MultipleSupportedArchitectureMatchesProject"); 3636string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "MultipleSupportedArchitectureMatchesProject"); 3704string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "GatherSDKOutputGroupsWithFramework"); 3847string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "GatherSDKOutputGroupsWithFramework"); 3991string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "GatherSDKOutputGroupsTargetArchitectureDoesNotExists"); 4100string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "CheckDefaultingOfTargetConfigAndArchitecture"); 4220string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "CheckDefaultingOfTargetConfigAndArchitecture");
ResourceHandling\GenerateResource_Tests.cs (5)
112string expectedOutFile0 = Path.Combine(Path.GetTempPath(), Path.ChangeExtension(resxFile0, ".resources")); 113string expectedOutFile1 = Path.Combine(Path.GetTempPath(), "resx1.foo.resources"); 114string expectedOutFile2 = Path.Combine(Path.GetTempPath(), Utilities.GetTempFileName(".resources")); 115string expectedOutFile3 = Path.Combine(Path.GetTempPath(), Utilities.GetTempFileName(".resources")); 2992dir = Path.Combine(Path.GetTempPath(), "directory");
TestAssemblyInfo.cs (1)
70string newTempPath = Path.Combine(Path.GetTempPath(), subdirectory);
WriteCodeFragment_Tests.cs (25)
84task.OutputDirectory = new TaskItem(Path.GetTempPath()); 89string file = Path.Combine(Path.GetTempPath(), "CombineFileDirectory.tmp"); 175string folder = Path.Combine(Path.GetTempPath(), "foo" + Path.DirectorySeparatorChar); 197string file = Path.Combine(Path.GetTempPath(), "NoAttributesShouldEmitNoFile.tmp"); 224string file = Path.Combine(Path.GetTempPath(), "NoAttributesShouldEmitNoFile.tmp"); 286string file = Path.Combine(Path.GetTempPath(), "OneAttribute.tmp"); 325task.OutputDirectory = new TaskItem(Path.GetTempPath()); 351task.OutputDirectory = new TaskItem(Path.GetTempPath()); 377task.OutputDirectory = new TaskItem(Path.GetTempPath()); 382Assert.Equal(Path.GetTempPath(), task.OutputFile.ItemSpec.Substring(0, Path.GetTempPath().Length)); 415string file = Path.Combine(Path.GetTempPath(), "OneAttribute.tmp"); 458task.OutputDirectory = new TaskItem(Path.GetTempPath()); 480task.OutputDirectory = new TaskItem(Path.GetTempPath()); 504task.OutputDirectory = new TaskItem(Path.GetTempPath()); 528task.OutputDirectory = new TaskItem(Path.GetTempPath()); 560task.OutputDirectory = new TaskItem(Path.GetTempPath()); 596task.OutputDirectory = new TaskItem(Path.GetTempPath()); 628task.OutputDirectory = new TaskItem(Path.GetTempPath()); 651task.OutputDirectory = new TaskItem(Path.GetTempPath()); 674task.OutputDirectory = new TaskItem(Path.GetTempPath()); 699task.OutputDirectory = new TaskItem(Path.GetTempPath()); 732task.OutputDirectory = new TaskItem(Path.GetTempPath()); 1071task.OutputDirectory = new TaskItem(Path.GetTempPath()); 1097return CreateTask(language, new TaskItem(Path.GetTempPath()), null, attributes);
XmlPeek_Tests.cs (1)
363string dir = Path.Combine(Path.GetTempPath(), DateTime.Now.Ticks.ToString());
XmlPoke_Tests.cs (1)
333string dir = Path.Combine(Path.GetTempPath(), DateTime.Now.Ticks.ToString());
XslTransformation_Tests.cs (1)
1108dir = Path.Combine(Path.GetTempPath(), DateTime.Now.Ticks.ToString());
ZipDirectory_Tests.cs (1)
164SourceDirectory = new TaskItem(Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString("N")))
Microsoft.Build.UnitTests.Shared (6)
DummyMappedDrive.cs (1)
22_mappedPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
ObjectModelHelpers.cs (2)
843s_tempProjectDir = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString("N")); 1629return Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString());
TestEnvironment.cs (3)
143WithInvariant(new StringInvariant("Path.GetTempPath()", Path.GetTempPath)); 491files.AddRange(Directory.GetFiles(Path.GetTempPath(), MSBuildLogFiles)); 755System.IO.Path.GetFullPath(Path).ShouldNotBe(System.IO.Path.GetFullPath(System.IO.Path.GetTempPath()));
Microsoft.Build.Utilities.Core (2)
FileUtilities.cs (1)
77string pathWithUpperCase = Path.Combine(Path.GetTempPath(), $"CASESENSITIVETEST{Guid.NewGuid():N}");
TempFileUtilities.cs (1)
46string basePath = Path.Combine(Path.GetTempPath(), msbuildTempFolder);
Microsoft.Build.Utilities.UnitTests (33)
TestAssemblyInfo.cs (1)
70string newTempPath = Path.Combine(Path.GetTempPath(), subdirectory);
ToolLocationHelper_Tests.cs (32)
70string tempDirectory = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 78string tempDirectory = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 102string tempDirectory = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 170string platformRootFolder = Path.Combine(Path.GetTempPath(), @"MockSDK"); 231string tempDirectory = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 256string tempDirectory = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 281string tempDirectory = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 307string tempDirectory = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 335string tempDirectory = Path.Combine(Path.GetTempPath(), "VGPTDNFSFN40"); 402string tempPath = Path.GetTempPath(); 421string tempPath = Path.GetTempPath(); 454string tempDirectory = Path.Combine(Path.GetTempPath(), "VGPTDNFSF40"); 606string tempPath = Path.GetTempPath(); 1396string tempDirectory = Path.Combine(Path.GetTempPath(), "ChainReferenceAssembliesRedistExistsChain"); 1438string tempDirectory = Path.Combine(Path.GetTempPath(), "ChainReferenceAssembliesRedistExistsNoInclude"); 1468string tempDirectory = Path.Combine(Path.GetTempPath(), "ChainReferenceAssembliesRedistExistsNoInclude"); 1498string tempDirectory = Path.Combine(Path.GetTempPath(), "ChainReferenceAssembliesRedistExistsNoFileList"); 1527string tempDirectory = Path.Combine(Path.GetTempPath(), "ChainReferenceAssembliesRedistExistsBadFile"); 1558string tempDirectory = Path.Combine(Path.GetTempPath(), "ChainReferenceAssembliesRedistPointsToInvalidInclude"); 1594string tempDirectory = Path.Combine(Path.GetTempPath(), "ChainReferenceAssembliesRedistInvalidPathChars"); 1628string tempDirectory = Path.Combine(Path.GetTempPath(), "ChainReferenceAssembliesRedistPathTooLong"); 1671string tempDirectory = Path.Combine(Path.GetTempPath(), "GetPathToReferenceAssembliesWithRootGoodWithChain"); 1736string tempDirectory = Path.Combine(Path.GetTempPath(), "DisplayNameGeneration"); 1793string tempDirectory = Path.Combine(Path.GetTempPath(), "GetPathToReferenceAssembliesWithRootCircularReference"); 3130string tmpRootDirectory = Path.GetTempPath(); 3281string manifestPath = Path.Combine(Path.GetTempPath(), "ManifestTmp"); 3416string manifestPath = Path.Combine(Path.GetTempPath(), "ManifestTmp"); 3546string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "VerifyGetInstalledSDKLocations"); 3615string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "VerifyGetInstalledSDKLocations2"); 4110string testDirectoryRoot = Path.Combine(Path.GetTempPath(), "VerifyFindRootFolderWhereAllFilesExist"); 4422string tempPath = Path.Combine(Path.GetTempPath(), "FakeSDKDirectory"); 4545string tempPath = Path.Combine(Path.GetTempPath(), "FakeSDKDirectory2");
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)
666buffer, 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)
52private 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)
134? Path.GetTempPath()
Program.cs (1)
327return 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)
1070var 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)
278var path = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName() + ".dll");
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (2)
MockVisualBasicCompiler.vb (2)
26MyClass.New(responseFile, CreateBuildPaths(baseDirectory, Path.GetTempPath()), args, analyzer) 34MyClass.New(responseFile, CreateBuildPaths(workingDirectory, Path.GetTempPath()), args, analyzers, generators, additionalReferences)
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (1)
VisualBasicCommandLineArgumentsFactoryServiceTests.vb (1)
11Private Shared ReadOnly s_directory As String = Path.GetTempPath()
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)
69Path.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)
356.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.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 (1)
Verification\SignatureVerificationResult.cs (1)
189_tempPath = Path.Combine(Path.GetTempPath(), "SignCheck", Path.GetRandomFileName());
Microsoft.DotNet.SignTool.Tests (2)
SignToolTests.cs (2)
266_tmpDir = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString()); 2983var 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)
35tempFolder = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 1749Assert.True(File.Exists(Path.Combine(Path.GetTempPath(), "MLNET", ImageClassificationTrainer.ModelFileName[options.Arch]))); 2036string 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 (1)
Microsoft\VisualBasic\Logging\FileLogTraceListener.vb (1)
141basePath = Path.GetTempPath()
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.Test.Utilities2 (2)
ProjectSystemShim\Framework\TestEnvironment.vb (1)
150Dim dir = Path.Combine(Path.GetTempPath, Guid.NewGuid().ToString("N"))
ProjectSystemShim\VisualBasicHelpers\VisualBasicHelpers.vb (1)
13Dim projectBinPath = Path.GetTempPath()
Microsoft.VisualStudio.LanguageServices.UnitTests (1)
GenerateType\GenerateTypeViewModelTests.vb (1)
752Dim projectRootFolder = Path.GetTempPath()
MSBuild (2)
FileUtilities.cs (1)
77string pathWithUpperCase = Path.Combine(Path.GetTempPath(), $"CASESENSITIVETEST{Guid.NewGuid():N}");
TempFileUtilities.cs (1)
46string basePath = Path.Combine(Path.GetTempPath(), msbuildTempFolder);
MSBuildTaskHost (2)
FileUtilities.cs (2)
52internal static string TempFileDirectory => Path.GetTempPath(); 77string pathWithUpperCase = Path.Combine(Path.GetTempPath(), $"CASESENSITIVETEST{Guid.NewGuid():N}");
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)
1560tempFolder = System.IO.Path.GetTempPath();
Replay (2)
Replay.cs (1)
59outputDirectory = Path.Combine(Path.GetTempPath(), "replay");
src\Compilers\Shared\BuildServerConnection.cs (1)
655var 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)
357var 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)
251return Path.Combine(Path.GetTempPath(), "BrowserFixtureUserProfiles", context);
Templates.Blazor.WebAssembly.Tests (1)
src\Shared\E2ETesting\BrowserFixture.cs (1)
251return Path.Combine(Path.GetTempPath(), "BrowserFixtureUserProfiles", context);
Templates.Mvc.Tests (1)
src\Shared\E2ETesting\BrowserFixture.cs (1)
251return Path.Combine(Path.GetTempPath(), "BrowserFixtureUserProfiles", context);
Templates.Tests (1)
src\Shared\E2ETesting\BrowserFixture.cs (1)
251return Path.Combine(Path.GetTempPath(), "BrowserFixtureUserProfiles", context);
vbc (2)
src\Compilers\Shared\BuildClient.cs (1)
114var tempDir = Path.GetTempPath();
src\Compilers\Shared\BuildServerConnection.cs (1)
655var 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)
655var 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());
vbi (1)
Vbi.vb (1)
24tempDir:=Path.GetTempPath())