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