8 writes to AssetFile
Microsoft.NET.Sdk.StaticWebAssets.Tasks (8)
_generated\7\StaticWebAssetsJsonSerializerContext.StaticWebAssetEndpoint.g.cs (1)
99
Setter = static (obj, value) => ((global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpoint)obj).
AssetFile
= value!,
ApplyCompressionNegotiation.cs (1)
274
AssetFile
= compressedAsset.Identity,
Data\StaticWebAssetEndpoint.cs (1)
498
AssetFile
= metadataValue;
DefineStaticWebAssetEndpoints.cs (2)
231
AssetFile
= asset.Identity,
289
AssetFile
= sourceEndpoint.AssetFile,
GeneratePackageAssetsManifestFile.cs (1)
174
endpoint.
AssetFile
= packageRelativePath;
GenerateStaticWebAssetEndpointsManifest.cs (1)
116
endpoint.
AssetFile
= asset.ResolvedAsset.ComputeTargetPath("", '/', StaticWebAssetTokenResolver.Instance);
ReadPackageAssetsManifest.cs (1)
146
endpoint.
AssetFile
= frameworkPaths.TryGetValue(endpoint.AssetFile, out var fxEp)
60 references to AssetFile
Microsoft.NET.Sdk.StaticWebAssets.Tasks (60)
_generated\7\StaticWebAssetsJsonSerializerContext.StaticWebAssetEndpoint.g.cs (2)
98
Getter = static obj => ((global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpoint)obj).
AssetFile
,
192
writer.WriteString(PropName_AssetFile, ((global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpoint)value).
AssetFile
);
ApplyCompressionNegotiation.cs (3)
115
if (endpointsByAsset.TryGetValue(endpoint.
AssetFile
, out var endpointsToSkip))
122
endpointsByAsset.Remove(endpoint.
AssetFile
);
139
Log.LogMessage(MessageImportance.Low, " Adding endpoint '{0}'", endpoint.
AssetFile
);
ComputeEndpointsForReferenceStaticWebAssets.cs (3)
33
if (assets.TryGetValue(candidateEndpoint.
AssetFile
, out var asset))
62
Log.LogMessage(MessageImportance.Low, "Adding endpoint {0} for asset {1} with updated route {2}.", candidateEndpoint.Route, candidateEndpoint.
AssetFile
, candidateEndpoint.Route);
69
Log.LogMessage(MessageImportance.Low, "Skipping endpoint {0} because the asset {1} was not found.", candidateEndpoint.Route, candidateEndpoint.
AssetFile
);
Data\StaticWebAssetEndpoint.cs (21)
78
_assetFile ??= _originalItem?.GetMetadata(nameof(
AssetFile
));
183
var assetFile = endpoint.
AssetFile
;
210
0 => string.Compare(a.
AssetFile
, b.
AssetFile
, StringComparison.Ordinal),
259
AssetFile
== other.
AssetFile
&&
286
hashCode.Add(
AssetFile
);
304
$"{nameof(StaticWebAssetEndpoint)}: Route = {Route}, AssetFile = {
AssetFile
}, Selectors = {StaticWebAssetEndpointSelector.ToMetadataValue(Selectors ?? [])}, ResponseHeaders = {ResponseHeaders?.Length}, EndpointProperties = {StaticWebAssetEndpointProperty.ToMetadataValue(EndpointProperties ?? [])}";
314
var assetFileComparison = StringComparer.Ordinal.Compare(
AssetFile
, other.
AssetFile
);
427
string.Equals(x.
AssetFile
, y.
AssetFile
, StringComparison.Ordinal);
438
return HashCode.Combine(obj.Route, obj.
AssetFile
);
449
nameof(
AssetFile
),
483
nameof(
AssetFile
) =>
AssetFile
?? "",
497
case nameof(
AssetFile
):
530
{ nameof(
AssetFile
),
AssetFile
?? "" },
556
destinationItem.SetMetadata(nameof(
AssetFile
),
AssetFile
?? "");
Data\StaticWebAssetEndpointGroup.cs (1)
35
AssetFile = endpoint.
AssetFile
,
DefineStaticWebAssetEndpoints.cs (3)
83
var assetFile = endpointCandidate.GetMetadata(nameof(StaticWebAssetEndpoint.
AssetFile
));
289
AssetFile = sourceEndpoint.
AssetFile
,
296
Log.LogMessage(MessageImportance.Low, $"Adding additional endpoint {additionalEndpoint.Route} (order={definition.Order}) for asset {sourceEndpoint.
AssetFile
} from pattern {definition.Pattern}.");
FilterStaticWebAssetEndpoints.cs (1)
44
if (assetFiles.Count > 0 && !assetFiles.TryGetValue(endpoint.
AssetFile
, out asset))
FilterStaticWebAssetGroups.cs (1)
96
endpoint.Route, endpoint.
AssetFile
);
GeneratePackageAssetsManifestFile.cs (3)
169
.ThenBy(e => e.
AssetFile
, StringComparer.OrdinalIgnoreCase))
172
if (identityToPackagePath.TryGetValue(endpoint.
AssetFile
, out var packageRelativePath))
181
endpoint.Route, endpoint.
AssetFile
);
GenerateStaticWebAssetEndpointsManifest.cs (3)
85
if (!manifestAssets.TryGetValue(endpoint.
AssetFile
, out var asset))
87
Log.LogMessage(MessageImportance.Low, "Skipping endpoint '{0}' because the asset '{1}' is not part of the manifest", endpoint.Route, endpoint.
AssetFile
);
121
Log.LogMessage(MessageImportance.Low, "Including endpoint '{0}' for asset '{1}' with final location '{2}'", endpoint.Route, endpoint.
AssetFile
, asset.TargetPath);
GenerateStaticWebAssetEndpointsPropsFile.cs (5)
46
.ThenBy(e => e.
AssetFile
, StringComparer.OrdinalIgnoreCase);
50
var asset = assets[element.
AssetFile
];
56
new XElement(nameof(StaticWebAssetEndpoint.
AssetFile
), fullPathExpression),
127
if (!asset.ContainsKey(endpoint.
AssetFile
))
129
Log.LogError($"The asset file '{endpoint.
AssetFile
}' specified in the endpoint '{endpoint.Route}' does not exist.");
GenerateStaticWebAssetsManifest.cs (5)
53
0 => string.CompareOrdinal(l.
AssetFile
, r.
AssetFile
),
108
if (assetsByIdentity.ContainsKey(endpoint.
AssetFile
))
111
Log.LogMessage(MessageImportance.Low, $"Accepted endpoint: Route='{endpoint.Route}', AssetFile='{endpoint.
AssetFile
}'");
115
Log.LogMessage(MessageImportance.Low, $"Filtered out endpoint: Endpoint='{endpoint.Route}' AssetFile='{endpoint.
AssetFile
}'");
OverrideHtmlAssetPlaceholders.cs (3)
48
var endpoints = StaticWebAssetEndpoint.FromItemGroup(Endpoints).Where(e => e.
AssetFile
.EndsWith(".js") || e.
AssetFile
.EndsWith(".mjs"));
220
var asset = Assets.FirstOrDefault(a => a.ItemSpec == endpoint.
AssetFile
);
ReadPackageAssetsManifest.cs (2)
146
endpoint.AssetFile = frameworkPaths.TryGetValue(endpoint.
AssetFile
, out var fxEp)
148
: ResolvePath(packageRoot, endpoint.
AssetFile
);
ResolveFingerprintedStaticWebAssetEndpointsForAssets.cs (1)
32
var endpointsByAsset = candidateEndpoints.GroupBy(e => e.
AssetFile
, OSPath.PathComparer)
ResolveStaticWebAssetEndpointRoutes.cs (2)
25
if (!assets.TryGetValue(endpoint.
AssetFile
, out var asset))
27
Log.LogError($"The asset file '{endpoint.
AssetFile
}' for endpoint '{endpoint.Route}' was not found.");
UpdateExternallyDefinedStaticWebAssets.cs (1)
45
.GroupBy(e => e.
AssetFile
, OSPath.PathComparer)