21 references to PathComparer
Microsoft.NET.Sdk.StaticWebAssets.Tasks (21)
Compression\DiscoverPrecompressedAssets.cs (1)
39var candidatesByIdentity = candidates.ToDictionary(asset => asset.Identity, OSPath.PathComparer);
Data\StaticWebAsset.cs (3)
300var excluded = new HashSet<string>(OSPath.PathComparer); 334var seen = new HashSet<string>(assets.Length, OSPath.PathComparer); 335var deferred = new Dictionary<string, int>(OSPath.PathComparer);
Data\StaticWebAssetEndpoint.cs (1)
179var result = new Dictionary<string, List<StaticWebAssetEndpoint>>(candidateEndpoints.Length / 2, OSPath.PathComparer);
DefineStaticWebAssetEndpoints.cs (3)
78Dictionary<string, HashSet<string>> existingEndpointsByAssetFile = new(ExistingEndpoints.Length, OSPath.PathComparer); 79var assets = new HashSet<string>(CandidateAssets.Length, OSPath.PathComparer); 97set = new HashSet<string>(OSPath.PathComparer);
GeneratePackageAssetsManifestFile.cs (2)
92var identityToPackagePath = new Dictionary<string, string>(parsedAssets.Length, Utils.OSPath.PathComparer); 111var assets = new Dictionary<string, StaticWebAsset>(OSPath.PathComparer);
GenerateStaticWebAssetEndpointsManifest.cs (1)
68.ToDictionary(a => a.ResolvedAsset.Identity, a => a, OSPath.PathComparer);
GenerateStaticWebAssetsManifest.cs (1)
107var assetsByIdentity = assets.ToDictionary(a => a.Identity, a => a, OSPath.PathComparer);
ReadPackageAssetsManifest.cs (1)
110var frameworkPaths = new Dictionary<string, string>(OSPath.PathComparer);
ResolveFingerprintedStaticWebAssetEndpointsForAssets.cs (2)
32var endpointsByAsset = candidateEndpoints.GroupBy(e => e.AssetFile, OSPath.PathComparer) 33.ToDictionary(g => g.Key, g => g.ToArray(), OSPath.PathComparer);
UpdateExternallyDefinedStaticWebAssets.cs (5)
56.GroupBy(e => e.AssetFile, OSPath.PathComparer) 57.ToDictionary(e => e.Key, e => e.ToArray(), OSPath.PathComparer); 67var filteredSet = new HashSet<string>(filteredAssets.Select(a => a.Identity), OSPath.PathComparer); 71var assetMapping = new Dictionary<string, (string NewIdentity, string OldBasePath)>(OSPath.PathComparer); 81var originalIndex = Array.FindIndex(assets, a => OSPath.PathComparer.Equals(a.Identity, asset.Identity));
UpdatePackageStaticWebAssets.cs (1)
46var assetMapping = new Dictionary<string, (string NewIdentity, string OldBasePath)>(OSPath.PathComparer);