Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
71 commits
Select commit Hold shift + click to select a range
291ee96
Tmp
javiercn May 11, 2024
4689ed1
Add tests to DefineStaticEndpoints include caching directive for fing…
javiercn May 20, 2024
6247383
Apply fingerprint convention to scoped CSS bundles
javiercn May 20, 2024
8fcb8ed
Apply pattern preferences for ComputeTargetPaths
javiercn May 20, 2024
ff132cc
tmp
javiercn May 20, 2024
6f06af3
tmp
javiercn May 20, 2024
c52a25c
Fixes
javiercn May 21, 2024
e96b310
Templatize endpoint properties
javiercn May 21, 2024
434018a
More fixes
javiercn May 21, 2024
d6e21ef
Use legacy task
javiercn May 21, 2024
0ff9ba4
Try fix duplicates
javiercn May 22, 2024
99224a0
Tmp
javiercn May 22, 2024
4f09808
Hopefully passing
javiercn May 22, 2024
43beb40
Update baselines
javiercn May 22, 2024
606fb8c
Update baseline cs
javiercn May 22, 2024
fa9d638
tmp
javiercn May 22, 2024
9dabe50
Update baselines
javiercn May 22, 2024
efbb3e4
Update baselines
javiercn May 22, 2024
331bf9c
Fix baseline templization
javiercn May 22, 2024
119636b
Update baselines
javiercn May 22, 2024
4527091
Improve comparison
javiercn May 22, 2024
909f443
More fixes
javiercn May 22, 2024
27b3435
Fix baselines
javiercn May 23, 2024
ca6a655
More fixes
javiercn May 23, 2024
631bf04
More fixes
javiercn May 23, 2024
069ad34
Clean up
javiercn May 23, 2024
15c5653
Clean up
javiercn May 23, 2024
11fcffa
Make update script executable
javiercn May 23, 2024
7fee03f
Remove all baselines
javiercn May 23, 2024
e7d1e30
Fix tests
javiercn May 23, 2024
3b28c9e
Support embedding tokens
javiercn May 23, 2024
e4d6ec8
Fixes
javiercn May 24, 2024
b02a0e1
Cleanups
javiercn May 24, 2024
369e9ef
Additional tasks
javiercn May 24, 2024
e9de3fa
Additional tests
javiercn May 24, 2024
f184bfe
Resolve endpoints instead of files
javiercn May 24, 2024
d745ba9
Ensure concatenate css tests work
javiercn May 24, 2024
f59cc05
Test fixes
javiercn May 24, 2024
b428ed4
Add link header
javiercn May 24, 2024
9b19f1e
Update baselines
javiercn May 25, 2024
9dfbb62
Fix tests
javiercn May 25, 2024
03b7769
Better isolate test projects
javiercn May 25, 2024
90af575
tmp
javiercn May 25, 2024
fe160a7
Isolate pack projects
javiercn May 25, 2024
c4f4ac4
Remove custom restore path
javiercn May 25, 2024
abc5c65
Hopefully fixed
javiercn May 25, 2024
6122d4f
Isolate another test
javiercn May 26, 2024
60dd105
Tmp
javiercn May 26, 2024
f1b7053
tmp
javiercn May 27, 2024
ea0a580
tmp
javiercn May 27, 2024
b048c34
Fix baseline tfm
javiercn May 27, 2024
b888d7e
Updated baselines
javiercn May 27, 2024
f53c46c
More test fixes
javiercn May 27, 2024
92f4983
Fix incrementality test
javiercn May 27, 2024
4ad4703
Update test and baselines
javiercn May 27, 2024
a80f452
Disable baseline generation
javiercn May 27, 2024
dd71936
More isolation and fixes
javiercn May 27, 2024
6f0fba5
More fixes
javiercn May 27, 2024
997a443
Fix build
javiercn May 27, 2024
bc0485f
More fixes
javiercn May 28, 2024
4c3d1b3
More fixes
javiercn May 28, 2024
6946cbc
Fix baseline
javiercn May 28, 2024
c548e83
Isolate more tests, fail if test is not isolated
javiercn May 28, 2024
e058b1f
Additional isolation checks
javiercn May 28, 2024
8518ff6
Additional fixes
javiercn May 28, 2024
5454385
Further isolate tests
javiercn May 28, 2024
93dba25
More fixes
javiercn May 28, 2024
c620d1d
Disable baseline generation
javiercn May 28, 2024
ce04321
More fingerprinting checks
javiercn May 28, 2024
89fb489
Try to further isolate package
javiercn May 28, 2024
81acfa7
Update baselines
javiercn May 28, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,42 @@

