
12-09-2006, 04:33 AM
|
Thinker
Join Date: Aug 2006
Posts: 323
|
|
How do I add the reference for the System.Media namespace?
I have been developing programs for my PPC in C# using Visual Studio 2005. Now I want to use the SoundPlayer class, which is in the System.Media namespace. I have the statement "using System.Media;", but when I try to build the program I get the error message, "The type or namespace name 'Media' does not exist in the class or namespace 'System' (are you missing an assembly reference?)"
So, I select menu items "Project -> Add Reference...", and under the .NET tab, System.Media is not listed.
I checked my PC's Add/Remove Programs list, and I do have .NET 2.0 installed.
What am I missing, and what do I have to do to get access to the System.Media namespace??
|
|
|
|
|
|
|
|