FabScaffold icon indicating copy to clipboard operation
FabScaffold copied to clipboard

Duplicate reference

Open DejanMilicic opened this issue 6 years ago • 2 comments

In a FabScaffold.Android there is a duplicate reference to System.Threading.Tasks.Extensions.dll

They are pointing to

C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\MonoAndroid\v1.0\Facades\System.Threading.Tasks.Extensions.dll
\FabScaffold\packages\System.Threading.Tasks.Extensions.4.5.2\lib\netstandard2.0\System.Threading.Tasks.Extensions.dll

This happens both in VS2019 and Rider 2019.3

After I manually remove reference from fsproj file

<Reference Include="System.Threading.Tasks.Extensions">
  <HintPath>..\packages\System.Threading.Tasks.Extensions.4.5.2\lib\netstandard2.0\System.Threading.Tasks.Extensions.dll</HintPath>
</Reference>

both references disappear, but I am able to build and run application in Android emulator

DejanMilicic avatar Jan 07 '20 10:01 DejanMilicic

This is an error when building

  The type provider constructor has thrown an exception: [error CS1703: An assembly with the same identity 'System.Threading.Tasks.Extensions, Version=4.2.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' has already been imported. Try removing one of the duplicate references.]

DejanMilicic avatar Jan 07 '20 10:01 DejanMilicic

@DejanMilicic I guess there is need for improvement as well. Dependency names changed after I have created this one.

kunjee17 avatar Jan 08 '20 08:01 kunjee17