Fixes: https://github.com/dotnet/runtime/issues/52007
We were using host system `PathSeparator`s, which lead to problems when
building the app on windows.
This change makes the `System.Runtime` library tests pass on windows.
foreach (var entry in directoryInfo.EnumerateFiles("*", SearchOption.AllDirectories))
{
var relativePath = Path.GetRelativePath(InputDirectory!, entry.FullName);
+ if (Path.DirectorySeparatorChar != '/')
+ relativePath = relativePath.Replace(Path.DirectorySeparatorChar, '/');
+
indices.Add(new object[] { relativePath, entry.Length });
using (var readStream = entry.OpenRead())