- ago

In wealth-lab 6, sounds could be played with the SoundPlayer [using System.Media]. However in wealth-lab 8, the following error is occurring

The type or namespace name ‘Media” does not exist in the namespace ‘System’ (are you missing an assembly reference?).

When I look in the .Net Framework Assemblies list there is no reference for System.Media.
0
152
Solved
2 Replies

Reply

Bookmark

Sort
- ago
#1
https://stackoverflow.com/questions/42845506/how-to-play-a-sound-in-netcore

Also, haven't classes from System.Media migrated into System.Windows.Extensions external assembly, downloadable from Nuget?
https://www.nuget.org/packages/System.Windows.Extensions/
0
Best Answer
- ago
#2
Yes the System.Media has migrated however when I asked the question at the time I did not know that.

Also the references for both the System.ComponentModel.Primitives and the System.Windows.Extenisons assemblies are required.
1

Reply

Bookmark

Sort