Avoid build race between x64 and x86 (#25465)

This commit is contained in:
Justin Kotalik 2020-08-31 15:21:21 -07:00 committed by GitHub
parent 6a3ce0d974
commit 071a539ae5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -303,8 +303,9 @@
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
<Target Name="AfterBuild">
<Target Name="AfterBuild" Condition="'$(Platform)' == 'x64'">
<!-- Drop a file in the artifacts directory containing the ANCM version number -->
<!-- Only write on x64 build to avoid both x64 and x86 writing to same place. -->
<ItemGroup>
<VersionFileContents Include="$(AspNetCoreModuleVersionMajor).$(AspNetCoreMinorVersion).$(AssemblyBuild).$(AspNetCorePatchVersion)" />
<VersionFileContents Include="$(SourceRevisionId)" />