我正在使用App.xaml
并且由于我的不好而将Edit < Undo
移动到子目录。
当我尝试启动/调试应用程序时,C#说,我的应用程序没有入口点或静态主方法(CS5001)。
<Application x:Class="SongManager.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Startup="Boot">
</Application>
或默认主文件夹的movint将无效。
怎么了?
的App.xaml
using System;
using System.Windows;
using SmuleTools;
namespace SongManager {
public partial class App : Application {
private Account user;
public App() {
}
public Account getAccount() {
return this.user;
}
[STAThread]
private void Boot(object sender, StartupEventArgs e) {
Login login = new Login();
login.AuthSuccess((Object result) => {
this.user = (Account) result;
Manager window = new Manager(this);
window.Show();
login.Close();
});
login.Show();
}
}
}
App.xaml.cs
.dropdown.open {
position: static;
}
.dropdown-menu.image-dropdown-menu {
left: 25px !important;
width: 98%;
top: 180px;
}
答案 0 :(得分:0)
尝试在Main()
课程中添加App
方法:
[STAThread]
public static void Main()
{
App application = new App();
application.Run();
}
默认情况下,构建应用程序时应该生成一个。
答案 1 :(得分:0)