简体   繁体   中英

System.Data namespace missing from visual studio 2013 for windows blank app template

I have created new blank WP8.1 app from visual studio 2013 for windows and trying to test some database tutorials.

When i try to add System.Data, i get an error "type or namespace data does not exists in namespace System" and it's not shown in intelisense. Also, when i try to use some thing from system.data, there is no option to "fix error" by adding required namespace.

在此输入图像描述

When i create Databound app template, i can use system.data normally..

Can someone help me with this?

From the screenshot above it looks like you're creating a WinRT template, that's why the System.Data namespace is not present. The DataBound template is Windows Phone Silverlight-based, and it has System.Data.

You can try one of the following: 1. When you create a Blank App, select "Blank App (Windows Phone Silverlight)" 2. Look at this similar thread with more info: WinRT System.Data - Connect to SQL

Hope that helps! Please let me know!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM