The title say it all, i want my app to play a sound but the SoundPlayer only support window. Any ideas ?

Error CS1069 The type name ‘SoundPlayer’ could not be found in the namespace ‘System.Media‘. This type has been forwarded to assembly ‘System.Windows.Extensions, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51′ Consider adding a reference to that assembly.
You’ll need a package to interface with the Linux sound system since that behavior isn’t present by default in C#.
Any recommendations ? (Sorry for the late reply)
Try this
Thanks, i will try it and report the result to u
C# devs
null reference exceptions

source