简体   繁体   English

CS1703:在Xamarin.Droid中,我应该使用位于Mono.Framework或System.Runtime中的.Net Standard windowsruntime.dll吗?

[英]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>

Duplicate question here , btw. 这里有重复的问题,顺便说一下

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 .NET Web API项目错误CS1703:已导入具有相同标识的多个程序集:System.Runtime.Serialization.Primitives.dll - .NET Web API project Error CS1703: Multiple assemblies with equivalent identity have been imported: System.Runtime.Serialization.Primitives.dll 如何在 XAML 岛的 WPF 中使用正确的 WindowsRuntime.dll? - How to use the correct WindowsRuntime.dll in WPF for XAML Islands? ASP.NET:由Nuget引起的.NET Framework /标准/核DLL冲突。 “你必须添加对程序集System.Runtime的引用......” - ASP.NET: .NET Framework/Standard/Core DLL collisions, caused by Nuget. “You must add a reference to assembly System.Runtime…” Microsoft.CSharp,System.Collections,System.Threading,框架内冲突中的循环警告和CS1703错误 - Circular Warnings and CS1703 Errors on Microsoft.CSharp, System.Collections, System.Threading, intra-Framework conflict UWP WindowsRuntime.dll版本错误 - UWP WindowsRuntime.dll Version errors Xamarin.Droid HttpRequestException - Xamarin.Droid HttpRequestException Xamarin.Droid:Resource.Designer.cs在更新后损坏 - Xamarin.Droid: Resource.Designer.cs broken after update .NET Framework:如何更新 System.Runtime? - .NET Framework: How to update System.Runtime? 错误CS1703:已导入具有等效标识的多个程序集 - Xamarin + VSTS - Error CS1703: Multiple assemblies with equivalent identity have been imported - Xamarin + VSTS Xamarin.Droid应用程序崩溃检查“共享运行时选项” - Xamarin.Droid app crash on checked “Shared runtime option”
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM