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