Fix up to date check (#26891)

Description
We had support for the UpToDateCheck in Visual Studio with CSS isolation but the target was not being run at design time. This change introduces a new target that runs at design time and makes sure the UpToDateCheckInput and UpToDateCheckBuilt ItemGroups are populated.

Customer Impact
When using CSS isolation from within Visual Studio, a change in a scoped CSS file is not picked up and the project is not rebuilt as a result.
Regression?
No. This feature was introduced in 5.0.

Risk
Low. The new target we added only runs as part of Visual Studio builds.

Fixes
#26843
This commit is contained in:
Javier Calvarro Nelson 2020-10-15 07:29:45 +02:00 committed by GitHub
parent bf288c40b3
commit dd2754c2c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -171,6 +171,11 @@ Integration with static web assets:
</Target>
<Target
Name="_ResolveScopedCssOutputsDesignTime"
DependsOnTargets="_ResolveScopedCssOutputs"
BeforeTargets="CollectUpToDateCheckInputDesignTime;CollectUpToDateCheckBuiltDesignTime" />
<!-- Transforms the original scoped CSS files into their scoped versions on their designated output paths -->
<Target Name="_GenerateScopedCssFiles" Inputs="@(_ScopedCss)" Outputs="@(_ScopedCssOutputs)" DependsOnTargets="_ResolveScopedCssOutputs">