0

먼저 내가하려는 일이 가능하지 않다고 말하는 것으로 시작하겠습니다. 저는 Xamarin/Monotouch 개발에 익숙하지 않지만 여기에 있습니다.Xamarin Studio에서 어셈블리를 찾을 수 없음 오류가 발생했습니다.

일부 배경에서는 양방향 라이브러리의 Xamarin PCL 버전을 찾고 있습니다. 수신하지만 전송하지 않는 구현을 발견했습니다. 전에 Windows 응용 프로그램에서 Pusher.net 라이브러리를 사용했는데 제대로 작동 했으므로 이식하려고했습니다. 나는 실제로 문제가있는 PCL로 Pusher assembly을 임포트하고 컴파일 할 수있다. 내가 (A PCL로, 다시)에 Pusher.Connections.Net 라이브러리를 구축하려고하지만 때, 나는 다음과 같은 오류 얻을 :

Target CoreCompile: 
    Tool /Library/Frameworks/Mono.framework/Versions/3.12.0/lib/mono/4.5/mcs.exe execution started with arguments: /noconfig /debug:full /debug+ /optimize- /out:obj/Debug/Pusher.Connections.dll Properties/AssemblyInfo.cs WebSocketConnection.cs WebSocketConnectionFactory.cs /target:library /define:DEBUG /nostdlib /reference:../../../Downloads/WebSocket4Net(0.11)/net45/Debug/WebSocket4Net.dll /reference:../packages/Xamarin.Forms.1.3.1.6296/lib/portable-win+net45+wp80+MonoAndroid10+MonoTouch10+Xamarin.iOS10/Xamarin.Forms.Core.dll /reference:../packages/Xamarin.Forms.1.3.1.6296/lib/portable-win+net45+wp80+MonoAndroid10+MonoTouch10+Xamarin.iOS10/Xamarin.Forms.Xaml.dll /reference:/Users/user/Projects/PusherTest/Pusher/bin/Debug//Pusher.dll /reference:/Library/Frameworks/Mono.framework/Versions/3.12.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile78/Microsoft.CSharp.dll /reference:/Library/Frameworks/Mono.framework/Versions/3.12.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile78/System.Collections.dll /reference:/Library/Frameworks/Mono.framework/Versions/3.12.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile78/System.ComponentModel.EventBasedAsync.dll /reference:/Library/Frameworks/Mono.framework/Versions/3.12.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile78/System.ComponentModel.dll /reference:/Library/Frameworks/Mono.framework/Versions/3.12.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile78/System.Core.dll /reference:/Library/Frameworks/Mono.framework/Versions/3.12.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile78/System.Diagnostics.Contracts.dll /reference:/Library/Frameworks/Mono.framework/Versions/3.12.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile78/System.Diagnostics.Debug.dll /reference:/Library/Frameworks/Mono.framework/Versions/3.12.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile78/System.Diagnostics.Tools.dll /reference:/Library/Frameworks/Mono.framework/Versions/3.12.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile78/System.Dynamic.Runtime.dll /reference:/Library/Frameworks/Mono.framework/Versions/3.12.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile78/System.Globalization.dll /reference:/Library/Frameworks/Mono.framework/Versions/3.12.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile78/System.IO.dll /reference:/Library/Frameworks/Mono.framework/Versions/3.12.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile78/System.Linq.Expressions.dll /reference:/Library/Frameworks/Mono.framework/Versions/3.12.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile78/System.Linq.Queryable.dll /reference:/Library/Frameworks/Mono.framework/Versions/3.12.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile78/System.Linq.dll /reference:/Library/Frameworks/Mono.framework/Versions/3.12.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile78/System.Net.NetworkInformation.dll /reference:/Library/Frameworks/Mono.framework/Versions/3.12.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile78/System.Net.Primitives.dll /reference:/Library/Frameworks/Mono.framework/Versions/3.12.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile78/System.Net.Requests.dll /reference:/Library/Frameworks/Mono.framework/Versions/3.12.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile78/System.Net.dll /reference:/Library/Frameworks/Mono.framework/Versions/3.12.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile78/System.ObjectModel.dll /reference:/Library/Frameworks/Mono.framework/Versions/3.12.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile78/System.Reflection.Extensions.dll /reference:/Library/Frameworks/Mono.framework/Versions/3.12.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile78/System.Reflection.Primitives.dll /reference:/Library/Frameworks/Mono.framework/Versions/3.12.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile78/System.Reflection.dll /reference:/Library/Frameworks/Mono.framework/Versions/3.12.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile78/System.Resources.ResourceManager.dll /reference:/Library/Frameworks/Mono.framework/Versions/3.12.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile78/System.Runtime.Extensions.dll /reference:/Library/Frameworks/Mono.framework/Versions/3.12.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile78/System.Runtime.InteropServices.WindowsRuntime.dll /reference:/Library/Frameworks/Mono.framework/Versions/3.12.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile78/System.Runtime.Serialization.Json.dll /reference:/Library/Frameworks/Mono.framework/Versions/3.12.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile78/System.Runtime.Serialization.Primitives.dll /reference:/Library/Frameworks/Mono.framework/Versions/3.12.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile78/System.Runtime.Serialization.Xml.dll /reference:/Library/Frameworks/Mono.framework/Versions/3.12.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile78/System.Runtime.Serialization.dll /reference:/Library/Frameworks/Mono.framework/Versions/3.12.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile78/System.Runtime.dll /reference:/Library/Frameworks/Mono.framework/Versions/3.12.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile78/System.Security.Principal.dll /reference:/Library/Frameworks/Mono.framework/Versions/3.12.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile78/System.ServiceModel.Http.dll /reference:/Library/Frameworks/Mono.framework/Versions/3.12.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile78/System.ServiceModel.Primitives.dll /reference:/Library/Frameworks/Mono.framework/Versions/3.12.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile78/System.ServiceModel.Security.dll /reference:/Library/Frameworks/Mono.framework/Versions/3.12.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile78/System.ServiceModel.Web.dll /reference:/Library/Frameworks/Mono.framework/Versions/3.12.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile78/System.ServiceModel.dll /reference:/Library/Frameworks/Mono.framework/Versions/3.12.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile78/System.Text.Encoding.Extensions.dll /reference:/Library/Frameworks/Mono.framework/Versions/3.12.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile78/System.Text.Encoding.dll /reference:/Library/Frameworks/Mono.framework/Versions/3.12.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile78/System.Text.RegularExpressions.dll /reference:/Library/Frameworks/Mono.framework/Versions/3.12.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile78/System.Threading.Tasks.dll /reference:/Library/Frameworks/Mono.framework/Versions/3.12.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile78/System.Threading.dll /reference:/Library/Frameworks/Mono.framework/Versions/3.12.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile78/System.Windows.dll /reference:/Library/Frameworks/Mono.framework/Versions/3.12.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile78/System.Xml.Linq.dll /reference:/Library/Frameworks/Mono.framework/Versions/3.12.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile78/System.Xml.ReaderWriter.dll /reference:/Library/Frameworks/Mono.framework/Versions/3.12.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile78/System.Xml.Serialization.dll /reference:/Library/Frameworks/Mono.framework/Versions/3.12.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile78/System.Xml.XDocument.dll /reference:/Library/Frameworks/Mono.framework/Versions/3.12.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile78/System.Xml.XmlSerializer.dll /reference:/Library/Frameworks/Mono.framework/Versions/3.12.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile78/System.Xml.dll /reference:/Library/Frameworks/Mono.framework/Versions/3.12.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile78/System.dll /reference:/Library/Frameworks/Mono.framework/Versions/3.12.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile78/mscorlib.dll /warn:4 
