I am trying to learn Squirrel.Windows so I can use it in my project so I am using this guide as a starter. They are using this simple Windows form project from their Github, so people who wants to follow can download it.
I can successfully run the project before editing anything. However, I am currently stuck in this early part of the guide. I followed the instructions given in a way like this:
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();
}
}
}
}
And this error came out:
Program does not contain a static 'Main' method suitable for an entry point
I really don't know what was wrong with what I did.
EDIT :
After the above problem being temporarily fixed with the help of @Junior in the comments. I said temporarily because the error is only gone in the Debug
build but no on the Release
build.