title: Trying to play sounds in console application VB.NET
body: <p>I want to play a sound file to play in my console application but the following doesn't work:</p>
  <p><code>My.Computer.Audio.Play(&quot;[file path string]&quot;, AudioPlayMode.Background)</code></p>
  <p>When hovering over &quot;my computer&quot; it brings brings up the error <code>'Computer' is not a member of 'JapaneseHelper.My'</code>. And when hovering over Audio.PlayMode it says <code>'AudioPlayMode' is not declared. It may be inaccessible due to its protection level.</code></p>
  <p>I have searched everywhere for this and can't find anything that shows me how to do it, I've only seen instructions for forms applications (When I try to copy what is done in the form app, it doesn't work either). I've tried a couple of &quot;Imports&quot; such as <code>Import System.IO</code> but they didn't fix the issue. I don't want to open a music player, I want it to be played in the background like <code>My.Computer.Audio.Play</code> should do. Is it because you can't do it for a console application maybe? However I don't understand why a console apps wouldn't be able to do it.</p>