Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Won't this break if this is a unix path that actually has a \ in the file name?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would, but I'm not sure what the experience should be for these cases... dotnet new console -o 'a\b\c' or having a C# file named 'x\y\z.cs' and then doing dotnet build won't work either.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right -- it looks like the rest of the tooling doesn't like that either. In that case, I'm fine with this fix. The scenario we'd be breaking really isn't supported today.

Offset = offset;
Size = size;
}
Expand Down