11 writes to Identity
Microsoft.NET.Sdk.StaticWebAssets.Tasks (11)
_generated\35\DefineStaticWebAssetsSerializerContext.StaticWebAsset.g.cs (1)
63Setter = static (obj, value) => ((global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset)obj).Identity = value!,
_generated\5\StaticWebAssetsJsonSerializerContext.StaticWebAsset.g.cs (1)
61Setter = static (obj, value) => ((global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset)obj).Identity = value!,
Compression\ResolveCompressedAssets.cs (2)
309Identity = itemSpec, 318Identity = itemSpec,
Data\StaticWebAsset.cs (4)
1034Identity = identity, 1183asset.Identity = destPath; 1718string ITaskItem2.EvaluatedIncludeEscaped { get => Identity; set => Identity = value; } 1719string ITaskItem.ItemSpec { get => Identity; set => Identity = value; }
GeneratePackageAssetsManifestFile.cs (1)
153Identity = packagePath,
ReadPackageAssetsManifest.cs (2)
131asset.Identity = ResolvePath(packageRoot, asset.Identity); 211asset.Identity = destPath;
147 references to Identity
Microsoft.NET.Sdk.StaticWebAssets.Tasks (147)
_generated\35\DefineStaticWebAssetsSerializerContext.StaticWebAsset.g.cs (2)
62Getter = static obj => ((global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset)obj).Identity, 510writer.WriteString(PropName_Identity, ((global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset)value).Identity);
_generated\5\StaticWebAssetsJsonSerializerContext.StaticWebAsset.g.cs (2)
60Getter = static obj => ((global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset)obj).Identity, 508writer.WriteString(PropName_Identity, ((global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset)value).Identity);
ApplyCompressionNegotiation.cs (10)
44Log.LogMessage("Processing compressed asset: {0}", compressedAsset.Identity); 274AssetFile = compressedAsset.Identity, 328Log.LogWarning("Related asset not found for compressed asset: {0}", compressedAsset.Identity); 329throw new InvalidOperationException($"Related asset not found for compressed asset: {compressedAsset.Identity}"); 332if (!endpointsByAsset.TryGetValue(compressedAsset.Identity, out var compressedEndpoints)) 334Log.LogWarning("Endpoints not found for compressed asset: {0} {1}", compressedAsset.RelativePath, compressedAsset.Identity); 335throw new InvalidOperationException($"Endpoints not found for compressed asset: {compressedAsset.Identity}"); 338if (!endpointsByAsset.TryGetValue(relatedAsset.Identity, out var relatedAssetEndpoints)) 340Log.LogWarning("Endpoints not found for related asset: {0}", relatedAsset.Identity); 341throw new InvalidOperationException($"Endpoints not found for related asset: {relatedAsset.Identity}");
CollectStaticWebAssetsToCopy.cs (11)
33Log.LogMessage(MessageImportance.Low, "Skipping asset '{0}' since source type is '{1}'", asset.Identity, asset.SourceType); 39Log.LogMessage(MessageImportance.Low, "Skipping asset '{0}' since asset mode is '{1}'", asset.Identity, asset.AssetMode); 49if (asset.Identity.StartsWith(normalizedOutputPath, StringComparison.Ordinal)) 51Log.LogMessage(MessageImportance.Low, "Source for asset '{0}' is '{1}' since the identity points to the output path.", asset.Identity, asset.OriginalItemSpec); 54else if (File.Exists(asset.Identity)) 56Log.LogMessage(MessageImportance.Low, "Source for asset '{0}' is '{0}' since the asset exists.", asset.Identity); 57source = asset.Identity; 61Log.LogMessage(MessageImportance.Low, "Source for asset '{0}' is '{1}' since the asset does not exist.", asset.Identity, asset.OriginalItemSpec); 67source = asset.Identity; 72["OriginalItemSpec"] = asset.Identity, 79Log.LogMessage(MessageImportance.Low, "Skipping asset '{0}' since copy to output directory option is '{1}'", asset.Identity, asset.CopyToOutputDirectory);
Compression\DiscoverPrecompressedAssets.cs (9)
35var candidatesByIdentity = candidates.ToDictionary(asset => asset.Identity, OSPath.PathComparer); 48candidate.Identity); 55candidate.Identity, 62candidate.Identity, 63relatedAsset.Identity); 79var identityWithoutExtension = candidate.Identity.Substring(0, candidate.Identity.Length - 3); // We take advantage we know the extension is .br or .gz. 111asset.OriginalItemSpec = relatedAsset.Identity; 112asset.RelatedAsset = relatedAsset.Identity;
Compression\ResolveCompressedAssets.cs (11)
81asset.Identity, 95asset.Identity, 105asset.Identity, 130var itemSpec = asset.Identity; 207asset.Identity); 216asset.Identity); 240asset.Identity, 247asset.Identity, 294asset.Identity); 320OriginalItemSpec = asset.Identity, 321RelatedAsset = asset.Identity,
ComputeEndpointsForReferenceStaticWebAssets.cs (1)
43Log.LogMessage(MessageImportance.Low, "Skipping endpoint '{0}' because route '{1}' is already updated.", asset.Identity, oldRoute);
ComputeReferenceStaticWebAssetItems.cs (4)
87Environment.NewLine + string.Join(Environment.NewLine, all.Select(a => $"({a.Identity},{a.AssetKind})"))); 181asset.Identity, 193candidate.Identity, 202candidate.Identity,
ComputeStaticWebAssetsForCurrentProject.cs (3)
52Log.LogMessage(MessageImportance.Low, "Skipping asset '{0}' because it is for referenced projects only.", groupedAsset.Identity); 60Environment.NewLine + string.Join(Environment.NewLine, all.Select(a => $"({a.Identity},{a.AssetKind})"))); 70Log.LogMessage(MessageImportance.Low, "Skipping asset '{0}' because it is for referenced projects only.", selected.Identity);
Data\StaticWebAsset.cs (42)
60_identity = asset.Identity; 306excluded.Add(asset.Identity); 316excluded.Add(asset.Identity); 347deferred[assets[i].Identity] = parentIndex; 359deferred[assets[i].Identity] = placeableIndex; 363seen.Add(assets[i].Identity); 386deferred[assets[tail].Identity] = tail; 834var file = ResolveFile(Identity, OriginalItemSpec); 921throw new InvalidOperationException($"Unknown source type '{SourceType}' for '{Identity}'."); 926throw new InvalidOperationException($"The '{nameof(SourceId)}' for the asset must be defined for '{Identity}'."); 931throw new InvalidOperationException($"The '{nameof(ContentRoot)}' for the asset must be defined for '{Identity}'."); 936throw new InvalidOperationException($"The '{nameof(BasePath)}' for the asset must be defined for '{Identity}'."); 941throw new InvalidOperationException($"The '{nameof(RelativePath)}' for the asset must be defined for '{Identity}'."); 946throw new InvalidOperationException($"The '{nameof(OriginalItemSpec)}' for the asset must be defined for '{Identity}'."); 956throw new InvalidOperationException($"Unknown Asset kind '{AssetKind}' for '{Identity}'."); 966throw new InvalidOperationException($"Unknown Asset mode '{AssetMode}' for '{Identity}'."); 976throw new InvalidOperationException($"Unknown Asset role '{AssetRole}' for '{Identity}'."); 981throw new InvalidOperationException($"Related asset for '{AssetRole}' asset '{Identity}' is not defined."); 986throw new InvalidOperationException($"Alternative asset '{Identity}' does not define an asset trait name or value."); 991throw new InvalidOperationException($"Fingerprint for '{Identity}' is not defined."); 996throw new InvalidOperationException($"Integrity for '{Identity}' is not defined."); 1001throw new InvalidOperationException($"File length for '{Identity}' is not defined."); 1006throw new InvalidOperationException($"Last write time for '{Identity}' is not defined."); 1156var oldIdentity = asset.Identity; 1163var sourceFile = asset.Identity; 1231var result = string.Compare(Identity, other.Identity, StringComparison.Ordinal); 1358Identity == other.Identity && 1494var pattern = StaticWebAssetPathPattern.Parse(pathWithTokens, Identity); 1500var pattern = StaticWebAssetPathPattern.Parse(pathWithTokens, Identity); 1505$"Identity: {Identity}, " + 1531hash.Add(Identity); 1584var pattern = StaticWebAssetPathPattern.Parse(RelativePath, Identity); 1594var pattern = StaticWebAssetPathPattern.Parse(relativePath, Identity); 1600internal FileInfo ResolveFile() => ResolveFile(Identity, OriginalItemSpec); 1624dictionary.Add(candidateAsset.Identity, candidateAsset); 1718string ITaskItem2.EvaluatedIncludeEscaped { get => Identity; set => Identity = value; } 1719string ITaskItem.ItemSpec { get => Identity; set => Identity = value; } 1773"FullPath" => Identity ?? "", 1774nameof(Identity) => Identity ?? "",
DefineStaticWebAssetEndpoints.cs (4)
231AssetFile = asset.Identity, 236Log.LogMessage(MessageImportance.Low, $"Adding endpoint {endpoint.Route} for asset {asset.Identity}."); 335if (ExistingEndpointsByAssetFile != null && ExistingEndpointsByAssetFile.TryGetValue(asset.Identity, out var set)) 351Log.LogMessage(MessageImportance.Low, $"Skipping asset {asset.Identity} because an endpoint for it already exists at {route}.");
DefineStaticWebAssets.cs (3)
827Log.LogMessage(MessageImportance.Low, "Asset '{0}' excluded from group '{1}={2}' by ExcludePattern.", asset.Identity, def.Name, def.Value); 837asset.Identity, def.Name, existingValue, def.Value); 845Log.LogMessage(MessageImportance.Low, "Tagged asset '{0}' with group '{1}={2}'.", asset.Identity, def.Name, def.Value);
FilterStaticWebAssetEndpoints.cs (2)
51if (asset != null && !endpointFoundMatchingAsset.ContainsKey(asset.Identity)) 53endpointFoundMatchingAsset.Add(asset.Identity, asset);
GeneratePackageAssetsManifestFile.cs (2)
97identityToPackagePath[parsedAssets[i].Identity] = packagePath; 147asset.Identity, relatedAssetValue);
GenerateStaticWebAssetEndpointsManifest.cs (2)
68.ToDictionary(a => a.ResolvedAsset.Identity, a => a, OSPath.PathComparer); 240asset.Identity,
GenerateStaticWebAssetsDevelopmentManifest.cs (4)
118asset.Identity, 311if (File.Exists(asset.Identity)) 313if (asset.Identity.StartsWith(asset.ContentRoot, OSPath.PathComparison)) 319return StaticWebAsset.Normalize(asset.Identity[asset.ContentRoot.Length..]);
GenerateStaticWebAssetsManifest.cs (3)
48Array.Sort(assets, (l, r) => string.CompareOrdinal(l.Identity, r.Identity)); 103var assetsByIdentity = assets.ToDictionary(a => a.Identity, a => a, OSPath.PathComparer);
MergeStaticWebAssets.cs (12)
31Array.Sort(assets, (a, b) => string.CompareOrdinal(a.Identity, b.Identity)); 84if (!ReferenceEquals(prototypeItem, item) && string.Equals(prototypeItem.Identity, item.Identity, OSPath.PathComparison)) 89Log.LogMessage(MessageImportance.Normal, $"Removing '{assetToRemove.Identity}' because merge behavior is {assetToRemove.AssetMergeBehavior}."); 100Log.LogMessage(MessageImportance.Normal, $"Removing '{assetToRemove.Identity}' because merge behavior is {assetToRemove.AssetMergeBehavior}."); 112Log.LogMessage(MessageImportance.Normal, $"Removing '{assetToRemove.Identity}' because merge behavior is {assetToRemove.AssetMergeBehavior}."); 124Log.LogMessage(MessageImportance.Normal, $"Removing '{assetToRemove.Identity}' because merge behavior is {assetToRemove.AssetMergeBehavior}."); 136Log.LogMessage(MessageImportance.Normal, $"Removing '{assetToRemove.Identity}' because merge behavior is {assetToRemove.AssetMergeBehavior}."); 154Log.LogMessage(MessageImportance.Normal, $"Skipping '{right.Identity}' because it is a duplicate of '{left.Identity}'."); 161Log.LogMessage(MessageImportance.Normal, $"Skipping '{sourceAsset.Identity}' because merge behavior '{sourceAsset.AssetMergeBehavior}' is different from '{targetAsset.AssetMergeBehavior}'.");
ReadPackageAssetsManifest.cs (4)
122frameworkPaths[asset.Identity] = destPath; 131asset.Identity = ResolvePath(packageRoot, asset.Identity); 132asset.OriginalItemSpec = asset.Identity; 196var sourcePath = ResolvePath(packageRoot, asset.Identity);
ResolveFingerprintedStaticWebAssetEndpointsForAssets.cs (7)
38if (!endpointsByAsset.TryGetValue(asset.Identity, out var endpoints)) 40Log.LogError($"No endpoint found for asset '{asset.Identity}'"); 60Log.LogError($"No endpoint found for asset '{asset.Identity}' with path '{assetPath}' whose route matches its path."); 74Log.LogMessage(MessageImportance.Low, $"Selected endpoint '{endpoint.Route}' for asset '{asset.Identity}' because it has a fingerprinted route '{route}'."); 87Log.LogMessage(MessageImportance.Low, $"Selected endpoint '{endpoints[0].Route}' for asset '{asset.Identity}' because no fingerprinted endpoint was found."); 118Log.LogMessage(MessageImportance.Low, $"Selected endpoint '{endpoint.Route}' for asset '{asset.Identity}' because '{assetPath}' matches resolved route '{route}'."); 123Log.LogMessage(MessageImportance.Low, $"Skipping endpoint '{endpoint.Route}' for asset '{asset.Identity}' because '{assetPath}' does not match resolved route '{route}'.");
UpdateExternallyDefinedStaticWebAssets.cs (8)
67var filteredSet = new HashSet<string>(filteredAssets.Select(a => a.Identity), OSPath.PathComparer); 81var originalIndex = Array.FindIndex(assets, a => OSPath.PathComparer.Equals(a.Identity, asset.Identity)); 91assetMapping[oldIdentity] = (materialized.Identity, oldBasePath); 96if (!endpointByAsset.TryGetValue(asset.Identity, out var endpoint)) 98Log.LogMessage($"Asset {asset.Identity} does not have an associated endpoint defined."); 102Log.LogMessage($"Inferred fingerprint {fingerprint} for asset {asset.Identity}. Relative path updated to {newRelativePath}."); 147assetsWithoutEndpoints.Where(a => !excludedAssetFiles.Contains(a.Identity)));
UpdatePackageStaticWebAssets.cs (1)
63assetMapping[oldPath] = (transformed.Identity, oldBasePath);