Handlebars-Net / Handlebars.Net

A real .NET Handlebars engine
MIT License
1.24k stars 214 forks source link

Cannot bind to the target method because its signature is not compatible with that of the delegate type #476

Open brianke opened 2 years ago

brianke commented 2 years ago

In C# using .NET 4.7.2 and Handlebars 1.11.5, I am getting this error when simply trying to create a new instance of Handlebars. Here is the method that is trying to create the Handlebars instance

    public Boolean Compile(ErrorMessages errorCollection = null)
    {

            String compiling = String.Empty;
            try
            {
                var handlebars = Handlebars.Create();             // Error occurs here
                . . . . .
            }
     }
oformaniuk commented 2 years ago

Hello @brianke Have you tried the latest version?