当试图构建Xamarin解决方案的android项目时。 Windows.Networking.Connectivity.WwanContract并不存在于我的系统的任何地方。
Severity Code Description Project File Line Suppression State
Error Exception while loading assemblies:
System.IO.FileNotFoundException: Could not load assembly
'Windows.Networking.Connectivity.WwanContract, Version=1.0.0.0,
Culture=neutral, PublicKeyToken='. Perhaps it doesn't exist in the Mono for
Android profile?
File name: 'Windows.Networking.Connectivity.WwanContract.dll'
at
Java.
Interop.Tools.Cecil.DirectoryAssemblyResolver.Resolve(AssemblyNameReference
reference, ReaderParameters parameters)
at Xamarin.Android.
Tasks.ResolveAssemblies.AddAssemblyReferences(DirectoryAssemblyResolver
resolver, ICollection`1 assemblies, AssemblyDefinition assembly, Boolean
topLevel)
at Xamarin.Android.Tasks.ResolveAssemblies.Execute(DirectoryAssemblyResolver
resolver) project.Android