104 references to GetRandomFileName
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)
52var symlink = Path.Combine(_testFilesPath, Path.GetRandomFileName());
IIS.ShadowCopy.Tests (2)
ShadowCopyTests.cs (2)
46var directoryName = Path.GetRandomFileName(); 346var directoryPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
Microsoft.AspNetCore.DataProtection.Extensions.Tests (2)
DataProtectionProviderTests.cs (2)
51var keysPath = Path.Combine(AppContext.BaseDirectory, Path.GetRandomFileName()); 323string uniqueTempPath = Path.Combine(AppContext.BaseDirectory, Path.GetRandomFileName());
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.Hosting.Tests (6)
HostingApplicationDiagnosticsTests.cs (2)
685var testSource = new ActivitySource(Path.GetRandomFileName()); 757var testSource = new ActivitySource(Path.GetRandomFileName());
HostingApplicationTests.cs (4)
95var testSource = new ActivitySource(Path.GetRandomFileName()); 96var dummySource = new ActivitySource(Path.GetRandomFileName()); 137var testSource = new ActivitySource(Path.GetRandomFileName()); 138var dummySource = new ActivitySource(Path.GetRandomFileName());
Microsoft.AspNetCore.HttpLogging.Tests (9)
FileLoggerProcessorTests.cs (9)
34var path = Path.Combine(TempPath, Path.GetRandomFileName()); 70var path = Path.Combine(TempPath, Path.GetRandomFileName()); 112var path = Path.Combine(TempPath, Path.GetRandomFileName()); 152var path = Path.Combine(TempPath, Path.GetRandomFileName()); 207var path = Path.Combine(TempPath, Path.GetRandomFileName()); 272var path = Path.Combine(TempPath, Path.GetRandomFileName()); 358var path = Path.Combine(TempPath, Path.GetRandomFileName()); 421var path = Path.Combine(TempPath, Path.GetRandomFileName()); 490var path = Path.Combine(TempPath, Path.GetRandomFileName());
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (1)
RuntimeViewCompiler.cs (1)
339var assemblyName = Path.GetRandomFileName();
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (1)
IISDeployer.cs (1)
514var tmpFile = Path.GetRandomFileName();
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (9)
CertificatePathWatcherTests.cs (9)
22var fileName = Path.GetRandomFileName(); 122var fileName = Path.GetRandomFileName(); 172var fileName = Path.GetRandomFileName(); 211var dir = Path.Combine(Directory.GetCurrentDirectory(), Path.GetRandomFileName()); 239var fileName = Path.GetRandomFileName(); 273var fileName = Path.GetRandomFileName(); 313var fileName = Path.GetRandomFileName(); 344var fileName = Path.GetRandomFileName(); 404var fileName = Path.GetRandomFileName();
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (1)
NamedPipesTransportBenchmark.cs (1)
41_pipeName = "MicrobenchmarksTestPipe-" + Path.GetRandomFileName();
Microsoft.AspNetCore.StaticFiles.Tests (2)
StaticFileMiddlewareTests.cs (2)
51var badLink = Path.Combine(AppContext.BaseDirectory, Path.GetRandomFileName() + ".txt"); 53Process.Start("ln", $"-s \"/tmp/{Path.GetRandomFileName()}\" \"{badLink}\"").WaitForExit();
Microsoft.AspNetCore.Tests (9)
WebApplicationTests.cs (9)
389var contentRoot = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 409var contentRoot = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 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()); 2247var contentRoot = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
Microsoft.AspNetCore.WebUtilities.Tests (1)
FileBufferingWriteStreamTests.cs (1)
12private readonly string TempDirectory = Path.Combine(Path.GetTempPath(), "FileBufferingWriteTests", Path.GetRandomFileName());
Microsoft.Build (1)
Logging\BinaryLogger\BuildEventArgsReader.cs (1)
389new ProjectImportsCollector(Path.GetRandomFileName(), false, runOnBackground: false);
Microsoft.Build.BuildCheck.UnitTests (1)
TestAssemblyInfo.cs (1)
62var subdirectory = Path.GetRandomFileName();
Microsoft.Build.CommandLine.UnitTests (1)
TestAssemblyInfo.cs (1)
62var subdirectory = Path.GetRandomFileName();
Microsoft.Build.Engine.OM.UnitTests (2)
Definition\ProjectItem_Tests.cs (1)
1981string projectDirectory = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
TestAssemblyInfo.cs (1)
62var subdirectory = Path.GetRandomFileName();
Microsoft.Build.Engine.UnitTests (4)
Construction\ElementLocation_Tests.cs (2)
105file = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 140file = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
Evaluation\Expander_Tests.cs (1)
3367MockElementLocation mockElementLocation = new MockElementLocation(Path.Combine(ObjectModelHelpers.TempProjectDir, "one", "two", "three", "four", "five", Path.GetRandomFileName()));
TestAssemblyInfo.cs (1)
62var subdirectory = Path.GetRandomFileName();
Microsoft.Build.Framework.UnitTests (1)
TestAssemblyInfo.cs (1)
62var subdirectory = Path.GetRandomFileName();
Microsoft.Build.Tasks.UnitTests (6)
ResolveCodeAnalysisRuleSet_Tests.cs (5)
151string codeAnalysisRuleSet = Path.GetRandomFileName() + ".ruleset"; 203task.CodeAnalysisRuleSet = Path.GetRandomFileName() + ".ruleset"; 224string subdirectoryName = Path.GetRandomFileName(); 248string subdirectoryName = Path.GetRandomFileName(); 279string subdirectoryName = Path.GetRandomFileName();
TestAssemblyInfo.cs (1)
62var subdirectory = Path.GetRandomFileName();
Microsoft.Build.UnitTests.Shared (1)
DummyMappedDrive.cs (1)
23_mappedPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
Microsoft.Build.Utilities.UnitTests (8)
TestAssemblyInfo.cs (1)
62var subdirectory = Path.GetRandomFileName();
ToolLocationHelper_Tests.cs (7)
67string tempDirectory = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 75string tempDirectory = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 99string tempDirectory = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 228string tempDirectory = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 253string tempDirectory = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 278string tempDirectory = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); 304string tempDirectory = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
Microsoft.DotNet.ApiCompat.Tests (2)
TempFile.cs (2)
26return new TempFile(GetFilePath($"{IO.Path.GetRandomFileName()}_{memberName}_{lineNumber}")); 43string directory = IO.Path.Combine(IO.Path.GetTempPath(), IO.Path.GetRandomFileName());
Microsoft.DotNet.Arcade.Sdk.Tests (2)
GenerateResxSourceTests.cs (1)
29var actualFile = Path.Combine(AppContext.BaseDirectory, Path.GetRandomFileName());
Utilities\TestProjectFixture.cs (1)
42var instanceName = Path.GetRandomFileName();
Microsoft.DotNet.Build.Tasks.Feed.Tests (1)
PublishArtifactsInManifestTests.cs (1)
91string fakeNugetExeName = $"{Path.GetRandomFileName()}.exe";
Microsoft.DotNet.Build.Tasks.Workloads (2)
Swix\ComponentSwixProject.cs (1)
40$"{Path.GetRandomFileName()}");
Swix\PackageGroupSwixProject.wix.cs (1)
42$"{Path.GetRandomFileName()}");
Microsoft.DotNet.Build.Tasks.Workloads.Tests (1)
SwixPackageTests.cs (1)
44string PackageRootDirectory = Path.Combine(BaseIntermediateOutputPath, Path.GetRandomFileName());
Microsoft.DotNet.RemoteExecutor (2)
RemoteInvokeHandle.cs (1)
157string miniDmpPath = Path.Combine(uploadPath, $"{Process.Id}.{Path.GetRandomFileName()}.dmp");
RemoteInvokeOptions.cs (1)
37public string ExceptionFile { get; } = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
Microsoft.DotNet.SignCheckLibrary (1)
Verification\SignatureVerificationResult.cs (1)
180_tempPath = Path.Combine(Path.GetTempPath(), "SignCheck", Path.GetRandomFileName());
PresentationBuildTasks (1)
Microsoft\Build\Tasks\Windows\GenerateTemporaryTargetAssembly.cs (1)
159string randomFileName = Path.GetFileNameWithoutExtension(Path.GetRandomFileName());
PresentationCore (1)
src\Microsoft.DotNet.Wpf\src\Shared\System\IO\FileHelper.cs (1)
120string path = Path.Combine(folderPath, Path.GetRandomFileName());
System.Formats.Tar (1)
System\Formats\Tar\TarHelpers.Unix.cs (1)
25string filename = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
System.IO.IsolatedStorage (2)
System\IO\IsolatedStorage\Helper.NonMobile.cs (2)
49randomDirectory = Path.Combine(rootDirectory, Path.GetRandomFileName(), Path.GetRandomFileName());
Templates.Blazor.Tests (2)
src\ProjectTemplates\Shared\ProjectFactoryFixture.cs (1)
50ProjectGuid = GetRandomLetter() + Path.GetRandomFileName().Replace(".", string.Empty)
src\ProjectTemplates\Shared\TemplatePackageInstaller.cs (1)
130var tempDir = Path.Combine(AppContext.BaseDirectory, Path.GetRandomFileName(), Guid.NewGuid().ToString("D"));
Templates.Blazor.WebAssembly.Auth.Tests (2)
src\ProjectTemplates\Shared\ProjectFactoryFixture.cs (1)
50ProjectGuid = GetRandomLetter() + Path.GetRandomFileName().Replace(".", string.Empty)
src\ProjectTemplates\Shared\TemplatePackageInstaller.cs (1)
130var tempDir = Path.Combine(AppContext.BaseDirectory, Path.GetRandomFileName(), Guid.NewGuid().ToString("D"));
Templates.Blazor.WebAssembly.Tests (2)
src\ProjectTemplates\Shared\ProjectFactoryFixture.cs (1)
50ProjectGuid = GetRandomLetter() + Path.GetRandomFileName().Replace(".", string.Empty)
src\ProjectTemplates\Shared\TemplatePackageInstaller.cs (1)
130var tempDir = Path.Combine(AppContext.BaseDirectory, Path.GetRandomFileName(), Guid.NewGuid().ToString("D"));
Templates.Mvc.Tests (2)
src\ProjectTemplates\Shared\ProjectFactoryFixture.cs (1)
50ProjectGuid = GetRandomLetter() + Path.GetRandomFileName().Replace(".", string.Empty)
src\ProjectTemplates\Shared\TemplatePackageInstaller.cs (1)
130var tempDir = Path.Combine(AppContext.BaseDirectory, Path.GetRandomFileName(), Guid.NewGuid().ToString("D"));
Templates.Tests (2)
src\ProjectTemplates\Shared\ProjectFactoryFixture.cs (1)
50ProjectGuid = GetRandomLetter() + Path.GetRandomFileName().Replace(".", string.Empty)
src\ProjectTemplates\Shared\TemplatePackageInstaller.cs (1)
130var tempDir = Path.Combine(AppContext.BaseDirectory, Path.GetRandomFileName(), Guid.NewGuid().ToString("D"));
WasmAppBuilder (1)
EmccCompile.cs (1)
130_tempPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
WorkloadBuildTasks (3)
InstallWorkloadFromArtifacts.cs (2)
64_tempDir = Path.Combine(IntermediateOutputPath ?? Path.GetTempPath(), $"workload-{Path.GetRandomFileName()}"); 220string nugetConfigPath = Path.Combine(_tempDir, $"NuGet.{Path.GetRandomFileName()}.config");
PackageInstaller.cs (1)
30_tempDir = Path.Combine(baseTempDir, Path.GetRandomFileName());