Is it possible to insert a sound file in Visual Studio in C # in a console application that will be played after (although it is desirable at the same time, but it will do so as well) when executing the Console.WriteLine command? And if so, how to do it, and how to make it so that after assembling the release version of the application this file is played without any problems and this application can be easily transferred to another computer?

    2 answers 2

    System.Media.SoundPlayer player = new System.Media.SoundPlayer(@"c:\mywavfile.wav"); player.Play(); 

      If you don't care which sound will play, then Console.Beep ();