3 writes to IsOptional
Microsoft.NET.Sdk.StaticWebAssets.Tasks (3)
Data\StaticWebAssetPathPattern.cs (3)
134
token.
IsOptional
= true;
140
token.
IsOptional
= true;
430
IsOptional
= false
8 references to IsOptional
Microsoft.NET.Sdk.StaticWebAssets.Tasks (8)
Data\StaticWebAssetPathPattern.cs (7)
256
if (resolveMode != TokenResolveMode.None && segment.
IsOptional
&& !segment.IsPreferred && !segment.IsPackOnly)
304
if (!foundAllValues && !segment.
IsOptional
)
360
if (segment.
IsOptional
)
385
if (IsLiteralSegment(segment) || !segment.
IsOptional
)
518
else if (segment.
IsOptional
)
586
if (segment.
IsOptional
&& !segment.IsPreferred)
606
if (!segment.
IsOptional
)
Data\StaticWebAssetPathSegment.cs (1)
56
string.Concat(Parts.Select(p => p.IsLiteral ? p.Name.ToString() : $"{{{p.Name}}}").Prepend("#[").Append($"]{(IsPackOnly ? "~" :
IsOptional
? (IsPreferred ? "!" : "?") : "")}"));