0

I am writing a C# Console Application in .NET Core and would like to add a .wav or .mp3 file to my Solution and have it playing in the background while my application is running.

I have tried NAudio and System.Media doesn't seem to be available in .NET Core.

1 Answers1

0

Have you added a reference to PresentationCore.dll? Without this you wouldn't be able to use System.Media in .NET core

To do this: Right click references in your solution explorer Click add reference and look for PresentationCore

(Hopefully then you should be able to get the System.Media way working just fine)

Deen
  • 11
  • 1