Skip to content

Commit ae7f47d

Browse files
authored
Fixes building Host tests from VS (#55917)
When building the Host tests projects from VS the CrossGen2 related properties are not set (probably because the build type is not set to Core - which doesn't matter for the tests). Changed the includes to be conditional.
1 parent d05950b commit ae7f47d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/installer/pkg/sfx/Microsoft.NETCore.App/Microsoft.NETCore.App.Runtime.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,10 +155,10 @@
155155
</ItemGroup>
156156
</Target>
157157

158-
<Import Project="$(Crossgen2SdkOverridePropsPath)" />
158+
<Import Project="$(Crossgen2SdkOverridePropsPath)" Condition="'$(Crossgen2SdkOverridePropsPath)' != ''" />
159159
<Import Project="Sdk.targets" Sdk="Microsoft.NET.Sdk" />
160160
<Import Project="Sdk.targets" Sdk="Microsoft.DotNet.SharedFramework.Sdk" />
161-
<Import Project="$(Crossgen2SdkOverrideTargetsPath)" />
161+
<Import Project="$(Crossgen2SdkOverrideTargetsPath)" Condition="'$(Crossgen2SdkOverrideTargetsPath)' != ''" />
162162
<PropertyGroup>
163163
<PublishReadyToRunComposite Condition="$(ForcePublishReadyToRunComposite) == 'true'">true</PublishReadyToRunComposite>
164164
</PropertyGroup>

0 commit comments

Comments
 (0)