0

이전에는 하늘빛 데이터베이스와 관련된 질문을 받았지만 유용한 솔루션이 제공되었지만이 솔루션을 사용하려면 System.Data.SqlClient를 설치해야했습니다. 나는 마이크로 소프트에서 NuGet 패키지를 설치하려고했지만, 할 때마다 다음 오류가 발생합니다. 나는 이것에 약간 도움을 진짜로 평가할 것입니다. 이 프로젝트는 xamarin.forms와 휴대용 클래스 라이브러리를 사용하는 크로스 플랫폼 애플리케이션입니다. 그게 내 스크립트가 있기 때문에 Appname (portable)에 설치하려고합니다. 고맙습니다.Visual Studio Xamarin 프로젝트에서 System.data.sqlClient를 설치할 수 없습니다.

Severity Code Description Project File Line Suppression State 
Error  Could not install package 'System.Data.SqlClient 4.3.0'. 
You are trying to install this package into a project that targets '.NETPortable, 
Version=v4.5,Profile=Profile259', 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.   0 

답변

0

http://portablelibraryprofiles.stephencleary.com/에서 profile259는 system.data.sqlclient를 지원하지 않습니다. 그것에 창 전화가 있습니다.
프로필은 .NET Framework 4.5, Windows 8.0, Windows Phone 8.1, Windows Phone Silverlight 8.0 용입니다.

큰 그림은 Xamarin이고 모바일 클라이언트는 SQL Server를 직접 공격 할 방법이 없습니다. webapi 또는 .....를 사용하여 서비스 façade를 구축하십시오. 몇 가지 아이디어는 https://blog.xamarin.com/developing-enterprise-apps-using-xamarin-forms을 참조하십시오.