これが実行に失敗する理由を誰かが知っていますか。このコードと logo.png という名前のファイルが同じディレクトリにあります。次に、このコードを実行すると、ファイルが見つからないと言って失敗します
using System;
using Gtk;
public class Trackbox {
static int Main() {
Application.Init();
//Create the Window
Window myWin = new Window("TrackBox");
myWin.SetIconFromFile("logo.png");
myWin.Resize(200, 100);
//Create a label and put some text in it.
Label myLabel = new Label();
myLabel.Text = "Welcome to TrackBox";
//Add the label to the form
myWin.Add(myLabel);
//Show Everything
myWin.ShowAll();
Application.Run();
return 0;
}
}
見つからないというエラーが返されますlogo.png
...これはなぜですか? 助けてくれてありがとう。