Skip to content

Commit 3b719ca

Browse files
authored
Import Microsoft.Managed targets in Sdk.IL (#34124)
If Microsoft.Managed targets aren't imported, multitargeting is broken as the required `InnerBuildProperty` and `InnerBuildPropertyValues` properties aren't defined. Those properties are read by the Graph APIs to identify if a build is an outer or inner build and multiplexes on them. Fixes #34123
1 parent 4a55b46 commit 3b719ca

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/coreclr/src/.nuget/Microsoft.NET.Sdk.IL/targets/Microsoft.NET.Sdk.IL.Common.targets

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@ Copyright (c) .NET Foundation. All rights reserved.
66
***********************************************************************************************
77
-->
88
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
9+
<Import Project="$(MSBuildToolsPath)\Microsoft.Managed.Before.targets" />
910

1011
<Import Condition="'$(IsCrossTargetingBuild)' != 'true'" Project="$(MSBuildThisFileDirectory)Microsoft.NET.Sdk.IL.targets" />
1112
<Import Condition="'$(IsCrossTargetingBuild)' == 'true'" Project="$(MSBuildExtensionsPath)\Microsoft.Common.CrossTargeting.targets" />
12-
13+
14+
<Import Project="$(MSBuildToolsPath)\Microsoft.Managed.After.targets" />
1315
</Project>

0 commit comments

Comments
 (0)