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