1356 references to Exists
AnalyzerRunner (2)
CodeRefactoringRunner.cs (1)
202if (File.Exists(path))
DiagnosticAnalyzerRunner.cs (1)
287if (File.Exists(path))
aspire (1)
Program.cs (1)
46if (File.Exists(settingsFilePath))
Aspire.Dashboard.Tests (3)
tests\Shared\Playwright\PlaywrightProvider.cs (2)
20if (!string.IsNullOrEmpty(browserPath) && !File.Exists(browserPath)) 31if (File.Exists(probePath))
tests\Shared\Playwright\TestUtils.cs (1)
14if (Directory.Exists(Path.Combine(repoRoot.FullName, ".git")) || File.Exists(Path.Combine(repoRoot.FullName, ".git")))
Aspire.EndToEnd.Tests (8)
tests\Shared\Playwright\PlaywrightProvider.cs (2)
20if (!string.IsNullOrEmpty(browserPath) && !File.Exists(browserPath)) 31if (File.Exists(probePath))
tests\Shared\Playwright\TestUtils.cs (1)
14if (Directory.Exists(Path.Combine(repoRoot.FullName, ".git")) || File.Exists(Path.Combine(repoRoot.FullName, ".git")))
tests\Shared\TemplatesTesting\BuildEnvironment.cs (2)
97.FirstOrDefault(File.Exists); 120.FirstOrDefault(File.Exists);
tests\Shared\TemplatesTesting\TemplateCustomHive.cs (3)
18public string CustomHiveDirectory => File.Exists(_stampFilePath) 37if (BuildEnvironment.IsRunningOnCI && File.Exists(_stampFilePath)) 51if (File.Exists(_stampFilePath))
Aspire.Hosting (9)
ApplicationModel\AspireStore.cs (1)
62if (!File.Exists(finalFilePath))
ApplicationModel\AspireStoreExtensions.cs (1)
25if (!File.Exists(sourceFilename))
ApplicationModel\ContainerFileSystemCallbackAnnotation.cs (1)
178if (File.Exists(fullPath))
ContainerResourceBuilderExtensions.cs (1)
861if (!Directory.Exists(sourceFullPath) && !File.Exists(sourceFullPath))
Dcp\DcpDependencyCheck.cs (1)
45if (!File.Exists(dcpPath))
Dcp\DcpHost.cs (1)
172if (!File.Exists(dcpExePath))
Devcontainers\DevcontainerSettingsWriter.cs (1)
162if (!File.Exists(path))
src\Shared\LaunchProfiles\LaunchProfileExtensions.cs (2)
74if (!File.Exists(projectMetadata.ProjectPath)) 88if (!File.Exists(launchSettingsFilePath))
Aspire.Hosting.Azure (2)
Provisioning\Provisioners\AzureProvisioner.cs (1)
188var userSecrets = userSecretsPath is not null && File.Exists(userSecretsPath)
Provisioning\Provisioners\BicepProvisioner.cs (1)
370private static string? FindFullPathFromPath(string command) => FindFullPathFromPath(command, Environment.GetEnvironmentVariable("PATH"), Path.PathSeparator, File.Exists);
Aspire.Hosting.Azure.Functions (2)
src\Shared\LaunchProfiles\LaunchProfileExtensions.cs (2)
74if (!File.Exists(projectMetadata.ProjectPath)) 88if (!File.Exists(launchSettingsFilePath))
Aspire.Hosting.Azure.Tests (5)
AzureEnvironmentResourceTests.cs (4)
35Assert.True(File.Exists(mainBicepPath)); 39Assert.True(File.Exists(envBicepPath)); 72Assert.True(File.Exists(mainBicepPath)); 124Assert.True(File.Exists(mainBicepPath));
AzureManifestUtils.cs (1)
37if (pathNode?.ToString() is not { } path || !File.Exists(Path.Combine(manifestDir, path)))
Aspire.Hosting.Containers.Tests (1)
DockerSocketBindMountTests.cs (1)
49Assert.True(File.Exists(infoFile));
Aspire.Hosting.Docker (1)
EnvFile.cs (1)
14if (!File.Exists(path))
Aspire.Hosting.Docker.Tests (12)
DockerComposePublisherTests.cs (11)
98Assert.True(File.Exists(composePath)); 99Assert.True(File.Exists(envPath)); 123Assert.True(File.Exists(composePath)); 156Assert.True(File.Exists(composePath)); 205Assert.True(File.Exists(composePath)); 207Assert.True(File.Exists(envPath)); 230Assert.True(File.Exists(envFilePath)); 235Assert.True(File.Exists(envFilePath)); 269Assert.True(File.Exists(envFilePath)); 274Assert.True(File.Exists(envFilePath)); 299Assert.True(File.Exists(composePath));
DockerComposeTests.cs (1)
47Assert.True(File.Exists(composeFile), "Docker Compose file was not created.");
Aspire.Hosting.Kubernetes.Tests (1)
KubernetesPublisherTests.cs (1)
100Assert.True(File.Exists(deploymentPath));
Aspire.Hosting.Python (2)
VirtualEnvironment.cs (2)
27if(File.Exists(executablePath)) 37if (File.Exists(executablePath))
Aspire.Hosting.Testing (1)
DistributedApplicationFactory.cs (1)
353if (!File.Exists(launchSettingsFilePath))
Aspire.Hosting.Testing.Tests (2)
TestingBuilderTests.cs (1)
50Assert.True(File.Exists(testProjectAssemblyPath), $"TestProject.AppHost.dll not found at {testProjectAssemblyPath}.");
tests\Aspire.Hosting.Tests\Utils\MSBuildUtils.cs (1)
13while (directory != null && !Directory.Exists(Path.Combine(directory, ".git")) && !File.Exists(Path.Combine(directory, ".git")))
Aspire.Hosting.Tests (6)
AspireStoreTests.cs (2)
67Assert.True(File.Exists(filePath)); 81Assert.True(File.Exists(filePath));
SecretsStoreTests.cs (1)
78if (File.Exists(userSecretsPath))
UserSecretsParameterDefaultTests.cs (2)
54if (File.Exists(userSecretsPath)) 100if (File.Exists(userSecretsPath))
Utils\MSBuildUtils.cs (1)
13while (directory != null && !Directory.Exists(Path.Combine(directory, ".git")) && !File.Exists(Path.Combine(directory, ".git")))
Aspire.Playground.Tests (1)
tests\Aspire.TestUtilities\FileUtil.cs (1)
10public static string? FindFullPathFromPath(string command) => FindFullPathFromPath(command, Environment.GetEnvironmentVariable("PATH"), Path.PathSeparator, File.Exists);
Aspire.RuntimeIdentifier.Tool (1)
Program.cs (1)
49if (!File.Exists(rgp))
Aspire.Templates.Tests (9)
TemplateTestsBase.cs (1)
75Assert.True(File.Exists(testProjectPath), $"Expected tests project file at {testProjectPath}");
tests\Shared\Playwright\PlaywrightProvider.cs (2)
20if (!string.IsNullOrEmpty(browserPath) && !File.Exists(browserPath)) 31if (File.Exists(probePath))
tests\Shared\Playwright\TestUtils.cs (1)
14if (Directory.Exists(Path.Combine(repoRoot.FullName, ".git")) || File.Exists(Path.Combine(repoRoot.FullName, ".git")))
tests\Shared\TemplatesTesting\BuildEnvironment.cs (2)
97.FirstOrDefault(File.Exists); 120.FirstOrDefault(File.Exists);
tests\Shared\TemplatesTesting\TemplateCustomHive.cs (3)
18public string CustomHiveDirectory => File.Exists(_stampFilePath) 37if (BuildEnvironment.IsRunningOnCI && File.Exists(_stampFilePath)) 51if (File.Exists(_stampFilePath))
Aspire.TestUtilities (1)
FileUtil.cs (1)
10public static string? FindFullPathFromPath(string command) => FindFullPathFromPath(command, Environment.GetEnvironmentVariable("PATH"), Path.PathSeparator, File.Exists);
blazor-devserver (1)
Server\Program.cs (1)
30name = !File.Exists(name) ? Path.ChangeExtension(applicationPath, ".StaticWebAssets.xml") : name;
BuildBoss (3)
OptProfCheckerUtil.cs (2)
39if (!File.Exists(OptProfFile)) 68if (!File.Exists(vsixFullPath))
Program.cs (1)
88while (dir != null && !File.Exists(Path.Combine(dir, "global.json")))
BuildValidator (2)
LocalSourceResolver.cs (1)
39if (File.Exists(onDiskPath))
Program.cs (1)
319filePath => File.Exists(filePath) ? new MemoryStream(File.ReadAllBytes(filePath)) : null,
CatalogService (1)
CatalogApi.cs (1)
42if (!File.Exists(path))
ClientSample (1)
src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
78if (File.Exists(candidateDotNetExePath))
CodeGenerator (1)
Program.cs (1)
63var existingContent = File.Exists(path) ? File.ReadAllText(path) : "";
Crossgen2Tasks (13)
PrepareForReadyToRunCompilation.cs (1)
90!string.IsNullOrEmpty(diaSymReaderPath) && File.Exists(diaSymReaderPath);
ResolveReadyToRunCompilers.cs (4)
342return File.Exists(_crossgenTool.ToolPath) && File.Exists(_crossgenTool.ClrJitPath); 370if (!File.Exists(_crossgen2Tool.ClrJitPath)) 377return File.Exists(_crossgen2Tool.ToolPath);
RunReadyToRunCompiler.cs (8)
104if (!File.Exists(Crossgen2Tool.ItemSpec)) 110if (!string.IsNullOrEmpty(hostPath) && !File.Exists(hostPath)) 118if (!File.Exists(jitPath)) 152if (!File.Exists(CrossgenTool.ItemSpec)) 157if (!File.Exists(CrossgenTool.GetMetadata(MetadataKeys.JitPath))) 170if (!string.IsNullOrEmpty(DiaSymReader) && !File.Exists(DiaSymReader)) 182if (!File.Exists(_outputR2RImage)) 195if (!File.Exists(_inputAssembly))
csc (4)
src\Compilers\Shared\BuildServerConnection.cs (3)
440if (!File.Exists(processFilePath)) 461if (!File.Exists(serverInfo.processFilePath)) 723if (!File.Exists(FilePath))
src\Compilers\Shared\RuntimeHostInfo.cs (1)
62if (File.Exists(filePath))
dotnet-dev-certs (9)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
437if (!File.Exists(certificatePath))
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (2)
131return File.Exists(GetCertificateFilePath(candidate)) ? 464if (File.Exists(certificatePath))
src\Shared\CertificateGeneration\UnixCertificateManager.cs (5)
95if (File.Exists(certPath)) 227if (File.Exists(certPath)) 388if (File.Exists(certPath)) 525if (File.Exists(Path.Combine(searchFolder, command))) 912if (!File.Exists(linkPath))
src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
78if (File.Exists(candidateDotNetExePath))
dotnet-getdocument (4)
Commands\InvokeCommand.cs (3)
69if (File.Exists(configPath)) 94if (!string.IsNullOrEmpty(projectAssetsFile) && File.Exists(projectAssetsFile)) 110if (File.Exists(runtimeConfigPath))
src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
78if (File.Exists(candidateDotNetExePath))
dotnet-openapi (6)
Commands\AddFileCommand.cs (1)
54return File.Exists(GetFullPath(file));
Commands\BaseCommand.cs (4)
102if (!File.Exists(project)) 137return File.Exists(Path.GetFullPath(file)) && file.EndsWith(".csproj", StringComparison.Ordinal); 350if (!File.Exists(filePath)) 515var destinationExists = File.Exists(destinationPath);
src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
78if (File.Exists(candidateDotNetExePath))
dotnet-sql-cache (1)
src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
78if (File.Exists(candidateDotNetExePath))
dotnet-svcutil.xmlserializer (4)
Microsoft\Tools\ServiceModel\SvcUtil\CommandLineParser.cs (1)
209if (File.Exists(potentialPath))
Microsoft\Tools\ServiceModel\SvcUtil\XmlSerializerGenerator.cs (3)
70if (File.Exists(codePath)) 90if (!success && toDeleteFile && File.Exists(codePath)) 100if (File.Exists(sgenSource))
dotnet-svcutil.xmlserializer.IntegrationTests (3)
SvcutilTests.cs (3)
22Assert.False(File.Exists(outputFile)); 25if (File.Exists(smassemblypath)) 28Assert.True(File.Exists(outputFile));
dotnet-svcutil-lib (25)
CodeSerializer.cs (1)
79if (File.Exists(_outputFilePath))
CommandProcessorOptions.cs (4)
439if (!IsUpdateOperation && this.ToolContext <= OperationalContext.Global && File.Exists(filePath)) 526if (!PathHelper.IsUnderDirectory(svcutilParmasFile, projectDirInfo, out paramsFilePath, out fileRelPath) || !File.Exists(paramsFilePath)) 529if (!PathHelper.IsUnderDirectory(wcfcsParamsFile, projectDirInfo, out paramsFilePath, out fileRelPath) || !File.Exists(paramsFilePath)) 700if (File.Exists(projectFullPath))
FrameworkFork\Microsoft.Xml\Xml\Core\XmlReader.cs (1)
1895} while (File.Exists(dumpFileName));
Metadata\MetadataDocumentLoader.cs (5)
527if (!File.Exists(fullFileName)) 535if (!File.Exists(fullFileName) && !string.IsNullOrWhiteSpace(specNamespace)) 544if (!File.Exists(fullFileName) && !Path.IsPathRooted(schemaLocation)) 548if (!File.Exists(fullFileName)) 555if (File.Exists(fullFileName))
Metadata\MetadataDocumentSaver.cs (1)
71var fileInfo = this.MetadataFiles.FirstOrDefault(fi => File.Exists(fi.FilePath));
Metadata\MetadataFileNameManager.cs (1)
183if (File.Exists(filePath))
Shared\MSBuildProj.cs (5)
322if (fullPath == null || !File.Exists(fullPath)) 396if (File.Exists(fullPath)) 798if (File.Exists(assetsFile) && !(this.TargetFramework.Contains("-") && !this.TargetFramework.ToLower().Contains("windows"))) 883if (File.Exists(depsFile)) 915if (File.Exists(dependency.FullPath) && !assemblyDependencies.Contains(dependency))
Shared\ProjectPropertyResolver.cs (2)
149while (dotnetDir != null && !(File.Exists(Path.Combine(dotnetDir, "dotnet")) || File.Exists(Path.Combine(dotnetDir, "dotnet.exe"))))
Shared\Utilities\PathHelper.cs (1)
209if (File.Exists(filePath))
Shared\Utilities\RuntimeEnvironmentHelper.cs (3)
47if (!File.Exists(Path.Combine(destinationDirectory, "global.json"))) 53if (!File.Exists(Path.Combine(destinationDirectory, "nuget.config"))) 73if (File.Exists(nugetConfigPath))
Tool.cs (1)
145if (!File.Exists(options.OutputFile.FullName))
dotnet-svcutil-lib.Tests (14)
E2ETests.cs (6)
174if (!File.Exists(wsdlFile)) 180Assert.True(File.Exists(wsdlFile), $"{wsdlFile} not initialized!"); 226if (!File.Exists(assemblyPath)) 238Assert.True(File.Exists(binProjPath), $"{nameof(binProjPath)} not initialized!"); 239Assert.True(File.Exists(libProjPath), $"{nameof(libProjPath)} not initialized!"); 369Assert.True(File.Exists(srcParamsFilePath), $"{nameof(srcParamsFilePath)} not initialized!");
ProjectUtils.cs (3)
28if (forceNew && File.Exists(filePath)) 31if (File.Exists(dstProgramFile)) 36if (File.Exists(filePath))
TestInit.cs (5)
95if (!File.Exists(filePath)) 167Assert.True(File.Exists(g_StarterProject.FullPath), $"{nameof(g_StarterProject)} is not initialized!"); 268if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux) && File.Exists(Path.Combine(linuxBaselinePath, Path.GetFileName(this_TestCaseLogFile)))) 354if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux) && File.Exists(Path.Combine(linuxBaselinePath, Path.GetFileName(this_TestCaseLogFile)))) 590Assert.True(rootSolutionFolder != null && File.Exists(rootSolutionFolder), $"Unable to find dotnet-svcutil.sln file, current dir: {parentDir}");
dotnet-user-jwts (9)
Helpers\DevJwtCliHelpers.cs (2)
58else if (!File.Exists(Path.Combine(Path.GetDirectoryName(projectPath), appsettingsFile))) 77if (File.Exists(launchSettingsFilePath))
Helpers\JwtStore.cs (1)
28if (File.Exists(_filePath))
Helpers\SigningKeysHandler.cs (1)
66if (File.Exists(secretsFilePath))
src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
78if (File.Exists(candidateDotNetExePath))
src\Tools\Shared\SecretsHelpers\MsBuildProjectFinder.cs (1)
47if (!File.Exists(projectPath))
src\Tools\Shared\SecretsHelpers\ProjectIdResolver.cs (3)
113if (!File.Exists(outputFile)) 144var targetPath = searchPaths.Select(p => Path.Combine(p, "SecretManager.targets")).FirstOrDefault(File.Exists); 157if (File.Exists(file))
dotnet-user-secrets (5)
src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
78if (File.Exists(candidateDotNetExePath))
src\Tools\Shared\SecretsHelpers\MsBuildProjectFinder.cs (1)
47if (!File.Exists(projectPath))
src\Tools\Shared\SecretsHelpers\ProjectIdResolver.cs (3)
113if (!File.Exists(outputFile)) 144var targetPath = searchPaths.Select(p => Path.Combine(p, "SecretManager.targets")).FirstOrDefault(File.Exists); 157if (File.Exists(file))
GenerateAnalyzerNuspec (5)
Program.cs (5)
159if (File.Exists(resourceAssemblyFullPath)) 192if (File.Exists(fileWithPath)) 269if (File.Exists(fileWithPath)) 278if (File.Exists(fileWithPath)) 287if (File.Exists(fileWithPath))
GenerateDocumentationAndConfigFiles (4)
Program.cs (4)
275if (!File.Exists(path)) 873if (!File.Exists(assemblyPath)) 906var shippedFileExists = File.Exists(shippedFile); 907var unshippedFileExists = File.Exists(unshippedFile);
GenerateRulesMissingDocumentation (1)
Program.cs (1)
148if (!File.Exists(path))
GetDocument.Insider (1)
Commands\GetDocumentCommand.cs (1)
94if (!File.Exists(assemblyPath))
HelixTestRunner (4)
ProcessUtil.cs (2)
62if (!File.Exists($"{Environment.GetEnvironmentVariable("HELIX_WORKITEM_ROOT")}/dotnet-dump") && 63!File.Exists($"{Environment.GetEnvironmentVariable("HELIX_WORKITEM_ROOT")}/dotnet-dump.exe"))
TestRunner.cs (2)
62if (!File.Exists("xunit.runner.json")) 292if (File.Exists("TestResults/TestResults.xml"))
IdeBenchmarks (1)
InheritanceMargin\InheritanceMarginServiceBenchmarks.cs (1)
38if (!File.Exists(solutionPath))
IdeCoreBenchmarks (9)
ClassificationBenchmarks.cs (1)
59if (!File.Exists(solutionPath))
CSharpIdeAnalyzerBenchmarks.cs (1)
40if (!File.Exists(_solutionPath))
FindReferencesBenchmarks.cs (1)
56if (!File.Exists(solutionPath))
FormatterBenchmarks.cs (1)
33if (!File.Exists(csFilePath))
IncrementalAnalyzerBenchmarks.cs (1)
38if (!File.Exists(_solutionPath))
IncrementalSourceGeneratorBenchmarks.cs (1)
65if (!File.Exists(_solutionPath))
NavigateToBenchmarks.cs (1)
62if (!File.Exists(_solutionPath))
RenameBenchmarks.cs (1)
31if (!File.Exists(_csFilePath))
SyntacticChangeRangeBenchmark.cs (1)
35if (!File.Exists(csFilePath))
IIS.FunctionalTests (4)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\RequiresIISAttribute.cs (4)
55if (!File.Exists(Path.Combine(Environment.SystemDirectory, "inetsrv", "w3wp.exe")) && !SkipInVSTSAttribute.RunningInVSTS) 63if (!File.Exists(ancmConfigPath)) 68if (!File.Exists(ancmConfigPath) && !SkipInVSTSAttribute.RunningInVSTS) 95if (File.Exists(Path.Combine(Environment.SystemDirectory, "inetsrv", module.DllName)) || SkipInVSTSAttribute.RunningInVSTS)
IIS.LongTests (6)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\RequiresIISAttribute.cs (4)
55if (!File.Exists(Path.Combine(Environment.SystemDirectory, "inetsrv", "w3wp.exe")) && !SkipInVSTSAttribute.RunningInVSTS) 63if (!File.Exists(ancmConfigPath)) 68if (!File.Exists(ancmConfigPath) && !SkipInVSTSAttribute.RunningInVSTS) 95if (File.Exists(Path.Combine(Environment.SystemDirectory, "inetsrv", module.DllName)) || SkipInVSTSAttribute.RunningInVSTS)
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (2)
214Assert.True(File.Exists(Path.Combine(deploymentResult.ContentRoot, "InProcessWebSite.exe"))); 215Assert.False(File.Exists(Path.Combine(deploymentResult.ContentRoot, "hostfxr.dll")));
IIS.NewHandler.FunctionalTests (6)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\RequiresIISAttribute.cs (4)
55if (!File.Exists(Path.Combine(Environment.SystemDirectory, "inetsrv", "w3wp.exe")) && !SkipInVSTSAttribute.RunningInVSTS) 63if (!File.Exists(ancmConfigPath)) 68if (!File.Exists(ancmConfigPath) && !SkipInVSTSAttribute.RunningInVSTS) 95if (File.Exists(Path.Combine(Environment.SystemDirectory, "inetsrv", module.DllName)) || SkipInVSTSAttribute.RunningInVSTS)
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (2)
214Assert.True(File.Exists(Path.Combine(deploymentResult.ContentRoot, "InProcessWebSite.exe"))); 215Assert.False(File.Exists(Path.Combine(deploymentResult.ContentRoot, "hostfxr.dll")));
IIS.NewShim.FunctionalTests (6)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\RequiresIISAttribute.cs (4)
55if (!File.Exists(Path.Combine(Environment.SystemDirectory, "inetsrv", "w3wp.exe")) && !SkipInVSTSAttribute.RunningInVSTS) 63if (!File.Exists(ancmConfigPath)) 68if (!File.Exists(ancmConfigPath) && !SkipInVSTSAttribute.RunningInVSTS) 95if (File.Exists(Path.Combine(Environment.SystemDirectory, "inetsrv", module.DllName)) || SkipInVSTSAttribute.RunningInVSTS)
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (2)
214Assert.True(File.Exists(Path.Combine(deploymentResult.ContentRoot, "InProcessWebSite.exe"))); 215Assert.False(File.Exists(Path.Combine(deploymentResult.ContentRoot, "hostfxr.dll")));
IIS.ShadowCopy.Tests (4)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\RequiresIISAttribute.cs (4)
55if (!File.Exists(Path.Combine(Environment.SystemDirectory, "inetsrv", "w3wp.exe")) && !SkipInVSTSAttribute.RunningInVSTS) 63if (!File.Exists(ancmConfigPath)) 68if (!File.Exists(ancmConfigPath) && !SkipInVSTSAttribute.RunningInVSTS) 95if (File.Exists(Path.Combine(Environment.SystemDirectory, "inetsrv", module.DllName)) || SkipInVSTSAttribute.RunningInVSTS)
IIS.Tests (1)
Utilities\SkipIfHostableWebCoreNotAvailibleAttribute.cs (1)
13public bool IsMet { get; } = File.Exists(TestServer.HostableWebCoreLocation);
IISExpress.FunctionalTests (2)
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (2)
214Assert.True(File.Exists(Path.Combine(deploymentResult.ContentRoot, "InProcessWebSite.exe"))); 215Assert.False(File.Exists(Path.Combine(deploymentResult.ContentRoot, "hostfxr.dll")));
illink (10)
ILLink.Tasks (5)
CreateRuntimeRootDescriptorFile.cs (5)
103 if (!File.Exists (namespaceFilePath)) { 109 if (!File.Exists (mscorlibFilePath)) { 115 if (!File.Exists (cortypeFilePath)) { 121 if (!File.Exists (rexcepFilePath)) { 129 if (!File.Exists (iLLinkTrimXmlFilePath)) {
Infrastructure.Common (1)
CertificateManager.cs (1)
272if (!File.Exists(OSXCustomKeychainFilePath))
installer.tasks (2)
GenerateFileVersionProps.cs (1)
167if (File.Exists(filePath))
GenerateRunScript.cs (1)
34if (!File.Exists(TemplatePath))
InteractiveHost.UnitTests (1)
AbstractInteractiveHostTests.cs (1)
48while (dir != null && !File.Exists(Path.Combine(dir, "dotnet.exe")))
Metrics (2)
Program.cs (2)
113if (!File.Exists(value)) 129if (!File.Exists(value))
Metrics.Legacy (2)
src\RoslynAnalyzers\Tools\Metrics\Program.cs (2)
113if (!File.Exists(value)) 129if (!File.Exists(value))
Microsoft.Arcade.Common (5)
CommandFactory.cs (2)
64if (File.Exists(executable + ".exe")) 76if (File.Exists(candidate))
FileSystem.cs (1)
17public bool FileExists(string path) => File.Exists(path);
src\Common\Internal\AssemblyResolver.cs (1)
95if (File.Exists(filePath))
ZipArchiveManager.cs (1)
29bool archiveExists = File.Exists(archivePath);
Microsoft.AspNetCore.Analyzer.Testing (2)
DiagnosticVerifier.cs (2)
195if (File.Exists(dll)) 202if (File.Exists(dll))
Microsoft.AspNetCore.App.UnitTests (2)
AssertEx.cs (2)
20if (!File.Exists(path)) 28if (File.Exists(path))
Microsoft.AspNetCore.Components.Analyzers.Tests (1)
AnalyzerTestBase.cs (1)
22if (!File.Exists(filePath))
Microsoft.AspNetCore.Components.SdkAnalyzers.Tests (1)
AnalyzerTestBase.cs (1)
22if (!File.Exists(filePath))
Microsoft.AspNetCore.Components.WebAssembly (1)
Hosting\WebAssemblyHostBuilder.cs (1)
187if (File.Exists(configFile))
Microsoft.AspNetCore.Components.WebAssembly.Server (2)
DebugProxyLauncher.cs (1)
130if (!File.Exists(debugProxyPath))
src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
78if (File.Exists(candidateDotNetExePath))
Microsoft.AspNetCore.Components.WebView (1)
WebViewManager.cs (1)
282if (File.Exists(manifestPath))
Microsoft.AspNetCore.DataProtection (2)
Internal\ContainerUtils.cs (2)
34if (!File.Exists(mountsFile)) 99if (!File.Exists(procFile))
Microsoft.AspNetCore.DataProtection.Tests (8)
Repositories\FileSystemXmlRepositoryTests.cs (8)
209Assert.True(File.Exists(filePath1)); 210Assert.True(File.Exists(filePath2)); 211Assert.True(File.Exists(filePath3)); 240Assert.True(File.Exists(filePath1)); // Deletion not attempted after failure 241Assert.True(File.Exists(filePath2)); // Deletion fails because of lock 242Assert.False(File.Exists(filePath3)); // Deleted before error 256Assert.True(File.Exists(filePath)); 273Assert.False(File.Exists(filePath));
Microsoft.AspNetCore.DeveloperCertificates.XPlat (8)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
437if (!File.Exists(certificatePath))
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (2)
131return File.Exists(GetCertificateFilePath(candidate)) ? 464if (File.Exists(certificatePath))
src\Shared\CertificateGeneration\UnixCertificateManager.cs (5)
95if (File.Exists(certPath)) 227if (File.Exists(certPath)) 388if (File.Exists(certPath)) 525if (File.Exists(Path.Combine(searchFolder, command))) 912if (!File.Exists(linkPath))
Microsoft.AspNetCore.DeveloperCertificates.XPlat.Tests (7)
CertificateManagerTests.cs (7)
50Assert.True(File.Exists(CertificateName)); 149Assert.True(File.Exists(CertificateName)); 183Assert.True(File.Exists(CertificateName)); 216Assert.True(File.Exists(CertificateName)); 345Assert.True(File.Exists(CertificateName)); 538Assert.True(File.Exists(CertificateName)); 541Assert.True(File.Exists(KeyName));
Microsoft.AspNetCore.Diagnostics (1)
src\Shared\StackTrace\ExceptionDetails\ExceptionDetailsProvider.cs (1)
110if (File.Exists(stackFrame.File))
Microsoft.AspNetCore.Hosting (2)
src\Shared\StackTrace\ExceptionDetails\ExceptionDetailsProvider.cs (1)
110if (File.Exists(stackFrame.File))
StaticWebAssets\StaticWebAssetsLoader.cs (1)
51if (candidate != null && File.Exists(candidate))
Microsoft.AspNetCore.Http.Extensions.Tests (2)
RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (2)
423if (File.Exists(dll)) 431if (File.Exists(dll))
Microsoft.AspNetCore.Http.Microbenchmarks (2)
src\Http\Http.Extensions\test\RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (2)
423if (File.Exists(dll)) 431if (File.Exists(dll))
Microsoft.AspNetCore.HttpLogging.Tests (16)
FileLoggerProcessorTests.cs (16)
51Assert.True(File.Exists(filePath)); 98Assert.True(File.Exists(filePathToday)); 100Assert.True(File.Exists(filePathTomorrow)); 137Assert.True(File.Exists(filePath1)); 138Assert.True(File.Exists(filePath2)); 400Assert.True(File.Exists(filePath1)); 401Assert.True(File.Exists(filePath2)); 402Assert.True(File.Exists(filePath3)); 466Assert.False(File.Exists(filePath1)); 467Assert.False(File.Exists(filePath2)); 468Assert.True(File.Exists(filePath3)); 469Assert.True(File.Exists(filePath4)); 536Assert.True(File.Exists(filePath1)); 537Assert.True(File.Exists(filePath2)); 550while (!File.Exists(filePath)) 581while (File.Exists(filePath))
Microsoft.AspNetCore.InternalTesting (6)
AssemblyTestLog.cs (3)
142if (File.Exists(testOutputFile)) 150if (!File.Exists(testOutputFile)) 280if (File.Exists(fileName))
TestFileOutputContext.cs (1)
67while (File.Exists(path))
xunit\DockerOnlyAttribute.cs (1)
27if (!File.Exists(procFile))
xunit\SkipOnAlpineAttribute.cs (1)
30RuntimeInformation.IsOSPlatform(OSPlatform.Linux) && File.Exists("/etc/os-release") &&
Microsoft.AspNetCore.InternalTesting.Tests (12)
AssemblyTestLogTests.cs (12)
67Assert.True(File.Exists(globalLogPath), $"Expected global log file {globalLogPath} to exist."); 68Assert.True(File.Exists(testLog), $"Expected test log file {testLog} to exist."); 160Assert.True(File.Exists(globalLogPath), $"Expected global log file {globalLogPath} to exist"); 161Assert.True(File.Exists(testLog), $"Expected test log file {testLog} to exist"); 215Assert.True(File.Exists(globalLogPath), $"Expected global log file {globalLogPath} to exist."); 216Assert.True(File.Exists(testLog), $"Expected test log file {testLog} to exist."); 221Assert.True(!File.Exists(globalLogPath), $"Expected no global log file {globalLogPath} to exist."); 222Assert.True(!File.Exists(testLog), $"Expected no test log file {testLog} to exist."); 266Assert.True(File.Exists(globalLogPath), $"Expected global log file {globalLogPath} to exist."); 267Assert.True(File.Exists(testLog), $"Expected test log file {testLog} to exist."); 343Assert.True(File.Exists(Path.Combine( 353Assert.True(File.Exists(Path.Combine(
Microsoft.AspNetCore.Mvc.Core (1)
ApplicationParts\RelatedAssemblyAttribute.cs (1)
44return GetRelatedAssemblies(assembly, throwOnError, File.Exists, new AssemblyLoadContextWrapper(loadContext));
Microsoft.AspNetCore.Mvc.Testing (2)
WebApplicationFactory.cs (2)
361var fromFile = File.Exists("MvcTestingAppManifest.json"); 410if (File.Exists(contentRootMarker))
Microsoft.AspNetCore.OpenApi.Build.Tests (1)
src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
78if (File.Exists(candidateDotNetExePath))
Microsoft.AspNetCore.Server.IIS (1)
src\Shared\StackTrace\ExceptionDetails\ExceptionDetailsProvider.cs (1)
110if (File.Exists(stackFrame.File))
Microsoft.AspNetCore.Server.IntegrationTesting (5)
Deployers\ApplicationDeployer.cs (1)
106if (!File.Exists(executableName))
Deployers\NginxDeployer.cs (2)
180if (!File.Exists(pidFile)) 197if (File.Exists(_configFile))
Deployers\SelfHostDeployer.cs (1)
137Logger.LogInformation($"{File.Exists(executableName)}");
xunit\IISExpressAncmSchema.cs (1)
25if (!File.Exists(ancmConfigPath))
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (9)
IISDeployer.cs (2)
186if (File.Exists(file)) 205if (File.Exists(_debugLogFile))
IISDeployerBase.cs (3)
94var basePath = File.Exists(Path.Combine(AppContext.BaseDirectory, "x64", "aspnetcorev2.dll")) ? "" : @"ANCM\"; 97if (!File.Exists(Environment.ExpandEnvironmentVariables(ancmFile))) 100if (!File.Exists(Environment.ExpandEnvironmentVariables(ancmFile)))
IISExpressDeployer.cs (4)
299if (!DeploymentParameters.PublishApplicationBeforeDeployment && !File.Exists(webConfigPath)) 361if (!File.Exists(executableName)) 386if (!File.Exists(iisExpressPath)) 413&& File.Exists(DeploymentParameters.ServerConfigLocation))
Microsoft.AspNetCore.Server.Kestrel.Core (9)
src\Shared\CertificateGeneration\CertificateManager.cs (1)
437if (!File.Exists(certificatePath))
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (2)
131return File.Exists(GetCertificateFilePath(candidate)) ? 464if (File.Exists(certificatePath))
src\Shared\CertificateGeneration\UnixCertificateManager.cs (5)
95if (File.Exists(certPath)) 227if (File.Exists(certPath)) 388if (File.Exists(certPath)) 525if (File.Exists(Path.Combine(searchFolder, command))) 912if (!File.Exists(linkPath))
TlsConfigurationLoader.cs (1)
157File.Exists(certificatePath))
Microsoft.AspNetCore.Server.Kestrel.Tests (9)
KestrelConfigurationLoaderTests.cs (9)
303if (File.Exists(GetCertificatePath())) 385if (File.Exists(GetCertificatePath())) 477if (File.Exists(GetCertificatePath())) 526if (File.Exists(GetCertificatePath())) 579if (File.Exists(GetCertificatePath())) 752if (File.Exists(GetCertificatePath())) 765if (File.Exists(GetCertificatePath())) 783if (File.Exists(GetCertificatePath())) 947if (File.Exists(certificatePath))
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (1)
SkipOnMarinerAttribute.cs (1)
25RuntimeInformation.IsOSPlatform(OSPlatform.Linux) && File.Exists("/etc/os-release") &&
Microsoft.AspNetCore.Shared.Tests (2)
DotNetMuxerTests.cs (1)
19Assert.True(File.Exists(muxerPath), "The file did not exist");
src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
78if (File.Exists(candidateDotNetExePath))
Microsoft.AspNetCore.SignalR.StackExchangeRedis.Tests (1)
Docker.cs (1)
65if (File.Exists(candidate))
Microsoft.AspNetCore.SpaProxy (1)
SpaHostingStartup.cs (1)
21if (File.Exists(spaProxyConfigFile))
Microsoft.AspNetCore.StaticAssets (1)
StaticAssetsEndpointRouteBuilderExtensions.cs (1)
65if (!File.Exists(manifestPath))
Microsoft.AspNetCore.StaticFiles.Tests (1)
StaticFileMiddlewareTests.cs (1)
54Assert.True(File.Exists(badLink), "Should have created a symlink");
Microsoft.AspNetCore.WebSockets.ConformanceTests (4)
Autobahn\AutobahnTester.cs (1)
55if (File.Exists(specFile))
Autobahn\Executable.cs (1)
25if (File.Exists(candidate))
Autobahn\Wstest.cs (1)
23return (location == null || !File.Exists(location)) ? null : new Wstest(location);
AutobahnTests.cs (1)
87return File.Exists(iisExpressExe) && FileVersionInfo.GetVersionInfo(iisExpressExe).FileMajorPart >= 10;
Microsoft.AspNetCore.WebUtilities.Tests (22)
FileBufferingReadStreamTests.cs (22)
128Assert.True(File.Exists(tempFileName)); 136Assert.True(File.Exists(tempFileName)); 142Assert.False(File.Exists(tempFileName)); 163Assert.False(File.Exists(stream.TempFileName)); 189Assert.True(File.Exists(tempFileName)); 197Assert.False(File.Exists(tempFileName)); 290Assert.True(File.Exists(tempFileName)); 298Assert.True(File.Exists(tempFileName)); 304Assert.False(File.Exists(tempFileName)); 321Assert.True(File.Exists(tempFileName)); 345Assert.False(File.Exists(tempFileName)); 366Assert.False(File.Exists(stream.TempFileName)); 392Assert.True(File.Exists(tempFileName)); 400Assert.False(File.Exists(tempFileName)); 419Assert.False(File.Exists(stream.TempFileName), "tempFile should not be created as yet"); 422Assert.True(File.Exists(stream.TempFileName), "tempFile should be created"); 429Assert.False(File.Exists(tempFileName)); 448Assert.False(File.Exists(stream.TempFileName), "tempFile should not be created as yet"); 451Assert.True(File.Exists(stream.TempFileName), "tempFile should be created"); 458Assert.False(File.Exists(tempFileName)); 623Assert.True(File.Exists(tempFileName)); 627Assert.False(File.Exists(tempFileName));
Microsoft.Build (11)
BackEnd\BuildManager\BuildManager.cs (2)
3274if (inputCacheFiles.Any(f => !File.Exists(f))) 3276LogErrorAndShutdown(ResourceUtilities.FormatResourceStringIgnoreCodeAndKeyword("InputCacheFilesDoNotExist", string.Join(";", inputCacheFiles.Where(f => !File.Exists(f)))));
BackEnd\Components\FileAccesses\FileAccessManager.cs (1)
147_ = File.Exists(filePath);
BuildEnvironmentHelper.cs (1)
609var existsCheck = mode == BuildEnvironmentMode.VisualStudio ? new Func<string, bool>(_ => true) : File.Exists;
DebugUtils.cs (1)
115while (File.Exists(fullPath))
Evaluation\IntrinsicFunctions.cs (1)
718if (File.Exists(pathToAssembly))
FileUtilities.cs (1)
81return !File.Exists(lowerCased);
FrameworkLocationHelper.cs (2)
1402(!File.Exists(Path.Combine(generatedPathToDotNetFramework, NativeMethodsShared.IsWindows ? "MSBuild.exe" : "mcs.exe")) && 1403!File.Exists(Path.Combine(generatedPathToDotNetFramework, "Microsoft.Build.dll"))))
Logging\BinaryLogger\ProjectImportsCollector.cs (1)
225if (checkFileExistence && !File.Exists(filePath))
ManagedFileSystem.cs (1)
146return File.Exists(path);
Microsoft.Build.BuildCheck.UnitTests (2)
EndToEndTests.cs (2)
191File.Exists(filePath).ShouldBeTrue($"File {filePath} expected to exist."); 400File.Exists(filePath).ShouldBeTrue($"File {filePath} expected to exist.");
Microsoft.Build.CommandLine.UnitTests (6)
CommandLineSwitches_Tests.cs (1)
1198if (File.Exists(filename))
XMake_Tests.cs (5)
838File.Exists(resultFile).ShouldBeTrue(); 1073else if (File.Exists(path)) 1163File.Exists(logFile).ShouldBeTrue(); 1195File.Exists(_pathToArbitraryBogusFile).ShouldBeTrue(); 1210File.Exists(_pathToArbitraryBogusFile).ShouldBeTrue();
Microsoft.Build.Engine.OM.UnitTests (20)
BuildEnvironmentHelper.cs (1)
609var existsCheck = mode == BuildEnvironmentMode.VisualStudio ? new Func<string, bool>(_ => true) : File.Exists;
Construction\ProjectImportElement_Tests.cs (1)
273if (File.Exists(targetsFile))
Construction\ProjectRootElement_Tests.cs (2)
640Assert.True(File.Exists(path)); 672Assert.True(File.Exists(file));
DebugUtils.cs (1)
115while (File.Exists(fullPath))
Definition\ProjectItem_Tests.cs (4)
351if (File.Exists(directory)) 357if (File.Exists(subdirectory)) 398if (File.Exists(directory)) 404if (File.Exists(subdirectory))
Definition\ProtectImports_Tests.cs (1)
115if (File.Exists(_importFilename))
FileUtilities.cs (1)
81return !File.Exists(lowerCased);
Instance\ProjectInstance_Tests.cs (4)
640if (File.Exists(projectA)) 645if (File.Exists(projectB)) 650if (File.Exists(includeFileA)) 655if (File.Exists(includeFileB))
ManagedFileSystem.cs (1)
146return File.Exists(path);
ObjectModelRemoting\LinkedEvaluationModify_Tests.cs (3)
48Assert.True(File.Exists(proj1Path)); 49Assert.False(File.Exists(savedPath)); 68Assert.True(File.Exists(savedPath));
WindowsFileSystem.cs (1)
72return File.Exists(path);
Microsoft.Build.Engine.UnitTests (44)
BackEnd\LoggingServicesLogMethod_Tests.cs (2)
486if (File.Exists(targetsFile)) 491if (File.Exists(projectFile))
BackEnd\RequestBuilder_Tests.cs (1)
280if (File.Exists(fileName))
BackEnd\TargetUpToDateChecker_Tests.cs (8)
622if (File.Exists(path)) 935if (File.Exists(input1)) 940if (File.Exists(input2)) 945if (File.Exists(output1)) 950if (File.Exists(output2)) 1078if (File.Exists(inputTarget)) 1083if (File.Exists(inputSymlink)) 1088if (File.Exists(outputTarget))
BackEnd\TaskBuilder_Tests.cs (2)
1003if (File.Exists(projectAPath)) 1008if (File.Exists(projectBPath))
BackEnd\TaskExecutionHost_Tests.cs (1)
1089File.Exists(ExceptionHandling.DumpFilePath).ShouldBe(isCritical,
BinaryLogger_Tests.cs (2)
668File.Exists(binaryLogger.FilePath).ShouldBeTrue(); 689File.Exists(binaryLogger.FilePath).ShouldBeTrue();
Construction\SolutionFilter_Tests.cs (1)
210Assert.False(File.Exists("C:\\notAPath2\\MSBuild.Dev.sln"));
Construction\SolutionProjectGenerator_Tests.cs (1)
2041Assert.True(File.Exists(solution.FullPath + ".metaproj")); // "Solution parser should have written in-memory project to disk"
Definition\ProjectEvaluationContext_Tests.cs (1)
816if (File.Exists(theFile))
Definition\ToolsetConfigurationReaderTestHelper.cs (1)
36if (File.Exists(configFilePath))
EscapingInProjects_Tests.cs (1)
658if (File.Exists(projectAbsolutePath))
Evaluation\Evaluator_Tests.cs (1)
5228if (File.Exists(directory))
Evaluation\Expander_Tests.cs (1)
5148File.Exists(reflectionInfoPath).ShouldBeFalse();
ExpressionTree_Tests.cs (1)
124if (File.Exists(fileThatMustAlwaysExist))
ExpressionTreeExpression_Tests.cs (1)
419if (File.Exists(file))
FileLogger_Tests.cs (1)
341Assert.False(File.Exists(log));
FileUtilities_Tests.cs (4)
774Assert.True(File.Exists(path)); 796Assert.True(File.Exists(path)); 819Assert.True(File.Exists(path)); 842Assert.True(File.Exists(path));
Graph\ResultCacheBasedBuilds_Tests.cs (1)
142File.Exists(outputCache).ShouldBeTrue();
TypeLoader_Dependencies_Tests.cs (8)
73File.Exists(originalTaskDllPath).ShouldBeTrue(); 74File.Exists(originalDependencyDllPath).ShouldBeTrue(); 81File.Exists(newTaskDllPath).ShouldBeTrue(); 82File.Exists(newDependencyDllPath).ShouldBeTrue(); 90File.Exists(newTaskDllPath).ShouldBeTrue(); 91File.Exists(newDependencyDllPath).ShouldBeTrue(); 92File.Exists(originalTaskDllPath).ShouldBeFalse(); 93File.Exists(originalDependencyDllPath).ShouldBeFalse();
TypeLoader_Tests.cs (5)
176Assert.True(File.Exists(originalDllPath)); 182Assert.True(File.Exists(newDllPath)); 188Assert.True(File.Exists(newDllPath)); 189Assert.False(File.Exists(originalDllPath)); 205Assert.False(File.Exists(newDllPath));
Microsoft.Build.Framework (3)
NativeMethods.cs (3)
1212return File.Exists(path) 1854: File.Exists(fullPath); 1869: File.Exists(path) || Directory.Exists(path);
Microsoft.Build.Tasks.CodeAnalysis (8)
src\Compilers\Core\MSBuildTask\CopyRefAssembly.cs (2)
36if (!File.Exists(SourcePath)) 42if (File.Exists(DestinationPath))
src\Compilers\Core\MSBuildTask\GenerateMSBuildEditorConfig.cs (1)
117if (File.Exists(targetFileName))
src\Compilers\Core\MSBuildTask\ManagedCompiler.cs (1)
1157if (!File.Exists(reference.ItemSpec))
src\Compilers\Shared\BuildServerConnection.cs (3)
440if (!File.Exists(processFilePath)) 461if (!File.Exists(serverInfo.processFilePath)) 723if (!File.Exists(FilePath))
src\Compilers\Shared\RuntimeHostInfo.cs (1)
62if (File.Exists(filePath))
Microsoft.Build.Tasks.CodeAnalysis.Sdk (8)
src\Compilers\Core\MSBuildTask\CopyRefAssembly.cs (2)
36if (!File.Exists(SourcePath)) 42if (File.Exists(DestinationPath))
src\Compilers\Core\MSBuildTask\GenerateMSBuildEditorConfig.cs (1)
117if (File.Exists(targetFileName))
src\Compilers\Core\MSBuildTask\ManagedCompiler.cs (1)
1157if (!File.Exists(reference.ItemSpec))
src\Compilers\Shared\BuildServerConnection.cs (3)
440if (!File.Exists(processFilePath)) 461if (!File.Exists(serverInfo.processFilePath)) 723if (!File.Exists(FilePath))
src\Compilers\Shared\RuntimeHostInfo.cs (1)
62if (File.Exists(filePath))
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (7)
GenerateMSBuildEditorConfigTests.cs (1)
376Assert.True(File.Exists(fileName));
TestUtilities\DotNetSdkTestBase.cs (6)
73=> dotnetDir != null && File.Exists(Path.Combine(dotnetDir, s_dotnetExeName)) && Directory.Exists(GetSdkPath(dotnetDir, s_dotnetSdkVersion)); 177Assert.True(File.Exists(csharpCoreTargets)); 178Assert.True(File.Exists(visualBasicCoreTargets)); 196Assert.True(File.Exists(Path.Combine(ObjDir.Path, "project.assets.json"))); 197Assert.True(File.Exists(Path.Combine(ObjDir.Path, ProjectFileName + ".nuget.g.props"))); 198Assert.True(File.Exists(Path.Combine(ObjDir.Path, ProjectFileName + ".nuget.g.targets")));
Microsoft.Build.Tasks.Core (13)
AddToWin32Manifest.cs (1)
92if (string.IsNullOrEmpty(ApplicationManifest.ItemSpec) || !File.Exists(ApplicationManifest?.ItemSpec))
BuildEnvironmentHelper.cs (1)
609var existsCheck = mode == BuildEnvironmentMode.VisualStudio ? new Func<string, bool>(_ => true) : File.Exists;
ComReferenceInfo.cs (1)
149this.strippedTypeLibPath = ComReference.StripTypeLibNumberFromPath(path, File.Exists);
CreateManifestResourceName.cs (1)
192if (File.Exists(Path.Combine(Path.GetDirectoryName(fileName), conventionDependentUpon)))
DebugUtils.cs (1)
115while (File.Exists(fullPath))
FileUtilities.cs (1)
81return !File.Exists(lowerCased);
GetAssembliesMetadata.cs (1)
42if (File.Exists(assemblyPath))
ManagedFileSystem.cs (1)
146return File.Exists(path);
RoslynCodeTaskFactory\RoslynCodeTaskFactory.cs (3)
570.FirstOrDefault(p => File.Exists(Path.Combine(p, assemblyFileName))); 601if (File.Exists(path)) 608if (File.Exists(path))
RoslynCodeTaskFactory\RoslynCodeTaskFactoryCompilers.cs (1)
46return possibleLocations.Select(possibleLocation => possibleLocation()).FirstOrDefault(File.Exists);
Touch.cs (1)
152File.Exists,
Microsoft.Build.Tasks.UnitTests (115)
AssemblyDependency\ResolveAssemblyReferenceCacheSerialization.cs (1)
37if (File.Exists(_rarCacheFile))
AssemblyDependency\ResolveAssemblyReferenceTestFixture.cs (3)
834if (File.Exists(path) && useFrameworkFileExists) 3114if (File.Exists(redistListPath)) 3119if (File.Exists(rarCacheFile))
Copy_Tests.cs (13)
1200Assert.True(File.Exists(destinationFile)); // "Expected the destination file to exist." 1873Assert.True(File.Exists(destFile)); // "destination exists" 1945Assert.True(File.Exists(destFile)); // "destination exists" 2147Assert.False(File.Exists(outFile1)); 2232Assert.False(File.Exists(destinationFile)); 2573Assert.True(File.Exists(destFile)); // "destination exists" 2663Assert.True(File.Exists(destFile1)); // "destination exists" 2664Assert.True(File.Exists(destFile2)); // "destination exists" 2759Assert.True(File.Exists(destFile)); // "destination exists" 2828Assert.True(File.Exists(destFile)); // "destination exists" 2959File.Exists(destFile).ShouldBeTrue(); 2976File.Exists(destFile).ShouldBeTrue(); 2997File.Exists(sourceFile2.Path).ShouldBeTrue();
FileStateTests.cs (1)
195if (File.Exists(file))
Move_Tests.cs (17)
48Assert.False(File.Exists(sourceFile)); // "Expected the source file to be gone." 49Assert.True(File.Exists(destinationFile)); // "Expected the destination file to exist." 94Assert.False(File.Exists(sourceFile)); // "Expected the source file to be gone." 95Assert.True(File.Exists(destinationFile)); // "Expected the destination file to exist." 103if (File.Exists(sourceFile)) 142Assert.False(File.Exists(sourceFile)); // "Expected the source file to still not exist." 143Assert.True(File.Exists(destinationFile)); // "Expected the destination file to still exist." 190Assert.True(File.Exists(sourceFile)); // "Source file should be there" 231Assert.True(File.Exists(sourceFile)); // "Source file should be present" 283Assert.False(File.Exists(sourceFile)); // "Source file should be gone" 339Assert.False(File.Exists(sourceFile)); // "Source file should be gone" 393Assert.False(File.Exists(sourceFile)); // "Source file should be gone" 517Assert.False(File.Exists(file + "2")); 620Assert.True(File.Exists(file)); // "Source file should be there" 702Assert.False(File.Exists(sourceFile)); // "source gone" 703Assert.True(File.Exists(destFile)); // "destination exists" 767Assert.False(File.Exists(outFile1));
PortableTasks_Tests.cs (1)
63File.Exists(projFile).ShouldBeTrue($"Project file {projFile} does not exist");
RARPrecomputedCache_Tests.cs (1)
47File.Exists(standardCache.Path).ShouldBeFalse();
ResolveAssemblyReference_CustomCultureTests.cs (2)
73File.Exists(cultureResourcePath).ShouldBeTrue($"Expected '{customCultureName}' resource DLL not found at: {cultureResourcePath}"); 77File.Exists(cultureResourcePath).ShouldBeFalse($"Unexpected '{customCultureName}' culture DLL was found at: {cultureResourcePath}");
ResourceHandling\GenerateResource_Tests.cs (51)
93if (File.Exists(item.ItemSpec)) 176if (File.Exists(item.ItemSpec)) 441if (File.Exists(item.ItemSpec)) 561File.Exists(outputResource) 659if (File.Exists(item.ItemSpec)) 771if (File.Exists(item.ItemSpec)) 962if (!File.Exists(file.ItemSpec)) 1006if (additionalInputs?[0] != null && File.Exists(additionalInputs[0].ItemSpec)) 1011if (additionalInputs?[1] != null && File.Exists(additionalInputs[1].ItemSpec)) 1176Assert.True(File.Exists(stronglyTypedFileName)); 1202if (File.Exists(item.ItemSpec)) 1240Assert.True(File.Exists(stronglyTypedFileName)); 1280if (File.Exists(item.ItemSpec)) 1287if (File.Exists(item.ItemSpec)) 1325Assert.True(File.Exists(resourcesFile)); 1327Assert.True(File.Exists(strFile)); 1355Assert.True(File.Exists(resourcesFile)); 1357Assert.True(File.Exists(strFile)); 1370Assert.True(File.Exists(strFile)); 1418Assert.True(File.Exists(resourcesFile)); 1423Assert.True(File.Exists(strFile)); 1483Assert.True(File.Exists(stronglyTypedFileName)); 1509if (File.Exists(item.ItemSpec)) 1543Assert.True(File.Exists(STRfile)); 1562if (File.Exists(item.ItemSpec)) 1601Assert.True(File.Exists(STRfile)); 1786Assert.False(File.Exists(resourcesFile1)); 1790Assert.True(File.Exists(resourcesFile2)); 1865Assert.False(File.Exists(resourcesFile1)); 1869Assert.True(File.Exists(resourcesFile2)); 2151Assert.False(File.Exists(resourcesFile)); 2306Assert.True(File.Exists(t.FilesWritten[i].ItemSpec)); 2353Assert.True(File.Exists(t.OutputResources[0].ItemSpec)); 2356Assert.True(File.Exists(t.OutputResources[1].ItemSpec)); 2359Assert.False(File.Exists(outputFile)); 2363Assert.True(File.Exists(t.OutputResources[2].ItemSpec)); 2397if (File.Exists(item.ItemSpec)) 2443if (File.Exists(item.ItemSpec)) 2474Assert.True(File.Exists(t.StronglyTypedFileName)); 2489if (File.Exists(item.ItemSpec)) 2588Assert.True(File.Exists(resourcesFile)); 2886Assert.False(File.Exists(resourcesFile)); 2923Assert.False(File.Exists(resourcesFile)); 2960Assert.False(File.Exists(resourcesFile)); 3004Assert.False(File.Exists(resourcesFile)); 3005Assert.False(File.Exists(csFile)); 3119Assert.True(File.Exists(p2pReference)); // "lib1.dll doesn't exist." 3654if (File.Exists(item.ItemSpec)) 3826Assert.True(File.Exists(t.StateFile.ItemSpec)); // "State file should exist" 4258Assert.True(File.Exists(t.StronglyTypedFileName)); 4299if (File.Exists(item.ItemSpec))
ResourceHandling\MSBuildResXReader_Tests.cs (1)
139File.Exists(Path.Combine("ResourceHandling", "TextFile1.txt")).ShouldBeTrue("Test deployment is missing None files");
Unzip_Tests.cs (1)
481File.Exists(unzippedFilePath).ShouldBeTrue();
WriteCodeFragment_Tests.cs (15)
91Assert.True(File.Exists(file)); 116Assert.True(File.Exists(expectedFile)); 136Assert.True(File.Exists(task.OutputFile.ItemSpec)); 160Assert.True(File.Exists(file.Path)); 185Assert.True(File.Exists(file)); 199if (File.Exists(file)) 213Assert.False(File.Exists(file)); 226if (File.Exists(file)) 240Assert.False(File.Exists(file)); 300Assert.True(File.Exists(file)); 381Assert.True(File.Exists(task.OutputFile.ItemSpec)); 404Assert.True(File.Exists(task.OutputFile.ItemSpec)); 431Assert.True(File.Exists(file)); 1118if ((task.OutputFile is not null) && File.Exists(task.OutputFile.ItemSpec)) 1142if ((task.OutputFile is not null) && File.Exists(task.OutputFile.ItemSpec))
WriteLinesToFile_Tests.cs (5)
43Assert.False(File.Exists(a.File.ItemSpec)); 330File.Exists(file.Path).ShouldBeTrue(); 341File.Exists(file.Path).ShouldBeTrue(); 357File.Exists(file.Path).ShouldBeFalse(); 367File.Exists(file.Path).ShouldBeTrue();
XslTransformation_Tests.cs (3)
808File.Exists(xmlInputPath).ShouldBeFalse(); 811File.Exists(xslInputPath).ShouldBeFalse(); 972Assert.True(File.Exists(tsk.ItemSpec), tsk.ItemSpec + " should exist on output dir");
Microsoft.Build.UnitTests.Shared (4)
EnvironmentProvider.cs (1)
67.FirstOrDefault(File.Exists);
ObjectModelHelpers.cs (1)
2181return File.Exists(path);
RequiresSymbolicLinksFactAttribute.cs (2)
44if (File.Exists(sourceFile)) 48if (File.Exists(destinationFile))
Microsoft.Build.Utilities.Core (8)
BuildEnvironmentHelper.cs (1)
609var existsCheck = mode == BuildEnvironmentMode.VisualStudio ? new Func<string, bool>(_ => true) : File.Exists;
DebugUtils.cs (1)
115while (File.Exists(fullPath))
FileUtilities.cs (1)
81return !File.Exists(lowerCased);
FrameworkLocationHelper.cs (2)
1402(!File.Exists(Path.Combine(generatedPathToDotNetFramework, NativeMethodsShared.IsWindows ? "MSBuild.exe" : "mcs.exe")) && 1403!File.Exists(Path.Combine(generatedPathToDotNetFramework, "Microsoft.Build.dll"))))
ManagedFileSystem.cs (1)
146return File.Exists(path);
ToolLocationHelper.cs (2)
2863FileExists fileExists = new FileExists(File.Exists); 3587if (!File.Exists(toolPath))
Microsoft.Build.Utilities.UnitTests (2)
ToolLocationHelper_Tests.cs (1)
179if (!File.Exists(platformFilePath))
ToolTask_Tests.cs (1)
861File.Exists(output.Path).ShouldBeTrue();
Microsoft.Cci.Extensions (6)
Extensions\DocIdExtensions.cs (1)
89if (!File.Exists(docIdsFile))
Filters\BaselineDifferenceFilter.cs (1)
26if (!File.Exists(baselineFile))
HostEnvironment.cs (4)
117if (File.Exists(path)) 147if (File.Exists(assemblyPath)) 153if (File.Exists(combinedPath)) 200if (File.Exists(path))
Microsoft.CodeAnalysis (13)
AssemblyUtilities.cs (2)
39if (File.Exists(satelliteAssemblyPath)) 45if (File.Exists(satelliteAssemblyPath))
CommandLine\CommandLineArguments.cs (1)
567string? resolvedPath = FileUtilities.ResolveRelativePath(reference.FilePath, basePath: null, baseDirectory: BaseDirectory, searchPaths: ReferencePaths, fileExists: File.Exists);
CommandLine\CommonCompiler.cs (1)
130if (!SuppressDefaultResponseFile(args) && File.Exists(responseFile))
DiagnosticAnalyzer\AnalyzerAssemblyLoader.cs (1)
318if (File.Exists(filePath))
DiagnosticAnalyzer\ShadowCopyAnalyzerPathResolver.cs (1)
237if (File.Exists(originalPath))
FileSystem\ICommonCompilerFileSystem.cs (1)
61public bool FileExists(string filePath) => File.Exists(filePath);
FileSystem\RelativePathResolver.cs (1)
51return File.Exists(fullPath);
RuleSet\RuleSetInclude.cs (2)
112if (File.Exists(includePath)) 121if (File.Exists(includePath))
SourceFileResolver.cs (1)
121return File.Exists(resolvedPath);
StrongName\StrongNameFileSystem.cs (1)
40return File.Exists(fullPath);
XmlFileResolver.cs (1)
87return File.Exists(resolvedPath);
Microsoft.CodeAnalysis.CodeStyle (1)
src\Compilers\Core\Portable\FileSystem\RelativePathResolver.cs (1)
51return File.Exists(fullPath);
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Helpers\MefHostServicesHelpers.cs (1)
66if (File.Exists(potentialAssemblyPath))
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (27)
CommandLineTests.cs (26)
155Assert.True(File.Exists(exePath)); 4514if (System.IO.File.Exists(exeName)) 7103if (System.IO.File.Exists(expectedOutputName)) 8266Assert.True(File.Exists(Path.Combine(dir.ToString(), "a.xml"))); 11382Assert.True(File.Exists(Path.Combine(dir.ToString(), "doc.xml"))); 11634Assert.True(File.Exists(exePath)); 11635Assert.True(File.Exists(pdbPath)); 11814Assert.True(File.Exists(exe)); 11823Assert.True(File.Exists(doc)); 11847Assert.True(File.Exists(refDll)); 11878Assert.False(File.Exists(dll)); 11881Assert.False(File.Exists(refDll)); 11930Assert.True(File.Exists(refDll)); 11941Assert.False(File.Exists(pdb)); 11944Assert.True(File.Exists(doc)); 12305Assert.True(File.Exists(exePath)); 13492Assert.True(File.Exists(binaryPath) == !warnAsError); 13495Assert.True(File.Exists(pdbPath) == !warnAsError); 13498Assert.True(File.Exists(xmlDocFilePath) == !warnAsError); 13538Assert.True(File.Exists(binaryPath) == !analyzerConfigSetToError); 13541Assert.True(File.Exists(pdbPath) == !analyzerConfigSetToError); 13544Assert.True(File.Exists(xmlDocFilePath) == !analyzerConfigSetToError); 13588Assert.True(File.Exists(binaryPath) == !rulesetSetToError); 13591Assert.True(File.Exists(pdbPath) == !rulesetSetToError); 13594Assert.True(File.Exists(xmlDocFilePath) == !rulesetSetToError); 13619Assert.True(File.Exists(binaryPath) == !warnAsError);
SarifV2ErrorLoggerTests.cs (1)
669Assert.False(File.Exists(Path.Combine(mappedDir.Path, "otherfile.cs")));
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (2)
Emit\CompilationEmitTests.cs (2)
4643Assert.True(File.Exists(dllPath), "DLL does not exist"); 4644Assert.True(File.Exists(pdbPath), "PDB does not exist");
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Symbols\CompilationCreationTests.cs (1)
2661if (File.Exists(reference))
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
MetadataAsSource\AbstractMetadataAsSourceTests.TestContext.cs (1)
120Assert.True(File.Exists(portableExecutable.FilePath), $"'{portableExecutable.FilePath}' does not exist for reference '{portableExecutable.Display}'");
Microsoft.CodeAnalysis.ExternalAccess.Razor.Features (2)
RazorAnalyzerAssemblyResolver.cs (2)
66if (File.Exists(onDiskName)) 99if (File.Exists(assemblyPath))
Microsoft.CodeAnalysis.Features (9)
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.AbstractGlobalSuppressMessageCodeAction.cs (1)
100if (hasDocWithSuppressionsName || File.Exists(suppressionsFilePath))
Diagnostics\DiagnosticAnalyzerExtensions.cs (1)
39if (path == null || !File.Exists(path))
MetadataAsSource\DecompilationMetadataAsSourceFileProvider.cs (1)
111if (!File.Exists(fileInfo.TemporaryFilePath))
PdbSourceDocument\ImplementationAssemblyLookupService.cs (3)
69while (File.Exists(dllPath)) 137if (IOUtilities.PerformIO(() => File.Exists(pathToTry))) 183if (IOUtilities.PerformIO(() => File.Exists(dllPath)))
PdbSourceDocument\PdbFileLocatorService.cs (1)
126if (File.Exists(fileName))
PdbSourceDocument\PdbSourceDocumentLoaderService.cs (2)
55if (File.Exists(filePath) && 170if (File.Exists(sourceDocument.FilePath))
Microsoft.CodeAnalysis.InteractiveHost (2)
Interactive\Core\InteractiveHost.Service.cs (2)
520if (File.Exists(initializationFilePath)) 627return File.Exists(file);
Microsoft.CodeAnalysis.LanguageServer (10)
CustomExportAssemblyLoader.cs (1)
125if (!File.Exists(codeBasePath))
DotnetCliHelper.cs (2)
116Contract.ThrowIfFalse(File.Exists(vstestConsole), $"VSTestConsole was not found at {vstestConsole}"); 138if (File.Exists(filePath))
HostWorkspace\HostDiagnosticAnalyzerProvider.cs (2)
19if (File.Exists(razorSourceGenerator)) 38if (!File.Exists(dependency))
HostWorkspace\LanguageServerWorkspaceFactory.cs (1)
94if (File.Exists(analyzerPath))
HostWorkspace\ProjectDependencyHelper.cs (1)
53if (!File.Exists(projectAssetsPath))
Services\ExtensionAssemblyManager.cs (3)
87if (!File.Exists(assemblyFilePath)) 149if (File.Exists(assemblyPath)) 214if (File.Exists(assemblyPath))
Microsoft.CodeAnalysis.LanguageServer.Protocol (3)
Features\DecompiledSource\AssemblyResolver.cs (2)
141if (File.Exists(reference.Display)) 159if (!File.Exists(moduleFileName))
Handler\InlineCompletions\XmlSnippetParser.cs (1)
92if (!File.Exists(path))
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (1)
InlineCompletions\TestSnippetInfoService.cs (1)
29if (!File.Exists(snippetsFile))
Microsoft.CodeAnalysis.Remote.ServiceHub (2)
Host\RemoteAnalyzerPathResolver.cs (1)
24=> File.Exists(GetFixedPath(originalAnalyzerPath));
src\VisualStudio\Core\Def\UnusedReferences\ProjectAssets\ProjectAssetsFileReader.cs (1)
22var doesProjectAssetsFileExist = IOUtilities.PerformIO(() => File.Exists(projectAssetsFilePath));
Microsoft.CodeAnalysis.Remote.Workspaces (1)
ExportProviderBuilder.cs (1)
58if (File.Exists(compositionCacheFile))
Microsoft.CodeAnalysis.Scripting (14)
Hosting\AssemblyLoader\InteractiveAssemblyLoader.cs (1)
334if (File.Exists(path))
Hosting\AssemblyLoader\MetadataShadowCopyProvider.cs (4)
513if (File.Exists(dir) || Directory.Exists(dir)) 527if (File.Exists(dir)) 593if (File.Exists(Path.Combine(assemblyDirectory, docSubdirectory, docFileName))) 603if (File.Exists(Path.Combine(assemblyDirectory, docFileName)))
Hosting\Resolvers\RuntimeMetadataReferenceResolver.cs (2)
127if (File.Exists(fullPath)) 199=> TrustedPlatformAssemblies.TryGetValue(name, out var path) && File.Exists(path) ? CreateFromFile(path, properties) : null;
src\Compilers\Core\Portable\FileSystem\RelativePathResolver.cs (1)
51return File.Exists(fullPath);
src\Compilers\Shared\GlobalAssemblyCacheHelpers\GacFileResolver.cs (1)
77return File.Exists(path) ? path : null;
src\Compilers\Shared\GlobalAssemblyCacheHelpers\MonoGlobalAssemblyCache.cs (5)
46if (!File.Exists(corlibFriendPath)) 54if (File.Exists(corlibFriendPath)) 89if (File.Exists(assemblyPath)) 112if (!File.Exists(assemblyPath)) 189if (!File.Exists(assemblyPath))
Microsoft.CodeAnalysis.Scripting.TestUtilities (3)
TestRuntimeMetadataReferenceResolver.cs (3)
32if (File.Exists(testDependencyAssemblyPath)) 39if (File.Exists(fxAssemblyPath)) 51if (File.Exists(reference))
Microsoft.CodeAnalysis.Test.Utilities (2)
DotNetCoreSdk.cs (1)
29&& File.Exists(Path.Combine(directory, dotNetExeName));
Platform\CoreClr\AssemblyLoadContextUtils.cs (1)
33if (File.Exists(assemblyPath))
Microsoft.CodeAnalysis.UnitTests (2)
ShadowCopyAnalyzerPathResolverTests.cs (2)
57Assert.False(File.Exists(shadowPath)); 66Assert.True(File.Exists(shadowPath));
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (26)
CommandLineTests.vb (26)
247Assert.True(File.Exists(exePath)) 2516If resolvedPath Is Nothing OrElse Not File.Exists(reference) Then 3657Assert.True(File.Exists(exePath)) 3658Assert.True(File.Exists(pdbPath)) 4141Assert.True(File.Exists(Path.Combine(dir.ToString(), "a.xml"))) 4267Assert.True(File.Exists(Path.Combine(dir.ToString(), "a.xml"))) 4286Assert.True(File.Exists(Path.Combine(dir.ToString(), "MyXml.xml"))) 4305Assert.True(File.Exists(Path.Combine(dir.ToString(), "a.xml"))) 4324Assert.True(File.Exists(Path.Combine(dir.ToString(), "doc.xml"))) 4343Assert.True(File.Exists(Path.Combine(dir.ToString(), "out.xml"))) 4362Assert.True(File.Exists(Path.Combine(dir.ToString(), "out.xml"))) 5778If System.IO.File.Exists(expectedOutputName) Then 7160Assert.True(File.Exists(defaultResponseFile)) 7226Assert.True(File.Exists(defaultResponseFile)) 8675Assert.True(File.Exists(Path.Combine(dir.ToString(), "doc.xml"))) 9367Assert.True(File.Exists(exe)) 9376Assert.True(File.Exists(doc)) 9402Assert.True(File.Exists(refDll)) 9440Assert.False(File.Exists(dll)) 9443Assert.False(File.Exists(refDll)) 9485Assert.True(File.Exists(refDll)) 9496Assert.False(File.Exists(pdb)) 9499Assert.True(File.Exists(doc)) 9572Assert.True(File.Exists(Path.Combine(dir.Path, expectedFile)), "Expected to find: " & expectedFile) 9573Assert.False(File.Exists(Path.Combine(dir.Path, unexpectedFile)), "Didn't expect to find: " & unexpectedFile) 9714Assert.True(File.Exists(exePath))
Microsoft.CodeAnalysis.Workspaces (7)
Rename\ConflictEngine\MutableConflictResolution.cs (2)
102if (File.Exists(document.FilePath)) 109while (File.Exists(newDocumentFilePath))
src\Compilers\Core\Portable\DiagnosticAnalyzer\AnalyzerAssemblyLoader.cs (1)
318if (File.Exists(filePath))
src\Compilers\Core\Portable\DiagnosticAnalyzer\ShadowCopyAnalyzerPathResolver.cs (1)
237if (File.Exists(originalPath))
src\Compilers\Core\Portable\FileSystem\RelativePathResolver.cs (1)
51return File.Exists(fullPath);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Helpers\MefHostServicesHelpers.cs (1)
66if (File.Exists(potentialAssemblyPath))
Utilities\Documentation\XmlDocumentationProvider.cs (1)
50if (!File.Exists(xmlDocCommentFilePath))
Microsoft.CodeAnalysis.Workspaces.MSBuild (12)
MSBuild\BuildHostProcessManager.cs (1)
232if (!File.Exists(buildHostPath))
MSBuild\MSBuildProjectLoader.Worker.cs (1)
426if (fullPath != null && File.Exists(fullPath))
MSBuild\MSBuildProjectLoader.Worker_ResolveReferences.cs (5)
320if (outputRefFilePath != null && !File.Exists(outputRefFilePath)) 326if (outputFilePath != null && !File.Exists(outputFilePath)) 346&& File.Exists(outputFilePath); 359if ((builder.Contains(outputFilePath) && File.Exists(outputFilePath)) || 360(builder.Contains(outputRefFilePath) && File.Exists(outputRefFilePath)))
MSBuild\MSBuildWorkspace.cs (1)
528if (File.Exists(fullPath))
MSBuild\PathResolver.cs (2)
34if (!File.Exists(absolutePath)) 59if (!File.Exists(absolutePath))
MSBuild\SolutionFileReader.SolutionFilterReader.cs (1)
40if (!File.Exists(solutionFilename))
src\Workspaces\MSBuild\BuildHost\Rpc\Contracts\MonoMSBuildDiscovery.cs (1)
77.FirstOrDefault(File.Exists);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
Rpc\Contracts\MonoMSBuildDiscovery.cs (1)
77.FirstOrDefault(File.Exists);
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (6)
MSBuildWorkspaceTestBase.cs (1)
135if (!File.Exists(p1.OutputFilePath))
NetCoreTests.cs (1)
554Assert.True(File.Exists(depsJsonFile), $"{depsJsonFile} should exist, or it won't load on some runtimes.");
NewlyCreatedProjectsFromDotNetNew.cs (1)
41if (File.Exists(globalJsonPath))
VisualStudioMSBuildWorkspaceTests.cs (3)
323Assert.False(File.Exists(p1.OutputFilePath)); 1984Assert.True(File.Exists(fooDoc.FilePath)); 2084Assert.False(File.Exists(document.FilePath));
Microsoft.Data.Analysis (1)
TextFieldParser.cs (1)
585if (!File.Exists(path))
Microsoft.Data.Analysis.Tests (2)
DataFrame.IOTests.cs (1)
1333if (File.Exists(SQLitePath))
src\Microsoft.Data.Analysis\TextFieldParser.cs (1)
585if (!File.Exists(path))
Microsoft.DotNet.Arcade.Sdk (7)
src\DownloadFile.cs (2)
62if (File.Exists(DestinationPath) && !Overwrite) 115if (File.Exists(filePath)) {
src\GenerateChecksums.cs (1)
34if (!File.Exists(item.ItemSpec))
src\InstallDotNetCore.cs (3)
45if (!File.Exists(GlobalJsonPath)) 50if (!File.Exists(DotNetInstallScript)) 84if (!File.Exists(VersionsPropsPath))
src\LocateDotNet.cs (1)
71var dotNetDir = paths.Split(new[] { ';' }, StringSplitOptions.RemoveEmptyEntries).FirstOrDefault(p => File.Exists(Path.Combine(p, fileName)));
Microsoft.DotNet.Arcade.Sdk.Tests (2)
GenerateResxSourceTests.cs (2)
47if (File.Exists(actualFile)) 56Assert.True(File.Exists(actualFile), "Actual file does not exist");
Microsoft.DotNet.Build.Manifest.Tests (1)
BuildModelFactoryTests.cs (1)
572if (File.Exists(tempXmlFile))
Microsoft.DotNet.Build.Tasks.Feed (7)
src\common\UploadToAzure.cs (1)
97if (!File.Exists(item.ItemSpec))
src\PublishArtifactsInManifestBase.cs (5)
696if (!File.Exists(symbolPublishingExclusionsFile)) 1181if (!File.Exists(localPackagePath)) 1253if (!File.Exists(localPackagePath)) 1604if (!File.Exists(localBlobPath)) 1658if (!File.Exists(localBlobPath))
src\PublishSignedAssets.cs (1)
99if (!File.Exists(localPackagePath))
Microsoft.DotNet.Build.Tasks.Feed.Tests (5)
DownloadFileTests.cs (5)
87File.Exists(path).Should().BeTrue(); 156File.Exists(path).Should().BeTrue(); 231File.Exists(path).Should().BeTrue(); 241File.Exists(path2).Should().BeTrue(); 434File.Exists(path).Should().BeTrue();
Microsoft.DotNet.Build.Tasks.Installers (6)
src\BuildFPMToolPreReqs.cs (3)
37if (!File.Exists(ConfigJsonFile)) 68if (!File.Exists(changelogFile)) 96if (!File.Exists(copyrightFile))
src\CreateWixCommandPackageDropBase.cs (3)
68if(File.Exists(OutputFile)) 293if (File.Exists(possiblePath)) 301else if (File.Exists(oldPath))
Microsoft.DotNet.Build.Tasks.Packaging (12)
GenerateNuSpec.cs (1)
133if (!File.Exists(OutputFileName))
GetApplicableAssetsFromPackages.cs (1)
208if (File.Exists(pdbPath))
GetAssemblyReferences.cs (1)
50if (!File.Exists(assemblyItem.ItemSpec))
GetLayoutFiles.cs (1)
139if (File.Exists(symbolSource))
GetPackageDescription.cs (1)
55if (!File.Exists(descriptionPath))
GetRuntimeJsonValues.cs (1)
31if (string.IsNullOrEmpty(JsonFilename) || !File.Exists(JsonFilename))
GetRuntimeTargets.cs (1)
30if (string.IsNullOrEmpty(JsonFilename) || !File.Exists(JsonFilename))
NuGetPack.cs (2)
160if (!File.Exists(nuspecPath)) 356file.Source = File.Exists(packedPackageSourcePath) ? packedPackageSourcePath : fileName;
PackageItem.cs (1)
76if (_version == null && IsDll && File.Exists(SourcePath))
src\Common\Internal\AssemblyResolver.cs (1)
95if (File.Exists(filePath))
UpdatePackageIndex.cs (1)
91PackageIndex index = File.Exists(indexFilePath) ?
Microsoft.DotNet.Build.Tasks.Packaging.Tests (5)
GenerateNuSpecAndPackTests.cs (3)
30if (File.Exists(nuspec)) 45File.Exists(nuspec).Should().BeTrue(); 54File.Exists($"{generateNuSpec.Id}.{generateNuSpec.Version}.nupkg").Should().BeTrue();
RuntimeGraphTests.cs (2)
20if (File.Exists(file)) 32File.Exists(file).Should().BeTrue();
Microsoft.DotNet.Build.Tasks.TargetFramework (1)
src\Common\Internal\AssemblyResolver.cs (1)
95if (File.Exists(filePath))
Microsoft.DotNet.Build.Tasks.Templating (1)
GenerateFileFromTemplate.cs (1)
61if (!File.Exists(TemplateFile))
Microsoft.DotNet.Build.Tasks.VisualStudio (1)
OptProf\GenerateTrainingInputFiles.cs (1)
155while (File.Exists(fullPath));
Microsoft.DotNet.Build.Tasks.Workloads (5)
CreateVisualStudioWorkload.wix.cs (1)
234if (!File.Exists(sourcePackage))
EmbeddedTemplates.cs (1)
42if (File.Exists(destinationPath))
Utils.cs (1)
198if (File.Exists(path))
WorkloadManifestPackage.wix.cs (2)
115return File.Exists(primaryManifest) ? primaryManifest : 116File.Exists(secondaryManifest) ? secondaryManifest :
Microsoft.DotNet.GenFacades (3)
NotSupportedAssemblyGenerator.cs (2)
47if (!string.IsNullOrEmpty(ApiExclusionListPath) && File.Exists(ApiExclusionListPath)) 57if (!File.Exists(sourceFile))
TypeParser.cs (1)
143if (!File.Exists(sourceFile))
Microsoft.DotNet.Helix.Sdk (1)
SendHelixJob.cs (1)
528if (File.Exists(path))
Microsoft.DotNet.Helix.Sdk.Tests (2)
HelpersTests.cs (2)
57bool exists = File.Exists(target); 61exists = File.Exists(target);
Microsoft.DotNet.Internal.SymbolHelper (5)
SymbolUploadHelper.cs (4)
65Debug.Assert(!string.IsNullOrEmpty(symbolToolPath) && (File.Exists(symbolToolPath) || options.IsDryRun)); 370if (!File.Exists(pePath)) 375if (!File.Exists(pePath)) 404while (Directory.Exists(tempDir) || File.Exists(tempDir))
SymbolUploadHelperFactory.cs (1)
77if (!options.IsDryRun && !File.Exists(expectedSymbolPath))
Microsoft.DotNet.MacOsPkg.Core (4)
AppBundle.cs (1)
29File.Exists(Path.Combine(path, "Contents", "Info.plist"));
MacOsPkgCore.cs (2)
20if (!File.Exists(srcPath) || !Utilities.IsPkg(srcPath) && !Utilities.IsAppBundle(srcPath)) 102if (!File.Exists(srcPath) || (!Utilities.IsPkg(srcPath) && !Utilities.IsAppBundle(srcPath)))
Utilities.cs (1)
29else if (File.Exists(path))
Microsoft.DotNet.MacOsPkg.Tests (2)
UnpackPackTests.cs (2)
183else if (File.Exists(path)) 204File.Exists(dstPath).Should().BeTrue();
Microsoft.DotNet.Open.Api.Tools.Tests (14)
OpenApiAddURLTests.cs (12)
39Assert.True(File.Exists(jsonFile)); 72Assert.True(File.Exists(jsonFile)); 105Assert.True(File.Exists(jsonFile)); 138Assert.True(File.Exists(jsonFile)); 170Assert.True(File.Exists(jsonFile)); 203Assert.True(File.Exists(firstJsonFile)); 231Assert.True(File.Exists(secondJsonFile)); 263Assert.True(File.Exists(resultFile)); 295Assert.True(File.Exists(resultFile)); 327Assert.True(File.Exists(resultFile)); 361Assert.True(File.Exists(resultFile)); 446Assert.False(File.Exists(jsonFile));
OpenApiRemoveTests.cs (2)
56Assert.False(File.Exists(Path.Combine(_tempDir.Root, nswagJsonFile))); 186Assert.False(File.Exists(Path.Combine(_tempDir.Root, nswagJsonFile)));
Microsoft.DotNet.RemoteExecutor (4)
RemoteExecutor.cs (3)
77if (File.Exists(dotnetExe)) 651.Where(File.Exists) 656.Where(File.Exists)
RemoteInvokeHandle.cs (1)
248if (File.Exists(Options.ExceptionFile))
Microsoft.DotNet.SharedFramework.Sdk (3)
src\Common\Internal\AssemblyResolver.cs (1)
95if (File.Exists(filePath))
src\GenerateSharedFrameworkDepsFile.cs (1)
125if (File.Exists(depsFilePath))
src\ValidateFileVersions.cs (1)
96if (File.Exists(filePath))
Microsoft.DotNet.SignCheckLibrary (2)
Verification\ArchiveVerifier.cs (1)
104if (File.Exists(aliasFullName))
Verification\Exclusions.cs (1)
45if (File.Exists(path))
Microsoft.DotNet.SignCheckTask (2)
src\SignCheck.cs (2)
271else if (File.Exists(Path.GetFullPath(inputFile))) 479if (File.Exists(downloadPath))
Microsoft.DotNet.SignTool (3)
src\SignTool.cs (1)
231if (File.Exists(zipFilePath))
src\SignToolTask.cs (1)
207if (!File.Exists(DotNetPath))
src\ZipData.cs (1)
287if (!File.Exists(outputFileName))
Microsoft.DotNet.SignTool.Tests (2)
SignToolTests.cs (2)
294if (!File.Exists(dstPath)) 2977File.Exists(outputFileName).Should().Be(!deleteWixobjBeforeRunningTool);
Microsoft.DotNet.SourceBuild.Tasks (2)
src\UsageReport\WriteUsageReports.cs (2)
79if (File.Exists(ProdConBuildManifestFile)) 93if (File.Exists(PoisonedReportFile))
Microsoft.DotNet.Tar (1)
Program.cs (1)
24if (File.Exists(srcPath))
Microsoft.DotNet.XliffTasks (2)
Model\Document.cs (1)
79if (File.Exists(path))
Tasks\XlfTask.cs (1)
73if (File.Exists(path))
Microsoft.Extensions.AI.Evaluation.Reporting (2)
Storage\DiskBasedResponseCache.cs (2)
301bool contentsFileExists = File.Exists(contentsFilePath); 302bool entryFileExists = File.Exists(entryFilePath);
Microsoft.Extensions.AI.Templates.Tests (2)
Infrastructure\WellKnownPaths.cs (2)
53if (Directory.Exists(gitPath) || File.Exists(gitPath)) 74if (!File.Exists(dotNetExePath))
Microsoft.Extensions.ApiDescription.Client.Tests (1)
src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
78if (File.Exists(candidateDotNetExePath))
Microsoft.Extensions.ApiDescription.Tool.Tests (14)
GetDocumentTests.cs (14)
155Assert.False(File.Exists(Path.Combine(outputPath.FullName, "Sample.json"))); 156Assert.False(File.Exists(Path.Combine(outputPath.FullName, "Sample_internal.json"))); 157Assert.False(File.Exists(Path.Combine(outputPath.FullName, "Sample_invalid.json"))); 183Assert.True(File.Exists(Path.Combine(outputPath.FullName, $"{fileName}.json"))); 184Assert.True(File.Exists(Path.Combine(outputPath.FullName, $"{fileName}_internal.json"))); 185Assert.False(File.Exists(Path.Combine(outputPath.FullName, "Sample.json"))); 186Assert.False(File.Exists(Path.Combine(outputPath.FullName, "Sample_internal.json"))); 212Assert.False(File.Exists(Path.Combine(outputPath.FullName, $"{fileName}.json"))); 213Assert.False(File.Exists(Path.Combine(outputPath.FullName, "Sample.json"))); 214Assert.False(File.Exists(Path.Combine(outputPath.FullName, "Sample_internal.json"))); 236Assert.False(File.Exists(Path.Combine(outputPath.FullName, ".json"))); 237Assert.False(File.Exists(Path.Combine(outputPath.FullName, "_internal.json"))); 238Assert.True(File.Exists(Path.Combine(outputPath.FullName, "Sample.json"))); 239Assert.True(File.Exists(Path.Combine(outputPath.FullName, "Sample_internal.json")));
Microsoft.Extensions.Caching.StackExchangeRedis.Tests (3)
Infrastructure\RedisTestConfig.cs (3)
114if (!File.Exists(serverPath)) 117if (!File.Exists(serverPath)) 158if (!File.Exists(tempRedisServerFullPath))
Microsoft.Extensions.DependencyModel (1)
FileWrapper.cs (1)
14return File.Exists(path);
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (2)
Linux\Resources\TestResources.cs (2)
58if (!File.Exists(files.Key)) 80if (File.Exists(d))
Microsoft.Extensions.ML (1)
ModelLoaders\FileModelLoader.cs (1)
40if (!File.Exists(filePath))
Microsoft.Extensions.ServiceDiscovery.Dns (4)
DnsSrvServiceEndpointProviderFactory.cs (4)
78if (File.Exists(s_serviceAccountNamespacePath)) 88if (!File.Exists(s_resolveConfPath)) 125if (!File.Exists(tokenPath)) 131return File.Exists(certPath);
Microsoft.Gen.ComplianceReports.Unit.Tests (2)
GeneratorTests.cs (2)
65if (File.Exists(goldenReportFile)) 156Assert.True(File.Exists(Path.Combine(fullReportPath, "ComplianceReport.json")));
Microsoft.Gen.MetadataExtractor.Unit.Tests (3)
GeneratorTests.cs (3)
85if (File.Exists(goldenReportPath)) 134Assert.False(File.Exists(Path.Combine(Path.GetTempPath(), ReportFilename))); 184Assert.True(File.Exists(Path.Combine(fullReportPath, ReportFilename)));
Microsoft.Gen.MetricsReports.Unit.Tests (3)
GeneratorTests.cs (3)
50if (File.Exists(goldenReportPath)) 94Assert.False(File.Exists(Path.Combine(Path.GetTempPath(), ReportFilename))); 137Assert.True(File.Exists(Path.Combine(fullReportPath, ReportFilename)));
Microsoft.Maui (1)
Fonts\FileSystemEmbeddedFontLoader.cs (1)
57 if (File.Exists(filePath))
Microsoft.Maui.Controls.Build.Tasks (1)
XamlCTask.cs (1)
164 if (!File.Exists(Assembly))
Microsoft.Maui.Resizetizer (7)
AndroidAdaptiveIconGenerator.cs (2)
148 if (File.Exists(adaptiveIconDestination) && File.Exists(adaptiveIconRoundDestination))
SkiaSharpAppIconTools.cs (2)
18 var hasBackground = !string.IsNullOrWhiteSpace(info.Filename) && File.Exists(info.Filename); 19 var hasForeground = !string.IsNullOrWhiteSpace(info.ForegroundFilename) && File.Exists(info.ForegroundFilename);
TizenSplashUpdater.cs (1)
44 if (File.Exists(destination))
Utils.cs (2)
56 var exists = File.Exists(path); 63 if (checkExists && !File.Exists(source))
Microsoft.ML.AutoML (1)
AutoMLExperiment\ITrialResultManager.cs (1)
130if (!File.Exists(filePath))
Microsoft.ML.AutoML.Tests (2)
DatasetUtil.cs (2)
205if (File.Exists(relativeFilePath)) 228if (File.Exists(Path.Combine(destFolder, flag)))
Microsoft.ML.Core (7)
ComponentModel\AssemblyLoadingUtils.cs (1)
34if (!File.Exists(path))
Utilities\PathUtils.cs (2)
106if (File.Exists(candidate)) 115if (File.Exists(candidate))
Utilities\ResourceManagerUtils.cs (4)
111if (File.Exists(filePath) || !string.IsNullOrEmpty(error)) 169if (File.Exists(filePath)) 251if (File.Exists(path)) 256if (File.Exists(path))
Microsoft.ML.Core.Tests (4)
UnitTests\TestResourceDownload.cs (4)
67if (File.Exists(Path.Combine(saveToDir, fileName))) 96if (File.Exists(Path.Combine(saveToDir, fileName))) 124if (!File.Exists(GetOutputPath("copyto", "sentiment.emd"))) 140if (File.Exists(GetOutputPath("copyto", "sentiment.emd")))
Microsoft.ML.Data (4)
DataLoadSave\Binary\BinaryLoaderSaverCatalog.cs (1)
50if (!File.Exists(path))
DataLoadSave\Text\TextLoaderSaverCatalog.cs (1)
313if (!File.Exists(path) && StreamUtils.ExpandWildCards(path).Length < 1)
Utilities\StreamUtils.cs (2)
65if (File.Exists(pattern)) 158if (!File.Exists(currentPattern))
Microsoft.ML.EntryPoints (1)
JsonUtils\ExecuteGraphCommand.cs (1)
45_host.CheckUserArg(args.GraphPath != null && File.Exists(args.GraphPath), nameof(args.GraphPath), "Graph path does not exist");
Microsoft.ML.OnnxTransformer (1)
OnnxTransform.cs (1)
263Host.CheckIO(File.Exists(options.ModelFile), "Model file {0} does not exists.", options.ModelFile);
Microsoft.ML.PerformanceTests (12)
BenchmarkBase.cs (1)
41if (File.Exists(filePath))
ImageClassificationBench.cs (3)
161if (File.Exists(relativeFilePath)) 197if (File.Exists(Path.Combine(destFolder, flag))) return; 233if (!overwrite && File.Exists(filename))
Numeric\Ranking.cs (5)
28if (!File.Exists(_mslrWeb10kValidate)) 31if (!File.Exists(_mslrWeb10kTrain)) 79if (!File.Exists(_mslrWeb10kTest)) 82if (!File.Exists(_mslrWeb10kValidate)) 85if (!File.Exists(_mslrWeb10kTrain))
RffTransform.cs (1)
24if (!File.Exists(_dataPathDigits))
Text\MultiClassClassification.cs (2)
25if (!File.Exists(_dataPathWiki)) 102if (!File.Exists(_dataPathWiki))
Microsoft.ML.ResultProcessor (1)
ResultProcessor.cs (1)
717if (!File.Exists(filename))
Microsoft.ML.Samples (10)
Dynamic\TensorFlow\ImageClassification.cs (2)
26if (!File.Exists(modelLocation)) 120if (File.Exists(dataFile))
Dynamic\Trainers\MulticlassClassification\ImageClassification\ImageClassificationDefault.cs (2)
264if (File.Exists(relativeFilePath)) 296if (File.Exists(Path.Combine(destFolder, flag))) return;
Dynamic\Trainers\MulticlassClassification\ImageClassification\LearningRateSchedulingCifarResnetTransferLearning.cs (2)
296if (File.Exists(relativeFilePath)) 328if (File.Exists(Path.Combine(destFolder, flag))) return;
Dynamic\Trainers\MulticlassClassification\ImageClassification\ResnetV2101TransferLearningEarlyStopping.cs (2)
252if (File.Exists(relativeFilePath)) 284if (File.Exists(Path.Combine(destFolder, flag))) return;
Dynamic\Trainers\MulticlassClassification\ImageClassification\ResnetV2101TransferLearningTrainTestSplit.cs (2)
273if (File.Exists(relativeFilePath)) 305if (File.Exists(Path.Combine(destFolder, flag))) return;
Microsoft.ML.Samples.GPU (10)
docs\samples\Microsoft.ML.Samples\Dynamic\TensorFlow\ImageClassification.cs (2)
26if (!File.Exists(modelLocation)) 120if (File.Exists(dataFile))
docs\samples\Microsoft.ML.Samples\Dynamic\Trainers\MulticlassClassification\ImageClassification\ImageClassificationDefault.cs (2)
264if (File.Exists(relativeFilePath)) 296if (File.Exists(Path.Combine(destFolder, flag))) return;
docs\samples\Microsoft.ML.Samples\Dynamic\Trainers\MulticlassClassification\ImageClassification\LearningRateSchedulingCifarResnetTransferLearning.cs (2)
296if (File.Exists(relativeFilePath)) 328if (File.Exists(Path.Combine(destFolder, flag))) return;
docs\samples\Microsoft.ML.Samples\Dynamic\Trainers\MulticlassClassification\ImageClassification\ResnetV2101TransferLearningEarlyStopping.cs (2)
252if (File.Exists(relativeFilePath)) 284if (File.Exists(Path.Combine(destFolder, flag))) return;
docs\samples\Microsoft.ML.Samples\Dynamic\Trainers\MulticlassClassification\ImageClassification\ResnetV2101TransferLearningTrainTestSplit.cs (2)
273if (File.Exists(relativeFilePath)) 305if (File.Exists(Path.Combine(destFolder, flag))) return;
Microsoft.ML.SamplesUtils (1)
SamplesDatasetUtils.cs (1)
193if (File.Exists(dataFile))
Microsoft.ML.Sweeper (3)
ConfigRunner.cs (3)
84if (!File.Exists(Exe) && !File.Exists(Exe + ".exe")) 211if (File.Exists(errorFile) && new FileInfo(errorFile).Length == 0)
Microsoft.ML.TensorFlow (1)
TensorflowUtils.cs (1)
407env.CheckUserArg(File.Exists(modelPath), nameof(modelPath));
Microsoft.ML.TensorFlow.Tests (7)
TensorflowTests.cs (7)
1446if (Directory.Exists(workspacePath) && File.Exists(Path.Combine(workspacePath, trainSetBottleneckCachedValuesFileName)) 1447&& File.Exists(Path.Combine(workspacePath, validationSetBottleneckCachedValuesFileName))) 1747Assert.True(File.Exists(Path.Combine(options.WorkspacePath, options.TrainSetBottleneckCachedValuesFileName))); 1748Assert.True(File.Exists(Path.Combine(options.WorkspacePath, options.ValidationSetBottleneckCachedValuesFileName))); 1749Assert.True(File.Exists(Path.Combine(Path.GetTempPath(), "MLNET", ImageClassificationTrainer.ModelFileName[options.Arch]))); 1982if (File.Exists(relativeFilePath)) 2009if (File.Exists(Path.Combine(destFolder, flag)))
Microsoft.ML.TestFramework (3)
BaseTestBaseline.cs (3)
289if (File.Exists(baselinePath)) 940if (!File.Exists(outPath)) 954if (!File.Exists(basePath))
Microsoft.ML.TestFrameworkCommon (1)
Utility\LibraryLoader.cs (1)
99if (!Path.IsPathRooted(loadTarget) || File.Exists(loadTarget))
Microsoft.ML.Tokenizers.Data.Tests (1)
test\Microsoft.ML.Tokenizers.Tests\Utils.cs (1)
41if (File.Exists(file))
Microsoft.ML.Tokenizers.Tests (1)
Utils.cs (1)
41if (File.Exists(file))
Microsoft.ML.Transforms (4)
LoadTransform.cs (1)
71h.CheckUserArg(File.Exists(args.ModelFile), nameof(args.ModelFile), "File does not exist");
SvmLight\SvmLightLoaderSaverCatalog.cs (2)
72if (!File.Exists(path)) 94if (!File.Exists(path))
Text\WordEmbeddingsExtractor.cs (1)
653if (!File.Exists(_modelFileNameWithPath))
Microsoft.ML.Vision (10)
DnnRetrainTransform.cs (2)
441if (File.Exists(destination)) 448if (File.Exists(destination))
ImageClassificationTrainer.cs (8)
676File.Exists(validationSetBottleneckCachedValuesFilePath + "_features.bin") && 677File.Exists(validationSetBottleneckCachedValuesFilePath + "_labels.bin"); 693!(File.Exists(trainSetBottleneckCachedValuesFilePath + "_features.bin") && 694File.Exists(trainSetBottleneckCachedValuesFilePath + "_labels.bin"))) 918(File.Exists(validationSetBottleneckFilePath + "_labels.bin") && 919File.Exists(validationSetBottleneckFilePath + "_features.bin"))); 922File.Exists(trainBottleneckFilePath + "_labels.bin") && 923File.Exists(trainBottleneckFilePath + "_features.bin"));
Microsoft.VisualBasic.Core (15)
Microsoft\VisualBasic\CompilerServices\VB6File.vb (1)
404If File.Exists(m_sFullPath) Then
Microsoft\VisualBasic\CompilerServices\VB6OutputFile.vb (1)
42If File.Exists(m_sFullPath) Then
Microsoft\VisualBasic\CompilerServices\VB6RandomFile.vb (1)
62If File.Exists(m_sFullPath) Then
Microsoft\VisualBasic\FileIO\FileSystem.vb (9)
97Return IO.File.Exists(file) 478If IO.File.Exists(directory) Then 710If Not IO.File.Exists(file) Then 795If append AndAlso IO.File.Exists(file) Then 920If IO.File.Exists(TargetDirectoryFullPath) Then 1110If Not IO.File.Exists(sourceFileFullPath) Then 1230If Not IO.File.Exists(fileFullPath) Then 1249If IO.File.Exists(Path) Then 1496If IO.File.Exists(FullPath) Then
Microsoft\VisualBasic\FileIO\TextFieldParser.vb (1)
600If Not File.Exists(fullPath) Then
Microsoft\VisualBasic\FileSystem.vb (2)
307If File.Exists(PathName) Then 318If File.Exists(PathName) Then
Microsoft.VisualBasic.Forms (1)
Microsoft\VisualBasic\Logging\FileLogTraceListener.vb (1)
613If File.Exists(fileName) Then
Microsoft.VisualBasic.Forms.Tests (15)
System\Windows\Forms\FileLogTraceListenerTests.vb (4)
154If File.Exists(fullLogFileName) Then 220If File.Exists(fullLogFileName) Then 241If File.Exists(fullLogFileName) Then 262If File.Exists(fullLogFileName) Then
System\Windows\Forms\FileSystemProxyTests.vb (10)
102File.Exists(sourceFileName).Should.BeTrue() 118File.Exists(sourceFileName).Should.BeTrue() 133File.Exists(sourceFileName).Should.BeTrue() 139File.Exists(sourceFileName).Should.BeFalse() 152File.Exists(sourceFileName).Should.BeTrue() 159File.Exists(sourceFileName).Should.BeFalse() 239File.Exists(sourceFileName).Should.BeFalse() 240File.Exists(file2).Should.BeTrue() 259File.Exists(sourceFileName).Should.BeFalse() 260File.Exists(destinationFileName).Should.BeTrue()
System\Windows\Forms\VbFileCleanupTestBaseTests.vb (1)
51File.Exists(testFile1).Should.BeFalse()
Microsoft.VisualBasic.Tests (20)
Microsoft\VisualBasic\MyServices\FileSystemProxyTests.cs (20)
212Assert.True(File.Exists(testFileSource)); 225Assert.True(File.Exists(testFileSource)); 228Assert.True(File.Exists(testFileSource)); 236Assert.True(File.Exists(testFileSource)); 238Assert.False(File.Exists(testFileSource)); 437Assert.True(File.Exists(FileList[i])); 483Assert.True(File.Exists(TempFile)); 580Assert.False(File.Exists(SourceFileNameWithPath)); 581Assert.True(File.Exists(DestinationFileNameWithPath)); 589Assert.True(File.Exists(SourceFileNameWithPath)); 598Assert.False(File.Exists(SourceFileNameWithPath)); 599Assert.True(File.Exists(DestinationFileNameWithPath)); 606Assert.True(File.Exists(SourceFileNameWithPath)); 615Assert.False(File.Exists(SourceFileNameWithPath)); 616Assert.True(File.Exists(DestinationFileNameWithPath)); 620Assert.True(File.Exists(SourceFileNameWithPath)); 621Assert.False(File.Exists(DestinationFileNameWithPath)); 674Assert.True(File.Exists(NewFileWithPath)); 675Assert.False(File.Exists(OrigFileWithPath)); 705Assert.False(File.Exists(TempFileNameWithPath), $"File {TempFileNameWithPath} should not exist!");
Microsoft.VisualStudio.LanguageServices (8)
EditAndContinue\EditAndContinueFeedbackDiagnosticFileProvider.cs (1)
77if (File.Exists(_vsFeedbackSemaphoreFullPath))
GenerateType\GenerateTypeDialogViewModel.cs (1)
379File.Exists(FullFilePath))
ProjectSystem\Legacy\AbstractLegacyProject.cs (1)
81if (projectFilePath != null && !File.Exists(projectFilePath))
ProjectSystem\Legacy\AbstractLegacyProject_IVsHierarchyEvents.cs (1)
64if (filePath != null && File.Exists(filePath))
ProjectSystem\VisualStudioWorkspaceImpl.cs (1)
929if (IOUtilities.PerformIO(() => File.Exists(documentInfo.FilePath)))
Telemetry\FileLogger.cs (1)
105if (!File.Exists(_logFilePath))
UnusedReferences\ProjectAssets\ProjectAssetsFileReader.cs (1)
22var doesProjectAssetsFileExist = IOUtilities.PerformIO(() => File.Exists(projectAssetsFilePath));
Workspace\SourceGeneratedFileManager.cs (1)
129if (!File.Exists(temporaryFilePath))
MSBuild (4)
BuildEnvironmentHelper.cs (1)
609var existsCheck = mode == BuildEnvironmentMode.VisualStudio ? new Func<string, bool>(_ => true) : File.Exists;
DebugUtils.cs (1)
115while (File.Exists(fullPath))
FileUtilities.cs (1)
81return !File.Exists(lowerCased);
ManagedFileSystem.cs (1)
146return File.Exists(path);
MSBuildTaskHost (5)
BuildEnvironmentHelper.cs (1)
609var existsCheck = mode == BuildEnvironmentMode.VisualStudio ? new Func<string, bool>(_ => true) : File.Exists;
FileUtilities.cs (1)
81return !File.Exists(lowerCased);
NativeMethods.cs (3)
1212return File.Exists(path) 1854: File.Exists(fullPath); 1869: File.Exists(path) || Directory.Exists(path);
Mvc.Api.Analyzers.Test (1)
Infrastructure\MvcTestSource.cs (1)
16if (!File.Exists(filePath))
PrepareTests (1)
MinimizeUtil.cs (1)
174Contract.Assert(!File.Exists(file));
PresentationBuildTasks (4)
Microsoft\Build\Tasks\Windows\ResourcesGenerator.cs (1)
296if (!File.Exists(TaskHelper.CreateFullFilePath(strFileName, SourceDir)))
Microsoft\Build\Tasks\Windows\UidManager.cs (1)
374if (File.Exists(fileName))
MS\Internal\Tasks\TaskFileService.cs (1)
252fileExists = File.Exists(fileName);
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XmlnsCache.cs (1)
110if (!String.IsNullOrEmpty(assemblyFullPath) && File.Exists(assemblyFullPath))
PresentationFramework (5)
Microsoft\Win32\FileDialog.cs (2)
459fileExists = File.Exists(tempPath); 600if (!GetOption(FOS.FILEMUSTEXIST) || File.Exists(newFilename))
Microsoft\Win32\SaveFileDialog.cs (1)
187bool fExist = File.Exists(fileName);
System\Windows\Documents\WinRTSpellerInterop.cs (1)
428if (!File.Exists(lexiconFilePath))
System\Windows\Standard\Verify.cs (1)
265if (!File.Exists(filePath))
PresentationUI (6)
InstallationError.xaml.cs (1)
175if (File.Exists(LogFilePath) && ErrorFlag)
MS\Internal\Documents\Application\DocumentStream.cs (3)
315if (File.Exists(path)) 854if (File.Exists(targetFile)) 865if( File.Exists( backupFile ) )
MS\Internal\Documents\RightsManagementManager.cs (1)
862foundRMClient = File.Exists(msdrmdllPath);
TenFeetInstallationError.xaml.cs (1)
179if (File.Exists(LogFilePath) && ErrorFlag)
Replay (4)
src\Compilers\Shared\BuildServerConnection.cs (3)
440if (!File.Exists(processFilePath)) 461if (!File.Exists(serverInfo.processFilePath)) 723if (!File.Exists(FilePath))
src\Compilers\Shared\RuntimeHostInfo.cs (1)
62if (File.Exists(filePath))
Roslyn.Compilers.Extension (1)
CompilerPackage.cs (1)
122if (File.Exists(fileAndContents.Key) && File.ReadAllText(fileAndContents.Key) == fileAndContents.Value)
Roslyn.Test.Performance.Utilities (4)
Benchview.cs (1)
109if (!File.Exists(source))
RelativeDirectory.cs (1)
107if (File.Exists(zipPath))
ScenarioGenerator.cs (1)
68if (File.Exists(_fullPath))
TraceManager.cs (1)
20if (File.Exists(cpcFullPath))
RunTests (8)
AssemblyScheduler.cs (1)
252if (!File.Exists(testListPath))
FileUtil.cs (1)
34if (File.Exists(filePath))
HelixTestRunner.cs (1)
396if (File.Exists(globalJsonPath))
Options.cs (2)
226if (dotnetFilePath is null || !File.Exists(dotnetFilePath)) 281while (dir != null && !File.Exists(Path.Combine(dir, programName)))
ProcessRunner.cs (1)
51if (File.Exists(file))
Program.cs (2)
243if (File.Exists(dumpFilePath)) 320if (File.Exists(filePath))
Security.TransportSecurity.IntegrationTests (1)
Tcp\ClientCredentialTypeTests.OSX.cs (1)
133if (!File.Exists(ServiceUtilHelper.OSXCustomKeychainFilePath))
SemanticSearch.BuildTask (2)
GenerateFilteredReferenceAssembliesTask.cs (2)
124catch when (File.Exists(filteredReferencePath)) 163if (File.Exists(outputFilePath))
Swaggatherer (1)
src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
78if (File.Exists(candidateDotNetExePath))
System.ComponentModel.TypeConverter (1)
System\ComponentModel\LicFileLicenseProvider.cs (1)
85if (File.Exists(licenseFile))
System.Configuration.ConfigurationManager (11)
System\Configuration\AppSettingsSection.cs (1)
104if (!IO.File.Exists(sourceFileFullPath)) return;
System\Configuration\ClientConfigPaths.cs (1)
47if (!File.Exists(ApplicationUri))
System\Configuration\ConfigurationFileMap.cs (1)
30if (!File.Exists(machineConfigFilename))
System\Configuration\Internal\InternalConfigHost.cs (2)
227return !File.Exists(streamName) 253if (File.Exists(streamName))
System\Configuration\Internal\WriteFileContext.cs (4)
65if (File.Exists(filename)) 169File.Exists(target) && 188if (File.Exists(target)) 208if (!File.Exists(fileName))
System\Configuration\LocalFileSettingsProvider.cs (1)
330if (File.Exists(file))
System\Configuration\NameValueFileSectionHandler.cs (1)
43if (File.Exists(sourceFileFullPath))
System.Diagnostics.FileVersionInfo (1)
System\Diagnostics\FileVersionInfo.cs (1)
274if (!File.Exists(fileName))
System.Diagnostics.Process (8)
src\libraries\Common\src\Interop\Linux\cgroups\Interop.cgroups.cs (3)
156if (File.Exists(path)) 319if (File.Exists(mountInfoFilePath)) 413if (File.Exists(procCGroupFilePath))
System\Diagnostics\Process.Unix.cs (5)
637if (File.Exists(filename)) 645if (uri.IsFile && uri.Host == "" && File.Exists(uri.LocalPath)) 659if (File.Exists(filenameInWorkingDirectory)) 713if (File.Exists(path)) 723if (File.Exists(path))
System.Diagnostics.StackTrace (1)
System\Diagnostics\StackTraceSymbols.cs (1)
225if (!File.Exists(path))
System.Drawing.Common.Tests (14)
System\Drawing\Imaging\MetafileTests.cs (14)
345Assert.True(File.Exists(fileName)); 362Assert.True(File.Exists(fileName)); 379Assert.True(File.Exists(fileName)); 454Assert.True(File.Exists(fileName)); 470Assert.True(File.Exists(fileName)); 487Assert.True(File.Exists(fileName)); 505Assert.True(File.Exists(fileName)); 523Assert.True(File.Exists(fileName)); 538Assert.True(File.Exists(fileName)); 554Assert.True(File.Exists(fileName)); 571Assert.True(File.Exists(fileName)); 589Assert.True(File.Exists(fileName)); 607Assert.True(File.Exists(fileName)); 935if (File.Exists(path))
System.Formats.Tar (2)
System\Formats\Tar\TarFile.cs (2)
264if (!File.Exists(sourceFileName)) 311if (!File.Exists(sourceFileName))
System.IO.IsolatedStorage (1)
System\IO\IsolatedStorage\IsolatedStorageFile.cs (1)
97return File.Exists(GetFullPath(path));
System.IO.MemoryMappedFiles (1)
System\IO\MemoryMappedFiles\MemoryMappedFile.cs (1)
125_ => File.Exists(path)
System.IO.Ports (3)
System\IO\Ports\SerialPort.Unix.cs (3)
56(File.Exists(entry.FullName + "/device/id") || 60(isTtyGS && (File.Exists(entry.FullName + "/dev")))) 63if (File.Exists(deviceName))
System.Net.Mail (1)
System\Net\Mail\SmtpClient.cs (1)
372if (!File.Exists(pathAndFilename))
System.Net.NetworkInformation (4)
System\Net\NetworkInformation\LinuxNetworkInterface.cs (2)
32if (File.Exists(NetworkFiles.Ipv4RouteFile)) 43if (File.Exists(NetworkFiles.Ipv6RouteFile))
System\Net\NetworkInformation\StringParsingHelpers.Addresses.cs (2)
87if (File.Exists(filePath)) // avoid an exception in most cases if path doesn't already exist 129if (File.Exists(smbConfFilePath)) // avoid an exception in most cases if path doesn't already exist
System.Net.Ping (2)
src\libraries\Common\src\System\Net\NetworkInformation\UnixCommandLinePing.cs (2)
32if (File.Exists(path)) 36if (File.Exists(pathv4v6))
System.Private.CoreLib (10)
src\libraries\Common\src\Interop\Linux\os-release\Interop.OSReleaseFile.cs (1)
19if (File.Exists(filename))
src\libraries\System.Private.CoreLib\src\System\IO\Path.cs (1)
82/// Unlike <see cref="File.Exists(string?)"/> it returns true for existing, non-regular files like pipes.
src\libraries\System.Private.CoreLib\src\System\Reflection\Assembly.cs (2)
291if (!File.Exists(normalizedPath)) 357if (!File.Exists(requestedAssemblyPath))
src\libraries\System.Private.CoreLib\src\System\Resources\FileBasedResourceGroveler.cs (2)
72if (File.Exists(path)) 79if (File.Exists(fileName))
src\libraries\System.Private.CoreLib\src\System\Runtime\Loader\AssemblyDependencyResolver.cs (3)
134if (File.Exists(assemblyPath)) 148if (File.Exists(assemblyPath)) 182if (File.Exists(libraryPath))
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.Unix.NonAndroid.cs (1)
460if (File.Exists(tzFilePath))
System.Private.Windows.Core.TestUtilities (1)
TempFile.cs (1)
64public void AssertExists() => Assert.True(File.Exists(Path));
System.Private.Xml (2)
System\Xml\Serialization\Compilation.cs (2)
239if ((string.IsNullOrEmpty(path) || !File.Exists(path)) && !string.IsNullOrEmpty(Assembly.GetEntryAssembly()?.Location)) 244if ((string.IsNullOrEmpty(path) || !File.Exists(path)) && !string.IsNullOrEmpty(AppContext.BaseDirectory))
System.Reflection.MetadataLoadContext (1)
System\Reflection\TypeLoading\Assemblies\Ecma\EcmaAssembly.Modules.cs (1)
46if (File.Exists(modulePath))
System.Security.Cryptography (1)
System\Security\Cryptography\X509Certificates\OpenSslDirectoryBasedStoreProvider.cs (1)
310if (!File.Exists(builtPath))
System.Windows.Forms (3)
System\Windows\Forms\Dialogs\CommonDialogs\FileDialog.cs (1)
445return File.Exists(fileName);
System\Windows\Forms\Help\Help.cs (2)
256if (!File.Exists(localPath)) 279if (!File.Exists(localPath))
System.Windows.Forms.Analyzers.CSharp.Tests (2)
Analyzers\AvoidPassingTaskWithoutCancellationToken\AvoidPassingTaskWithoutCancellationTokenTest.cs (1)
102Assert.True(pathToWinFormsAssembly == "" || File.Exists(pathToWinFormsAssembly));
Analyzers\WFO1001\ImplementITypedDataObjectTests.cs (1)
144Assert.True(File.Exists(CurrentReferences.WinFormsRefPath));
System.Windows.Forms.Analyzers.Tests (1)
CurrentReferences.cs (1)
124if (File.Exists(globalJsonPath))
System.Windows.Forms.Analyzers.VisualBasic.Tests (1)
Analyzers\AvoidPassingTaskWithoutCancellationTokenTests.vb (1)
104Assert.True(pathToWinFormsAssembly = "" Or File.Exists(pathToWinFormsAssembly))
System.Windows.Forms.Design (1)
System\Drawing\BitmapSelector.cs (1)
50return File.Exists(newPath) ? newPath : originalPath;
System.Windows.Forms.IntegrationTests.Common (3)
TestHelpers.cs (3)
62if (!File.Exists(exePath)) 82if (!File.Exists(path)) 186if (!File.Exists(jsonFile))
System.Windows.Forms.Primitives.TestUtilities (1)
PlatformDetection.Windows.cs (1)
55File.Exists(Path.Join(Environment.GetFolderPath(Environment.SpecialFolder.Windows), "System32", "httpapi.dll"));
System.Windows.Forms.Tests (4)
System\Resources\ResXResourceSetTests.cs (2)
21Assert.True(File.Exists(resxFileName), $@"RESX file ""{resxFileName}"" not found, make sure it's in the root folder of the unit test project"); 41Assert.True(File.Exists(resxFileName), $@"RESX file ""{resxFileName}"" not found, make sure it's in the root folder of the unit test project");
System\Windows\Forms\RichTextBoxTests.cs (1)
10717File.Exists(filePath).Should().BeTrue();
System\Windows\Forms\UserConfigDisposableFixture.cs (1)
25if (File.Exists(configuration.FilePath))
System.Windows.Forms.UI.IntegrationTests (4)
DragDropTests.cs (4)
150if (!File.Exists(dragAcceptRtfDestPath)) 238if (File.Exists(dragAcceptRtfDestPath)) 1086if (File.Exists(dragAcceptRtf)) 1146if (File.Exists(dragAcceptRtf))
Templates.Blazor.Tests (19)
BlazorWasmTemplateTest.cs (5)
30Assert.False(File.Exists(Path.Combine(publishDir, "service-worker-assets.js")), "Non-PWA templates should not produce service-worker-assets.js"); 109Assert.False(File.Exists(Path.Combine(publishDir, "service-worker.published.js")), "service-worker.published.js should not be published"); 110Assert.True(File.Exists(Path.Combine(publishDir, "service-worker.js")), "service-worker.js should be published"); 111Assert.True(File.Exists(Path.Combine(publishDir, "service-worker-assets.js")), "service-worker-assets.js should be published"); 128var doesExist = File.Exists(fullPath);
src\ProjectTemplates\Shared\BlazorTemplateTest.cs (1)
108var doesExist = File.Exists(fullPath);
src\ProjectTemplates\Shared\DevelopmentCertificate.cs (2)
32if (!File.Exists(path)) 47if (File.Exists(location))
src\ProjectTemplates\Shared\Project.cs (2)
300var doesExist = File.Exists(fullPath); 534Assert.True(File.Exists(sourceFile), $"Log for '{ProjectName}' not found in '{sourceFile}'. Execution output: {result.Output}");
src\Shared\CertificateGeneration\CertificateManager.cs (1)
437if (!File.Exists(certificatePath))
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (2)
131return File.Exists(GetCertificateFilePath(candidate)) ? 464if (File.Exists(certificatePath))
src\Shared\CertificateGeneration\UnixCertificateManager.cs (5)
95if (File.Exists(certPath)) 227if (File.Exists(certPath)) 388if (File.Exists(certPath)) 525if (File.Exists(Path.Combine(searchFolder, command))) 912if (!File.Exists(linkPath))
src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
78if (File.Exists(candidateDotNetExePath))
Templates.Blazor.WebAssembly.Auth.Tests (16)
src\ProjectTemplates\Shared\BlazorTemplateTest.cs (1)
108var doesExist = File.Exists(fullPath);
src\ProjectTemplates\Shared\DevelopmentCertificate.cs (2)
32if (!File.Exists(path)) 47if (File.Exists(location))
src\ProjectTemplates\Shared\Project.cs (2)
300var doesExist = File.Exists(fullPath); 534Assert.True(File.Exists(sourceFile), $"Log for '{ProjectName}' not found in '{sourceFile}'. Execution output: {result.Output}");
src\Shared\CertificateGeneration\CertificateManager.cs (1)
437if (!File.Exists(certificatePath))
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (2)
131return File.Exists(GetCertificateFilePath(candidate)) ? 464if (File.Exists(certificatePath))
src\Shared\CertificateGeneration\UnixCertificateManager.cs (5)
95if (File.Exists(certPath)) 227if (File.Exists(certPath)) 388if (File.Exists(certPath)) 525if (File.Exists(Path.Combine(searchFolder, command))) 912if (!File.Exists(linkPath))
src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
78if (File.Exists(candidateDotNetExePath))
src\Shared\E2ETesting\BrowserAssertFailedException.cs (1)
27if (File.Exists(screenShotPath))
src\Shared\E2ETesting\SauceConnectServer.cs (1)
222if (pidFilePath != null && File.Exists(pidFilePath))
Templates.Blazor.WebAssembly.Tests (20)
BlazorWasmTemplateTest.cs (4)
36Assert.False(File.Exists(Path.Combine(publishDir, "service-worker-assets.js")), "Non-PWA templates should not produce service-worker-assets.js"); 46Assert.False(File.Exists(Path.Combine(publishDir, "service-worker-assets.js")), "Non-PWA templates should not produce service-worker-assets.js"); 56Assert.False(File.Exists(Path.Combine(publishDir, "service-worker-assets.js")), "Non-PWA templates should not produce service-worker-assets.js"); 66Assert.False(File.Exists(Path.Combine(publishDir, "service-worker-assets.js")), "Non-PWA templates should not produce service-worker-assets.js");
src\ProjectTemplates\Shared\BlazorTemplateTest.cs (1)
108var doesExist = File.Exists(fullPath);
src\ProjectTemplates\Shared\DevelopmentCertificate.cs (2)
32if (!File.Exists(path)) 47if (File.Exists(location))
src\ProjectTemplates\Shared\Project.cs (2)
300var doesExist = File.Exists(fullPath); 534Assert.True(File.Exists(sourceFile), $"Log for '{ProjectName}' not found in '{sourceFile}'. Execution output: {result.Output}");
src\Shared\CertificateGeneration\CertificateManager.cs (1)
437if (!File.Exists(certificatePath))
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (2)
131return File.Exists(GetCertificateFilePath(candidate)) ? 464if (File.Exists(certificatePath))
src\Shared\CertificateGeneration\UnixCertificateManager.cs (5)
95if (File.Exists(certPath)) 227if (File.Exists(certPath)) 388if (File.Exists(certPath)) 525if (File.Exists(Path.Combine(searchFolder, command))) 912if (!File.Exists(linkPath))
src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
78if (File.Exists(candidateDotNetExePath))
src\Shared\E2ETesting\BrowserAssertFailedException.cs (1)
27if (File.Exists(screenShotPath))
src\Shared\E2ETesting\SauceConnectServer.cs (1)
222if (pidFilePath != null && File.Exists(pidFilePath))
Templates.Mvc.Tests (19)
BlazorTemplateTest.cs (2)
177if (File.Exists(singleProjectPath)) 183if (File.Exists(multiProjectPath))
RazorPagesTemplateTest.cs (1)
311var doesExist = File.Exists(fullPath);
src\ProjectTemplates\Shared\BlazorTemplateTest.cs (1)
108var doesExist = File.Exists(fullPath);
src\ProjectTemplates\Shared\DevelopmentCertificate.cs (2)
32if (!File.Exists(path)) 47if (File.Exists(location))
src\ProjectTemplates\Shared\Project.cs (2)
300var doesExist = File.Exists(fullPath); 534Assert.True(File.Exists(sourceFile), $"Log for '{ProjectName}' not found in '{sourceFile}'. Execution output: {result.Output}");
src\Shared\CertificateGeneration\CertificateManager.cs (1)
437if (!File.Exists(certificatePath))
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (2)
131return File.Exists(GetCertificateFilePath(candidate)) ? 464if (File.Exists(certificatePath))
src\Shared\CertificateGeneration\UnixCertificateManager.cs (5)
95if (File.Exists(certPath)) 227if (File.Exists(certPath)) 388if (File.Exists(certPath)) 525if (File.Exists(Path.Combine(searchFolder, command))) 912if (!File.Exists(linkPath))
src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
78if (File.Exists(candidateDotNetExePath))
src\Shared\E2ETesting\BrowserAssertFailedException.cs (1)
27if (File.Exists(screenShotPath))
src\Shared\E2ETesting\SauceConnectServer.cs (1)
222if (pidFilePath != null && File.Exists(pidFilePath))
Templates.Tests (18)
BaselineTest.cs (1)
124var doesExist = File.Exists(fullPath);
IdentityUIPackageTest.cs (1)
162var doesExist = File.Exists(fullPath);
src\ProjectTemplates\Shared\BlazorTemplateTest.cs (1)
108var doesExist = File.Exists(fullPath);
src\ProjectTemplates\Shared\DevelopmentCertificate.cs (2)
32if (!File.Exists(path)) 47if (File.Exists(location))
src\ProjectTemplates\Shared\Project.cs (2)
300var doesExist = File.Exists(fullPath); 534Assert.True(File.Exists(sourceFile), $"Log for '{ProjectName}' not found in '{sourceFile}'. Execution output: {result.Output}");
src\Shared\CertificateGeneration\CertificateManager.cs (1)
437if (!File.Exists(certificatePath))
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (2)
131return File.Exists(GetCertificateFilePath(candidate)) ? 464if (File.Exists(certificatePath))
src\Shared\CertificateGeneration\UnixCertificateManager.cs (5)
95if (File.Exists(certPath)) 227if (File.Exists(certPath)) 388if (File.Exists(certPath)) 525if (File.Exists(Path.Combine(searchFolder, command))) 912if (!File.Exists(linkPath))
src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
78if (File.Exists(candidateDotNetExePath))
src\Shared\E2ETesting\BrowserAssertFailedException.cs (1)
27if (File.Exists(screenShotPath))
src\Shared\E2ETesting\SauceConnectServer.cs (1)
222if (pidFilePath != null && File.Exists(pidFilePath))
vbc (4)
src\Compilers\Shared\BuildServerConnection.cs (3)
440if (!File.Exists(processFilePath)) 461if (!File.Exists(serverInfo.processFilePath)) 723if (!File.Exists(FilePath))
src\Compilers\Shared\RuntimeHostInfo.cs (1)
62if (File.Exists(filePath))
VBCSCompiler (4)
src\Compilers\Shared\BuildServerConnection.cs (3)
440if (!File.Exists(processFilePath)) 461if (!File.Exists(serverInfo.processFilePath)) 723if (!File.Exists(FilePath))
src\Compilers\Shared\RuntimeHostInfo.cs (1)
62if (File.Exists(filePath))
VBCSCompiler.UnitTests (8)
CompilerServerTests.cs (8)
559Assert.False(File.Exists(Path.Combine(_tempDirectory.Path, "hello.exe"))); 589Assert.False(File.Exists(Path.Combine(_tempDirectory.Path, "hello.exe"))); 606Assert.False(File.Exists(Path.Combine(_tempDirectory.Path, "missingfile.exe"))); 624Assert.False(File.Exists(Path.Combine(_tempDirectory.Path, "hello.exe"))); 649Assert.False(File.Exists(Path.Combine(_tempDirectory.Path, "app.exe"))); 667Assert.False(File.Exists(Path.Combine(_tempDirectory.Path, "missingfile.exe"))); 696Assert.False(File.Exists(Path.Combine(_tempDirectory.Path, "hellovb.exe"))); 725Assert.False(File.Exists(Path.Combine(_tempDirectory.Path, "app.exe")));
Wasm.Performance.ConsoleHost (1)
src\Shared\CommandLineUtils\Utilities\DotNetMuxer.cs (1)
78if (File.Exists(candidateDotNetExePath))
WinShimmer (1)
Program.cs (1)
31if (!File.Exists(exePath))
xunit.console (5)
CommandLine.cs (1)
19fileExists = File.Exists;
common\AssemblyResolution\AssemblyHelper.cs (1)
31if (!File.Exists(assemblyFileName))
common\AssemblyResolution\Microsoft.DotNet.PlatformAbstractions\Native\PlatformApis.cs (1)
101if (File.Exists("/etc/os-release"))
common\AssemblyResolution\Microsoft.Extensions.DependencyModel\FileWrapper.cs (1)
13return File.Exists(path);
ConsoleRunner.cs (1)
435if (string.IsNullOrWhiteSpace(fileName) || File.Exists(fileName))