diff --git a/src/installer/managed/Microsoft.NET.HostModel/Bundle/FileEntry.cs b/src/installer/managed/Microsoft.NET.HostModel/Bundle/FileEntry.cs index 237a2a550fb153..ef687aee1d849f 100644 --- a/src/installer/managed/Microsoft.NET.HostModel/Bundle/FileEntry.cs +++ b/src/installer/managed/Microsoft.NET.HostModel/Bundle/FileEntry.cs @@ -28,7 +28,7 @@ public class FileEntry 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; }