Skip to content

Commit ff735c5

Browse files
authored
Find custom.props in parent dir (#4946)
* Update LkgToolset.props Fix build break - custom.props in parent directory * Update LkgToolset.props
1 parent 7b78272 commit ff735c5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

LkgToolset.props

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@
1313
<PropertyGroup Condition="'$(Platform)'=='x86'">
1414
<WorkaroundLkgWin32>true</WorkaroundLkgWin32>
1515
<Platform>Win32</Platform>
16+
<CustomProps>$([MSBuild]::GetPathOfFileAbove('custom.props', '$(MSBuildThisFileDirectory)'))</CustomProps>
1617
</PropertyGroup>
17-
<Import Project="custom.props" Condition="Exists('custom.props') and '$(WorkaroundLkgWin32)'=='true'" />
18+
<Import Project="$(CustomProps)" Condition="Exists('$(CustomProps)') and '$(WorkaroundLkgWin32)'=='true'" />
1819
<PropertyGroup Condition="'$(WorkaroundLkgWin32)'=='true'">
1920
<Platform>x86</Platform>
2021
</PropertyGroup>

0 commit comments

Comments
 (0)