Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto-generated Template file not compiling (C#) #190

V0d01ey opened this issue Sep 11, 2018 · 0 comments


None yet
3 participants
Copy link

commented Sep 11, 2018

When adding following tag to template file Websharper generates cs-file with compilation errors.

<input type="number" name="meridConv" ws-var="meridConv" min="-90" max="90" step="0.01" />
    public class Uploaddialogtemplate
        public Uploaddialogtemplate meridConv(Var<CheckedInput<int>> x) { holes.Add(TemplateHole.NewVarInt("meridconv", x)); return this; }
        public Uploaddialogtemplate meridConv(Var<double> x) { holes.Add(TemplateHole.NewVardoubleUnchecked("meridconv", x)); return this; }
        public Uploaddialogtemplate meridConv(Var<CheckedInput<double>> x) { holes.Add(TemplateHole.NewVardouble("meridconv", x)); return this; }

Compilation Errors:

CS0246 The type or namespace name 'CheckedInput<>' could not be found (are you missing a using directive or an assembly reference?)
CS0117 'TemplateHole' does not contain a definition for 'NewVardoubleUnchecked'
CS0117 'TemplateHole' does not contain a definition for 'NewVardouble'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.