<PropertyGroup>
<TargetFramework>$(AspNetTestTfm)</TargetFramework>
<RestoreAdditionalProjectSources>$(RestoreAdditionalProjectSources);./TestPackages</RestoreAdditionalProjectSources>
</PropertyGroup>

<PropertyGroup>
<!-- We don't want to run build server when not running as tests. -->
<UseRazorBuildServer>false</UseRazorBuildServer>
</PropertyGroup>

<Target Name="BuildLocalNuget" BeforeTargets="Restore">
<MSBuild
Projects="..\PackageLibraryDirectDependency\PackageLibraryDirectDependency.csproj"
Targets="Restore;Pack"
/>
<MSBuild
Projects="..\PackageLibraryTransitiveDependency\PackageLibraryTransitiveDependency.csproj"
Targets="Restore;Pack"
/>
<Target Name="EnsurePackagesExist" BeforeTargets="Restore">
<ItemGroup>
<LocalPackages Include="$(AspNetTestPackageSource)\RazorPackageLibraryDirectDependency.1.0.0.nupkg" />
<LocalPackages Include="$(AspNetTestPackageSource)\RazorPackageLibraryTransitiveDependency.1.0.0.nupkg" />
</ItemGroup>

<Error Condition="!Exists('%(LocalPackages.Identity)')"
Text="Package %(LocalPackages.Identity) does not exist. Ensure the test calls CreatePackCommand(ProjectDirectory, &quot;PackageLibraryDirectDependency&quot;)" />

<Error Condition="'$(RestorePackagesPath)' != '$(AspNetNugetIsolationPath)'"
Text="Packages are not being restored into the expected directory. Ensure that NUGET_PACKAGES and AspNetNugetIsolationPath are set as environment variables. The test should extend IsolatedNuGetPackageFolderAspNetSdkBaselineTest. RestorePackagesPath = '$(RestorePackagesPath)', AspNetNugetIsolationPath = '$(AspNetNugetIsolationPath)'" />
</Target>

<Target Name="EnsureLocalPackageStaticWebAssets" BeforeTargets="UpdateExistingPackageStaticWebAssets">
<PropertyGroup>
<_LocalStaticAssetPath>$(AspNetNugetIsolationPath)\razorpackagelibrarydirectdependency\1.0.0\build\..\staticwebassets\</_LocalStaticAssetPath>
</PropertyGroup>

<ItemGroup>
<_RazorPackageLibraryDirectDependencyAssets Include="@(StaticWebAsset)" Condition="'%(SourceId)' == 'RazorPackageLibraryDirectDependency'" />
<_LocalStaticWebAsset Include="@(_RazorPackageLibraryDirectDependencyAssets)" Condition="'%(ContentRoot)' == '$(_LocalStaticAssetPath)'" />
</ItemGroup>

<Error Condition="'@(_LocalStaticWebAsset)' == ''" Text="Static web assets for RazorPackageLibraryDirectDependency not found in '$(_LocalStaticAssetPath)'. Assets: '@(_RazorPackageLibraryDirectDependencyAssets->'%(Identity) %(ContentRoot)', ' ')'" />

</Target>

