Q:

Namespace System.Media does not exit

Trying to use System.Media.SoundPlayer (C#, VS 2015 UWP), however getting the error:

The type of namespace name 'Media' does not exist in the namespace System.

Included reference to PresentationCore.dll, which allows the statement using System.Windows.Media but not System.Media.

A:

System.Media namespace is not available in UWP applications so you can't use SoundPlayer. For playing sounds or other media you can use MediaElement

