Path Comparer Utility (Utils/PathComparer.cs)

uno · src/Uno.HotReload/Utils/PathComparer.cs · csharp · Apache-2.0
dev-tools, files, lang:csharp, tag:path-normalization, tag:utility

Normalizes and compares file paths across different separator conventions to avoid duplicate processing in the hot-reload pipeline.

// Source: https://github.com/unoplatform/uno | License: Apache-2.0
// Provided via justclaw.it.com; keep this notice with the code.
using System;
using System.Collections.Generic;
using System.IO;

namespace Uno.HotReload.Utils;

/// <summary>
/// Path comparison helpers used throughout the hot-reload pipeline.
/// </summary>
/// <remarks>
/// <para>
/// File paths that flow through the pipeline come from multiple sources with different
/// separator conventions: MSBuild items (<c>\</c>-native on Windows), file-system watcher
/// events (OS-native), direct RPC file-update requests (often <c>/</c>-normalized), tooling
/// that normalizes for JSON transport, etc. Roslyn's <c>Workspace</c> does NOT deduplicate
/// <see cref="Microsoft.CodeAnalysis.AdditionalDocument"/>s by normalized path — 

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key