<ItemGroup>
<PackageReference Include="PackageLibraryDirectDependency" Version="1.0.0" />
<PackageReference Include="RazorPackageLibraryDirectDependency" Version="1.0.0" />
</ItemGroup>

<ItemGroup>
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@
<Company>Microsoft</Company>
<Description>PackageLibraryDirectDependency Description</Description>
<DeterministicSourcePaths>false</DeterministicSourcePaths>
<PackageOutputPath>$(MSBuildThisFileDirectory)..\AppWithPackageAndP2PReference\TestPackages</PackageOutputPath>
<!-- See Directory.Packages.props for details on $(AspNetTestPackageSource).
It essentially creates an additional feed for the tests packages at the root
of the test project
-->
<PackageOutputPath>$(AspNetTestPackageSource)</PackageOutputPath>
</PropertyGroup>

<PropertyGroup>
Expand All @@ -27,8 +31,12 @@
<!-- <Content Include="build\**" Pack="true" PackagePath="build" /> -->
<!-- We will remove the line below when we do the item to support packing -->
<!-- <Content Update="wwwroot\**" Pack="true" PackagePath="razorContent" /> -->
<ProjectReference Include="..\PackageLibraryTransitiveDependency\PackageLibraryTransitiveDependency.csproj" />
<ProjectReference Include="..\RazorPackageLibraryTransitiveDependency\RazorPackageLibraryTransitiveDependency.csproj" />
</ItemGroup>

<Target Name="EnsureFingerprinting" BeforeTargets="Pack" DependsOnTargets="ResolveStaticWebAssetsConfiguration" >
<!-- Error if StaticWebAssetFingerprintingEnabled is not true -->
<Error Condition="'$(StaticWebAssetFingerprintingEnabled)' != 'true'" Text="$(StaticWebAssetFingerprintingEnabled) must be true for the test to pass." />
</Target>

</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<Project Sdk="Microsoft.NET.Sdk.Razor">

<PropertyGroup>
<AddRazorSupportForMvc>true</AddRazorSupportForMvc>
</PropertyGroup>

<PropertyGroup>
<TargetFramework>$(AspNetTestTfm)</TargetFramework>
<Copyright>© Microsoft</Copyright>
<Product>Razor Test</Product>
<Company>Microsoft</Company>
<Description>RazorPackageLibraryTransitiveDependency Description</Description>
<DeterministicSourcePaths>false</DeterministicSourcePaths>
<!-- See Directory.Packages.props for details on $(AspNetTestPackageSource).
It essentially creates an additional feed for the tests packages at the root
of the test project
-->
<PackageOutputPath>$(AspNetTestPackageSource)</PackageOutputPath>
</PropertyGroup>

<PropertyGroup>
<!-- We don't want to run build server when not running as tests. -->
<UseRazorBuildServer>false</UseRazorBuildServer>
</PropertyGroup>

<ItemGroup>
<FrameworkReference Include="Microsoft.AspNetCore.App" />
</ItemGroup>

<Target Name="EnsureFingerprinting" BeforeTargets="Pack" DependsOnTargets="ResolveStaticWebAssetsConfiguration" >
<!-- Error if StaticWebAssetFingerprintingEnabled is not true -->
<Error Condition="'$(StaticWebAssetFingerprintingEnabled)' != 'true'" Text="$(StaticWebAssetFingerprintingEnabled) must be true for the test to pass." />
</Target>

</Project>
5 changes: 5 additions & 0 deletions src/Assets/WasmOverride/Directory.Build.targets
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
<Project>
<!-- Overriding only when workload is installed, and targeting net8.0 -->
<Import Project="WasmOverridePacks.targets" Condition="'$(WasmNativeWorkload)' == 'true' and '$(RuntimeIdentifier)' == 'browser-wasm' and '$(TargetFrameworkIdentifier)' == '.NETCoreApp' and $([MSBuild]::VersionEquals('$(TargetFrameworkVersion)', '8.0'))" />
<Target Name="EnsureAdditionalFolder" BeforeTargets="Restore">
<MakeDir Directories="$(MSBuildThisFileDirectory)TestPackages\" />
</Target>

