Просмотр исходного кода

Don't add duplicate FrameworkReference

Lucas Trzesniewski 5 лет назад
Родитель
Сommit
57dc70b0d2
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      Rx.NET/Source/src/System.Reactive/build/System.Reactive.targets

+ 2 - 2
Rx.NET/Source/src/System.Reactive/build/System.Reactive.targets

@@ -7,6 +7,6 @@
     <Reference Condition="'$(UseWindowsRxVersion)' == 'true' "  Include="$(MSBuildThisFileDirectory)..\..\build\netcoreapp3.0\System.Reactive.dll" />
     <Reference Condition="'$(UseWindowsRxVersion)' != 'true' "  Include="$(MSBuildThisFileDirectory)..\..\lib\netstandard2.0\System.Reactive.dll" />
 
-    <FrameworkReference Condition="'$(UseWindowsRxVersion)' == 'true' " Include="Microsoft.WindowsDesktop.App" />
+    <FrameworkReference Include="Microsoft.WindowsDesktop.App" Condition="'$(UseWindowsRxVersion)' == 'true' and !@(FrameworkReference->AnyHaveMetadataValue('Identity', 'Microsoft.WindowsDesktop.App'))" />
   </ItemGroup>
-</Project>
+</Project>