我正在尝试学习 Squirrel.Windows,以便可以在我的项目中使用它,因此我将本指南用作初学者。他们正在使用他们的 Github 中的这个简单的 Windows 窗体项目,因此想要关注的人可以下载它。
我可以在编辑任何内容之前成功运行该项目。但是,我目前停留在指南的早期部分。我按照这样的方式给出的说明:
namespace MyApp
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static async Task Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());
using (var mgr = new UpdateManager("MyApp_Root_Here\\Releases"))
{
await mgr.UpdateApp();
}
}
}
}
这个错误出来了:
程序不包含适用于入口点的静态“Main”方法
我真的不知道我做错了什么。
编辑 :
在评论中@Junior的帮助下暂时解决了上述问题。我暂时说是因为错误只在构建中消失了,但在构建中没有。Debug
Release