</Project>

3 changes: 2 additions & 1 deletion src/Assets/WasmOverride/Directory.Packages.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<Project>
<PropertyGroup>
<ManagePackageVersionsCentrally>false</ManagePackageVersionsCentrally>
<RestoreAdditionalProjectSources Condition="Exists('$(MSBuildProjectDirectory)/TestPackages/')">$(RestoreAdditionalProjectSources);$(MSBuildProjectDirectory)/TestPackages/</RestoreAdditionalProjectSources>
<AspNetTestPackageSource>$(MSBuildThisFileDirectory)TestPackages\</AspNetTestPackageSource>
<RestoreAdditionalProjectSources Condition="Exists('$(AspNetTestPackageSource)')">$(RestoreAdditionalProjectSources);$(AspNetTestPackageSource)</RestoreAdditionalProjectSources>
</PropertyGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@
<ItemGroup>
<Compile Include="**\*.cs" />
<Compile LinkBase="StaticWebAssets" Include="..\..\StaticWebAssetsSdk\Tasks\Data\**\StaticwebAsset.cs" />
<Compile LinkBase="StaticWebAssets" Include="..\..\StaticWebAssetsSdk\Tasks\Data\**\StaticwebAssetPathPattern.cs" />
<Compile LinkBase="StaticWebAssets" Include="..\..\StaticWebAssetsSdk\Tasks\Data\**\StaticwebAssetPathSegment.cs" />
<Compile LinkBase="StaticWebAssets" Include="..\..\StaticWebAssetsSdk\Tasks\Data\**\StaticwebAssetSegmentPart.cs" />
<Compile LinkBase="StaticWebAssets" Include="..\..\StaticWebAssetsSdk\Tasks\Data\**\StaticwebAssetTokenResolver.cs" />
<Compile LinkBase="StaticWebAssets" Include="..\..\StaticWebAssetsSdk\Tasks\Utils\FileHasher.cs" />
</ItemGroup>

Expand Down
Empty file modified src/RazorSdk/update-test-baselines.sh
100644 → 100755
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Copyright (c) .NET Foundation. All rights reserved.
Condition="'$(StaticWebAssetsSdkBuildTasksAssembly)' != ''" />

<UsingTask
TaskName="Microsoft.AspNetCore.StaticWebAssets.Tasks.GenerateStaticWebAssetsPropsFile"
TaskName="Microsoft.AspNetCore.StaticWebAssets.Tasks.GenerateStaticWebAssetsPropsFile50"
AssemblyFile="$(StaticWebAssetsSdkBuildTasksAssembly)"
Condition="'$(StaticWebAssetsSdkBuildTasksAssembly)' != ''" />

Expand Down Expand Up @@ -513,7 +513,7 @@ Copyright (c) .NET Foundation. All rights reserved.
<!-- Generates a props file that goes in build\Microsoft.AspNetCore.StaticWebAssets.props
and that describes the static web assets for the package.
-->
<GenerateStaticWebAssetsPropsFile
<GenerateStaticWebAssetsPropsFile50
Condition="'$(_CurrentProjectHasStaticWebAssets)' == 'true'"
StaticWebAssets="@(_CurrentProjectStaticWebAsset)"
AllowEmptySourceType="true"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Integration with static web assets:
<UsingTask TaskName="Microsoft.AspNetCore.StaticWebAssets.Tasks.ApplyCssScopes" AssemblyFile="$(StaticWebAssetsSdkBuildTasksAssembly)" />
<UsingTask TaskName="Microsoft.AspNetCore.StaticWebAssets.Tasks.ComputeCssScope" AssemblyFile="$(StaticWebAssetsSdkBuildTasksAssembly)" />
<UsingTask TaskName="Microsoft.AspNetCore.StaticWebAssets.Tasks.RewriteCss" AssemblyFile="$(StaticWebAssetsSdkBuildTasksAssembly)" />
<UsingTask TaskName="Microsoft.AspNetCore.StaticWebAssets.Tasks.ConcatenateCssFiles" AssemblyFile="$(StaticWebAssetsSdkBuildTasksAssembly)" />
<UsingTask TaskName="Microsoft.AspNetCore.StaticWebAssets.Tasks.ConcatenateCssFiles50" AssemblyFile="$(StaticWebAssetsSdkBuildTasksAssembly)" />

