<ReferenceCopyLocalPaths Condition="'%(ReferenceFromRuntime.Private)' == 'true'" Include="@(ReferenceFromRuntime->'$(RuntimePath)%(Identity).dll')" />
</ItemGroup>
</Target>
+
+ <PropertyGroup>
+ <PrepareProjectReferencesDependsOn>
+ AddRuntimeProjectReference;
+ $(PrepareProjectReferencesDependsOn);
+ </PrepareProjectReferencesDependsOn>
+ <ResolveReferencesDependsOn>
+ AddRuntimeProjectReference;
+ $(ResolveReferencesDependsOn);
+ </ResolveReferencesDependsOn>
+ <CleanDependsOn>
+ AddRuntimeProjectReference;
+ $(CleanDependsOn)
+ </CleanDependsOn>
+ </PropertyGroup>
<Target Name="AddRuntimeProjectReference"
- BeforeTargets="AddReferencesDynamically"
Condition="'$(IsTestProject)'!='true' AND '@(ReferenceFromRuntime)' != ''">
<Error Condition="('$(IsReferenceAssembly)' != 'true' OR '$(AllowReferenceFromRuntime)' == 'true') AND '$(RuntimeProjectFile)' == ''" Text="RuntimeProjectFile must be specified when using ReferenceFromRuntime from source projects." />
<Error Condition="'$(IsReferenceAssembly)' == 'true' AND '$(AllowReferenceFromRuntime)' != 'true'" Text="ReferenceFromRuntime may not be used from reference assemblies." />