WebSocketConnection.cs(94,27): warning CS1998: Async block lacks `await' operator and will run synchronously 
WebSocketConnection.cs(24,14): error CS1684: Reference to type `System.Net.EndPoint' claims it is defined assembly `System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089', but it could not be found 
    /Users/user/Projects/PusherTest/Pusher.Connections/../../../Downloads/WebSocket4Net(0.11)/net45/Debug/WebSocket4Net.dll (Location of the symbol related to previous error) 
Task "Csc" execution -- FAILED 
Done building target "CoreCompile" in project "/Users/user/Projects/PusherTest/Pusher.Connections/Pusher.Connections.Net.csproj".-- FAILED 

일부 스크롤을 저장하려면를 키 오류는 다음과 같습니다

WebSocketConnection.cs(24,14): error CS1684: Reference to type `System.Net.EndPoint' claims it is defined assembly `System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089', but it could not be found 

내가 열 경우 Xamarin에서 어셈블리 브라우저를 열면 실제로 참조 된 System.dll에 Endpoint 클래스가 정의되어있는 것처럼 보입니다. 잘 모르겠어요

Screenshot

하나의 데이터 포인트는 관련이 다음 Pusher.Connections.Net 라이브러리가 WebSocket4Net 조립에 따라 달라집니다. 나는 패키지 관리자를 통해 해당 어셈블리를 추가하려고하면, 나는 다음과 같은 오류 얻을 : 난 그냥 사이트로 이동하고 어셈블리를 다운로드에 대한 참조를 추가,

Could not install package 'WebSocket4Net 0.8'. You are trying to install this package into a project that targets 'portable-net45+win+wp80+MonoTouch10+MonoAndroid10+xamarinmac20+xamarinios10', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author. 

그러나 만약을, 그것은 보인다 모든 WebSocket 특정 종속성을 충족시킵니다.

무엇이 누락 되었습니까? 미리 감사드립니다.

답변

0

EndPoint class은 설명서를 기반으로 한 PCL 프로필의 일부가 아닙니다. 클래스 정보가 끝나면 예를 들어 HttpWebRequest class에 대해 수행되는 휴대용 클래스 라이브러리에서 지원되는지 여부를 말해야합니다.

Xamarin Studio에서 PCL 프로젝트를 만들고 어셈블리 브라우저를 사용하는 경우 System.dll 파일에는 TypeForwardedTo 특성 집합이 없으므로 어떤 System.dll이 표시되는지 잘 모릅니다.

프로젝트 또는 어셈블리 중 하나에서 휴대용 클래스 라이브러리에 사용할 수없는 일부 유형이 사용되고있는 것으로 의심됩니다.

+0

네가 맞아. 어셈블리 브라우저는 모든 관련 어셈블리 (pcl 또는 not)를 가져와야하며 틀린 system.dll을 선택했습니다. 감사! – tobyb