<PropertyGroup>

Expand Down Expand Up @@ -337,7 +337,7 @@ Integration with static web assets:
<!-- This is the bundle for the app, we will always generate it when there are scoped css files for the current project or
we detected existing bundles available. If some other project/package didn't bundle their assets, we will not be including
them in this bundle. -->
<ConcatenateCssFiles
<ConcatenateCssFiles50
Condition="'@(_ScopedCssProjectBundles)' != '' or '@(_ScopedCss)' != ''"
ScopedCssFiles="@(_CurrentProjectDiscoveredScopedCssFiles)"
ProjectBundles="@(_ScopedCssProjectBundles)"
Expand All @@ -346,7 +346,7 @@ Integration with static web assets:
<!-- This is the project bundle, we will only generate it when there are scoped files defined in the project. This bundle will be used
when the project is referenced from another project or packed as a package (Razor Class Library). If some other project/package
didn't bundle their assets, we will not be including them in this bundle. -->
<ConcatenateCssFiles
<ConcatenateCssFiles50
Condition="'@(_ScopedCss)' != ''"
ScopedCssFiles="@(_CurrentProjectDiscoveredScopedCssFiles)"
ProjectBundles="@()"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -224,11 +224,19 @@ Integration with static web assets:

<ItemGroup>
<_ScopedCssAppBundleStaticWebAssetCandidate Include="$(_ScopedCssOutputPath)">
<RelativePath>$(PackageId).styles.css</RelativePath>
<RelativePath Condition="'$(StaticWebAssetFingerprintingEnabled)' == 'true'">$(PackageId)#[.{fingerprint}]?.styles.css</RelativePath>
<RelativePath Condition="'$(StaticWebAssetFingerprintingEnabled)' != 'true'">$(PackageId).styles.css</RelativePath>
</_ScopedCssAppBundleStaticWebAssetCandidate>
<_ScopedCssProjectBundleStaticWebAssetCandidate Include="$(_ScopedCssProjectOutputPath)">
<RelativePath>$(PackageId).bundle.scp.css</RelativePath>
<RelativePath Condition="'$(StaticWebAssetFingerprintingEnabled)' == 'true'">$(PackageId)#[.{fingerprint}]!.bundle.scp.css</RelativePath>
<RelativePath Condition="'$(StaticWebAssetFingerprintingEnabled)' != 'true'">$(PackageId).bundle.scp.css</RelativePath>
</_ScopedCssProjectBundleStaticWebAssetCandidate>
<!-- Adds a Link: <bundle1>; rel="preload", <bundle2>; rel="preload", <bundle3>; rel="preload" -->
<_AddLinkHeaderToAppBundle Include="Append" Condition="'@(_ResolvedScopedCssBundleEndpoints)' != ''">
<UpdateTarget>Header</UpdateTarget>
<Name>Link</Name>
<Value>@(_ResolvedScopedCssBundleEndpoints->'&lt;%(Identity)&gt;; rel="preload"; as="style"', ', ')</Value>
</_AddLinkHeaderToAppBundle>
</ItemGroup>

<DefineStaticWebAssets Condition="@(_AllScopedCss) != ''"
Expand Down Expand Up @@ -259,6 +267,20 @@ Integration with static web assets:
<Output TaskParameter="Endpoints" ItemName="_ScopedCssAppBundleStaticWebAssetEndpoint" />
</DefineStaticWebAssetEndpoints>

