我有一个播放 mp3 的 vb.net 应用程序,但是一旦我发布它,就找不到该文件。我收到以下错误
System.IO.FileNotFoundException:找不到指定的文件。
Public Class Form2
Public audio As New AudioFile(My.Application.Info.DirectoryPath & "\01 - Help.mp3")
Public Sub startsong(ByVal D As Data)
Me.Show()
MHTvalue.Text = D.mht.ToString
Maxcallsvalue.Text = D.maxcalls
CPHvalue.Text = D.cph
If Form1.playsong = True Then
audio.Play()
End If
End Sub
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
' Me.Close()
audio.Stop()
Form1.waittimer = 180000
End Sub
End Class
有任何想法吗?