Allow BaselineGenerator to build after updating version (#26252)
- avoid problems when re-branding in a clean clone - attempts to build `BaselineGenerator` failed due to out-of-date baselines
This commit is contained in:
parent
32e3353e69
commit
c6787dd21c
|
|
@ -1,7 +1,10 @@
|
|||
<Project>
|
||||
|
||||
<Target Name="EnsureBaselineIsUpdated"
|
||||
Condition="'$(IsServicingBuild)' == 'true' AND '$(AspNetCoreBaselineVersion)' != '$(PreviousAspNetCoreReleaseVersion)'"
|
||||
Condition=" '$(IsServicingBuild)' == 'true' AND
|
||||
'$(AspNetCoreBaselineVersion)' != '$(PreviousAspNetCoreReleaseVersion)' AND
|
||||
'$(MSBuildProjectName)' != 'BaselineGenerator' AND
|
||||
'$(MSBuildProjectName)' != 'RepoTasks' "
|
||||
BeforeTargets="BeforeBuild">
|
||||
<Error Text="The package baseline ($(AspNetCoreBaselineVersion)) is out of date with the latest release of this repo ($(PreviousAspNetCoreReleaseVersion)).
|
||||
See $(RepoRoot)eng\tools\BaselineGenerator\README.md for instructions on updating this baseline." />
|
||||
|
|
|
|||
Loading…
Reference in New Issue