Normalize directory separator of paths in FileSpec (#40699)
authorMateo Torres-Ruiz <mateoatr@users.noreply.github.com>
Mon, 17 Aug 2020 18:53:38 +0000 (11:53 -0700)
committerGitHub <noreply@github.com>
Mon, 17 Aug 2020 18:53:38 +0000 (11:53 -0700)
src/installer/managed/Microsoft.NET.HostModel/Bundle/FileEntry.cs

index 237a2a5..ef687ae 100644 (file)
@@ -28,7 +28,7 @@ namespace Microsoft.NET.HostModel.Bundle
         public FileEntry(FileType fileType, string relativePath, long offset, long size)
         {
             Type = fileType;
-            RelativePath = relativePath.Replace(Path.DirectorySeparatorChar, DirectorySeparatorChar);
+            RelativePath = relativePath.Replace('\\', DirectorySeparatorChar);
             Offset = offset;
             Size = size;
         }