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