Closes #26624: Adds validation of ucrtbase[d].dll version with warning for old versions.

This commit is contained in:
Steve Dower 2016-04-12 20:11:25 -07:00
parent 1b80b24007
commit a7a222fde7
4 changed files with 99 additions and 2 deletions

View file

@ -83,6 +83,13 @@
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
<Target Name="ValidateUcrtbase" AfterTargets="AfterBuild">
<PropertyGroup>
<UcrtName>ucrtbase</UcrtName>
<UcrtName Condition="'$(Configuration)' == 'Debug'">ucrtbased</UcrtName>
</PropertyGroup>
<Exec Command='"$(OutDir)python$(PyDebugExt).exe" "$(PySourcePath)PC\validate_ucrtbase.py" $(UcrtName)' ContinueOnError="true" />
</Target>
<Target Name="GeneratePythonBat" AfterTargets="AfterBuild">
<PropertyGroup>
<_Content>@rem This script invokes the most recently built Python with all arguments