[英]CS1703: In Xamarin.Droid, should I use the .Net Standard windowsruntime.dll located in Mono.Framework, or System.Runtime?
I'm trying to build this Android Xamarin project , and am getting the compile time error: 我正在尝试构建这个Android Xamarin项目 ,并且收到编译时错误:
./ResilientServices/ResilientServices.Droid/CSC:
Error CS1703: Multiple assemblies with equivalent identity have been imported:
./ResilientServices/packages/System.Runtime.InteropServices.WindowsRuntime.4.0.1/lib/netstandard1.3/System.Runtime.InteropServices.WindowsRuntime.dll'
and
./Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/Facades/System.Runtime.InteropServices.WindowsRuntime.dll'.
Remove one of the duplicate references. (CS1703) (ResilientServices.Droid)
Ran into this just this week. 本周刚刚进入这个阶段。 No idea what change caused it.
不知道是什么改变造成的。
What worked for me was commenting out the HintPath in the .csproj Reference: 对我有用的是在.csproj参考中评论出HintPath:
<Reference Include="System.Runtime.InteropServices.WindowsRuntime">
<!--HintPath>..\..\packages\System.Runtime.InteropServices.WindowsRuntime.4.0.1\lib\netstandard1.3\System.Runtime.InteropServices.WindowsRuntime.dll</HintPath-->
<Private>True</Private>
</Reference>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.