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:
parent
bf288c40b3
commit
dd2754c2c9
|
|
@ -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">
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue