문제

I tried to add System.Data.SqlServerCe reference to my winform project but it doesnot exist in my DLL list.

I tried this questions but does not work:

I don't have SqlServerCe assembly?

Cannot find namespace 'System.Data.SqlServerCe'

I have no idea how to fix this.

도움이 되었습니까?

해결책

You should install first on your computer:

Microsoft SQL Server Compact 3.5 Service Pack 2: http://www.microsoft.com/en-us/download/details.aspx?id=5783

or

Microsoft® SQL Server® Compact 4.0 SP1: http://www.microsoft.com/en-us/download/details.aspx?id=30709

After install add reference by option Browse (in my case this assembly is in the directory: C:\Program Files (x86)\Microsoft SQL Server Compact Edition\v4.0\Desktop):

enter image description here

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top