0

I have a red line under System.Data saying that "The type or namespace 'Data' does not exist in the namespace 'System' (are you missing an assembly reference?)."

Thought I needed 4.5 .Net Framework, but I have another project that can use the namespace, so it is something with this project that I am using.

I have seen other threads similar to mine, such as this, but it isn't directly related to just system.data. It's trying to add a namespace beyond data, so there system.data namespace isn't the problem. Haven't seen any threads only related to just the system.data namespace. Any help would be appreciated.

4

4 に答える 4

5

プロジェクトにアセンブリ参照を追加しようとしましたか? プロジェクトを右クリック>参照を追加し、アセンブリタブを選択し、最後にSystem.Dataを選択してチェックし、[OK]を押します。

于 2013-11-01T19:42:49.193 に答える
0

System.Data アセンブリへの参照がプロジェクトにあることを確認しましたか?

于 2013-11-01T19:42:50.453 に答える
0

ソリューション エクスプローラー ウィンドウの参照フォルダーの下に syste.data への参照がありますか? 追加しない場合

于 2013-11-01T19:43:17.783 に答える
0

プロジェクト構成を確認してください:

 ->Right click on Project
 ->Select Properties
 ->Change  "Target Framework" from ".Net Framework 4.0 Client Profile" to ".Net Framework 4.0"
 ->now run the Project.
于 2013-11-01T19:48:32.143 に答える