<UpdateStaticWebAssetEndpoints
Condition="'@(_AddLinkHeaderToAppBundle)' != ''"
EndpointsToUpdate="@(_ScopedCssAppBundleStaticWebAssetEndpoint)"
AllEndpoints="@(_ScopedCssAppBundleStaticWebAssetEndpoint)"
Operations="@(_AddLinkHeaderToAppBundle)"
>
<Output TaskParameter="UpdatedEndpoints" ItemName="_UpdatedScopedCssAppBundleStaticWebAssetEndpoint" />
</UpdateStaticWebAssetEndpoints>

<ItemGroup Condition="'@(_AddLinkHeaderToAppBundle)' != ''">
<_ScopedCssAppBundleStaticWebAssetEndpoint Remove="@(_UpdatedScopedCssAppBundleStaticWebAssetEndpoint)" />
<_ScopedCssAppBundleStaticWebAssetEndpoint Include="@(_UpdatedScopedCssAppBundleStaticWebAssetEndpoint)" />
</ItemGroup>

<DefineStaticWebAssets Condition="@(_ScopedCss) != ''"
CandidateAssets="@(_ScopedCssProjectBundleStaticWebAssetCandidate)"
SourceType="Computed"
Expand Down Expand Up @@ -351,16 +373,55 @@ Integration with static web assets:
<!-- Incrementalism is built into the task itself. -->
<ItemGroup>
<_CurrentProjectDiscoveredScopedCssFiles Include="@(_DiscoveredScopedCssFiles)" />
<!-- If we are in standalone hosting, we want to resolve endpoints that match the file name, that's what standalone does -->
<_ScopedCssProjectBundleFilters Include="Standalone" Condition="$(StaticWebAssetStandaloneHosting) == 'true'" />
<!-- If we are not in standalone hosting, we want to resolve endpoints with a fingerprint where possible -->
<_ScopedCssProjectBundleFilters Include="Property" Condition="$(StaticWebAssetStandaloneHosting) != 'true'">
<Name>fingerprint</Name>
</_ScopedCssProjectBundleFilters>
<_ScopedCssProjectBundleFiltersNoFingerprint Include="Property" Condition="$(StaticWebAssetStandaloneHosting) != 'true'">
<Name>fingerprint</Name>
<Mode>Exclude</Mode>
</_ScopedCssProjectBundleFiltersNoFingerprint>
</ItemGroup>

<FilterStaticWebAssetEndpoints Condition="'@(_ScopedCssProjectBundles)' != ''"
Endpoints="@(StaticWebAssetEndpoint)"
Assets="@(_ScopedCssProjectBundles)"
Filters="@(_ScopedCssProjectBundleFilters)"
>
<Output TaskParameter="FilteredEndpoints" ItemName="_FilteredScopedCssBundleEndpoints" />
<Output TaskParameter="AssetsWithoutMatchingEndpoints" ItemName="_ScopedCssBundlesWithoutFingerprint" />
</FilterStaticWebAssetEndpoints>

<FilterStaticWebAssetEndpoints Condition="'$(StaticWebAssetStandaloneHosting)' != 'true' and '@(_ScopedCssBundlesWithoutFingerprint)' != ''"
Endpoints="@(StaticWebAssetEndpoint)"
Assets="@(_ScopedCssBundlesWithoutFingerprint)"
Filters="@(_ScopedCssProjectBundleFiltersNoFingerprint)"
>
<Output TaskParameter="FilteredEndpoints" ItemName="_FilteredScopedCssBundleEndpoints" />
<Output TaskParameter="AssetsWithoutMatchingEndpoints" ItemName="_ScopedCssBundlesWithoutEndpoints" />
</FilterStaticWebAssetEndpoints>

<Error Condition="'@(_ScopedCssProjectBundles)' != '' and '@(_ScopedCssBundlesWithoutEndpoints)' != ''"
Text="The following scoped css bundles do not have matching endpoints: @(_ScopedCssBundlesWithoutEndpoints->'%(RelativePath)')" />

<ResolveStaticWebAssetEndpointRoutes
Condition="'@(_ScopedCssProjectBundles)' != ''"
Endpoints="@(_FilteredScopedCssBundleEndpoints)"
Assets="@(_ScopedCssProjectBundles)"
>
<Output TaskParameter="ResolvedEndpoints" ItemName="_ResolvedScopedCssBundleEndpoints" />
</ResolveStaticWebAssetEndpointRoutes>

<!-- This is the bundle for the app, we will always generate it when there are scoped css files for the current project or
we detected existing bundles available. If some other project/package didn't bundle their assets, we will not be including
them in this bundle. -->

<ConcatenateCssFiles
Condition="'@(_ScopedCssProjectBundles)' != '' or '@(_ScopedCss)' != ''"
ScopedCssFiles="@(_CurrentProjectDiscoveredScopedCssFiles)"
ProjectBundles="@(_ScopedCssProjectBundles)"
ProjectBundles="@(_ResolvedScopedCssBundleEndpoints)"
ScopedCssBundleBasePath="$(_ScopedCssBundleBasePath)"
OutputFile="$(_ScopedCssOutputPath)" />

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,21 @@ Copyright (c) .NET Foundation. All rights reserved.
AssemblyFile="$(StaticWebAssetsSdkBuildTasksAssembly)"
Condition="'$(StaticWebAssetsSdkBuildTasksAssembly)' != ''" />

<UsingTask
TaskName="Microsoft.AspNetCore.StaticWebAssets.Tasks.FilterStaticWebAssetEndpoints"
AssemblyFile="$(StaticWebAssetsSdkBuildTasksAssembly)"
Condition="'$(StaticWebAssetsSdkBuildTasksAssembly)' != ''" />

<UsingTask
TaskName="Microsoft.AspNetCore.StaticWebAssets.Tasks.UpdateStaticWebAssetEndpoints"
AssemblyFile="$(StaticWebAssetsSdkBuildTasksAssembly)"
Condition="'$(StaticWebAssetsSdkBuildTasksAssembly)' != ''" />

<UsingTask
TaskName="Microsoft.AspNetCore.StaticWebAssets.Tasks.ResolveStaticWebAssetEndpointRoutes"
AssemblyFile="$(StaticWebAssetsSdkBuildTasksAssembly)"
Condition="'$(StaticWebAssetsSdkBuildTasksAssembly)' != ''" />

<!-- Static web assets define how web content needs to be served from web applications, class libraries and packages during
development and what and where web contents need to be served on the published application.

Expand Down Expand Up @@ -403,6 +418,7 @@ Copyright (c) .NET Foundation. All rights reserved.
<StaticWebAssetBasePath Condition="'$(StaticWebAssetBasePath)' == ''">_content/$(PackageId)</StaticWebAssetBasePath>
<StaticWebAssetProjectMode Condition="'$(StaticWebAssetProjectMode)' == ''">Default</StaticWebAssetProjectMode>
<StaticWebAssetEndpointMode Condition="'$(StaticWebAssetEndpointMode)' == ''" >Hosted</StaticWebAssetEndpointMode>
<StaticWebAssetFingerprintingEnabled Condition="'$(StaticWebAssetFingerprintingEnabled)' == ''">true</StaticWebAssetFingerprintingEnabled>
<StaticWebAssetMergeTarget Condition="'$(TargetFrameworks)' != '' and '$(TargetPlatformIdentifier)' == 'browser'">Browser</StaticWebAssetMergeTarget>
<StaticWebAssetMergeTarget Condition="'$(TargetFrameworks)' != '' and '$(TargetPlatformIdentifier)' == ''">Server</StaticWebAssetMergeTarget>

Expand Down
Loading