From 5eaf66d4ec42df22426dd6a41a4ee6fe908d8cb8 Mon Sep 17 00:00:00 2001 From: Wes Haggard Date: Wed, 1 Mar 2017 12:53:25 -0800 Subject: [PATCH] Allow native images to resolve for ReferenceFromRuntime references We will likely be removing the System.Private.CoreLib.dll and only having System.Private.CoreLib.ni.dll so we need our ReferenceFromRuntime infrastructure to support falling back to the ni if that is the only thing present. --- referenceFromRuntime.targets | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/referenceFromRuntime.targets b/referenceFromRuntime.targets index df0b90a15e..d707f8313f 100644 --- a/referenceFromRuntime.targets +++ b/referenceFromRuntime.targets @@ -36,13 +36,23 @@ <_filteredReferencePathFromRuntimeByFileName Include="@(_referencePathFromRuntimeByFileName)" Condition="'@(_referencePathFromRuntimeByFileName)' == '@(ReferenceFromRuntime)' AND '%(Identity)' != ''" /> - <_missingReferenceFromRuntime Include="@(ReferenceFromRuntime)" Exclude="@(_referencePathFromRuntimeByFileName)" /> + <_remainingReferenceFromRuntime Include="@(ReferenceFromRuntime)" Exclude="@(_filteredReferencePathFromRuntimeByFileName)" /> + + + <_remainingReferenceFromRuntimeWithNI Include="@(_remainingReferenceFromRuntime->'%(Identity).ni')"> + %(Identity) + + + <_filteredReferencePathFromRuntimeByFileName Include="@(_referencePathFromRuntimeByFileName)" + Condition="'@(_referencePathFromRuntimeByFileName)' == '@(_remainingReferenceFromRuntimeWithNI)' AND '%(Identity)' != ''" /> + + <_missingReferenceFromRuntime Include="@(_remainingReferenceFromRuntimeWithNI)" Exclude="@(_filteredReferencePathFromRuntimeByFileName)" /> + Text="Could not resolve ReferenceFromRuntime item(s) '%(_missingReferenceFromRuntime.OriginalReferenceFromRuntime)' from '$(RuntimeProjectFile)'." />