11 writes to Identity
Microsoft.NET.Sdk.StaticWebAssets.Tasks (11)
_generated\35\DefineStaticWebAssetsSerializerContext.StaticWebAsset.g.cs (1)
61Setter = static (obj, value) => ((global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset)obj).Identity = value!,
_generated\5\StaticWebAssetsJsonSerializerContext.StaticWebAsset.g.cs (1)
59Setter = static (obj, value) => ((global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset)obj).Identity = value!,
Compression\ResolveCompressedAssets.cs (2)
309Identity = itemSpec, 318Identity = itemSpec,
Data\StaticWebAsset.cs (3)
1033Identity = identity, 1661string ITaskItem2.EvaluatedIncludeEscaped { get => Identity; set => Identity = value; } 1662string ITaskItem.ItemSpec { get => Identity; set => Identity = value; }
GeneratePackageAssetsManifestFile.cs (1)
153Identity = packagePath,
ReadPackageAssetsManifest.cs (2)
131asset.Identity = ResolvePath(packageRoot, asset.Identity); 211asset.Identity = destPath;
UpdatePackageStaticWebAssets.cs (1)
164asset.Identity = destPath;
142 references to Identity
Microsoft.NET.Sdk.StaticWebAssets.Tasks (142)
_generated\35\DefineStaticWebAssetsSerializerContext.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);
_generated\5\StaticWebAssetsJsonSerializerContext.StaticWebAsset.g.cs (2)
58Getter = static obj => ((global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset)obj).Identity, 506writer.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 (3)
75Environment.NewLine + string.Join(Environment.NewLine, all.Select(a => $"({a.Identity},{a.AssetKind})"))); 133candidate.Identity, 142candidate.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 (40)
59_identity = asset.Identity; 305excluded.Add(asset.Identity); 315excluded.Add(asset.Identity); 346deferred[assets[i].Identity] = parentIndex; 358deferred[assets[i].Identity] = placeableIndex; 362seen.Add(assets[i].Identity); 385deferred[assets[tail].Identity] = tail; 833var file = ResolveFile(Identity, OriginalItemSpec); 920throw new InvalidOperationException($"Unknown source type '{SourceType}' for '{Identity}'."); 925throw new InvalidOperationException($"The '{nameof(SourceId)}' for the asset must be defined for '{Identity}'."); 930throw new InvalidOperationException($"The '{nameof(ContentRoot)}' for the asset must be defined for '{Identity}'."); 935throw new InvalidOperationException($"The '{nameof(BasePath)}' for the asset must be defined for '{Identity}'."); 940throw new InvalidOperationException($"The '{nameof(RelativePath)}' for the asset must be defined for '{Identity}'."); 945throw new InvalidOperationException($"The '{nameof(OriginalItemSpec)}' for the asset must be defined for '{Identity}'."); 955throw new InvalidOperationException($"Unknown Asset kind '{AssetKind}' for '{Identity}'."); 965throw new InvalidOperationException($"Unknown Asset mode '{AssetMode}' for '{Identity}'."); 975throw new InvalidOperationException($"Unknown Asset role '{AssetRole}' for '{Identity}'."); 980throw new InvalidOperationException($"Related asset for '{AssetRole}' asset '{Identity}' is not defined."); 985throw new InvalidOperationException($"Alternative asset '{Identity}' does not define an asset trait name or value."); 990throw new InvalidOperationException($"Fingerprint for '{Identity}' is not defined."); 995throw new InvalidOperationException($"Integrity for '{Identity}' is not defined."); 1000throw new InvalidOperationException($"File length for '{Identity}' is not defined."); 1005throw new InvalidOperationException($"Last write time for '{Identity}' is not defined."); 1174var result = string.Compare(Identity, other.Identity, StringComparison.Ordinal); 1301Identity == other.Identity && 1437var pattern = StaticWebAssetPathPattern.Parse(pathWithTokens, Identity); 1443var pattern = StaticWebAssetPathPattern.Parse(pathWithTokens, Identity); 1448$"Identity: {Identity}, " + 1474hash.Add(Identity); 1527var pattern = StaticWebAssetPathPattern.Parse(RelativePath, Identity); 1537var pattern = StaticWebAssetPathPattern.Parse(relativePath, Identity); 1543internal FileInfo ResolveFile() => ResolveFile(Identity, OriginalItemSpec); 1567dictionary.Add(candidateAsset.Identity, candidateAsset); 1661string ITaskItem2.EvaluatedIncludeEscaped { get => Identity; set => Identity = value; } 1662string ITaskItem.ItemSpec { get => Identity; set => Identity = value; } 1716"FullPath" => Identity ?? "", 1717nameof(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 (4)
55if (!endpointByAsset.TryGetValue(asset.Identity, out var endpoint)) 57Log.LogMessage($"Asset {asset.Identity} does not have an associated endpoint defined."); 61Log.LogMessage($"Inferred fingerprint {fingerprint} for asset {asset.Identity}. Relative path updated to {newRelativePath}."); 80assetsWithoutEndpoints.Where(a => !excludedAssetFiles.Contains(a.Identity)));
UpdatePackageStaticWebAssets.cs (3)
59assetMapping[oldPath] = transformed.Identity; 137var oldIdentity = asset.Identity; 144var sourceFile = asset.Identity;