diff --git a/src/Shared/FileSystem/WindowsFileSystem.cs b/src/Shared/FileSystem/WindowsFileSystem.cs index 1493d0f29a8..0031442b28f 100644 --- a/src/Shared/FileSystem/WindowsFileSystem.cs +++ b/src/Shared/FileSystem/WindowsFileSystem.cs @@ -60,11 +60,10 @@ public override bool DirectoryExists(string path) public override bool FileExists(string path) { -#if NETFRAMEWORK - return Microsoft.IO.File.Exists(path); -#else + // Due to https://github.com/microsoft/azure-pipelines-tasks/issues/20734 + // I'm removing the dependency on Microsoft.IO.File.Exists(path); + // until the issue is fixed return File.Exists(path); -#endif } public override bool FileOrDirectoryExists(string path)