locked
FluentValidation not working RRS feed

  • Question

  • User-1980778524 posted

    I was looking for sample code to learn and found one.  However, it did not get compiled. below the details:

    sample code:

    https://github.com/chrissainty/FluentValidationWithRazorComponents

    1) I used Asp.net core host template to create Blazor app and I copied the codes into the Blazor.client only.

    getting all these error messages:


    The type or namespace name 'Person' could not be found (are you missing a using directive or an assembly reference?)

    The type of component 'InputNumber' cannot be inferred based on the values provided. Consider specifying the type arguments directly using the following attributes:

    'Person' does not contain a definition for 'Age' and no accessible extension method 'Age' accepting a first argument of type 'Person' could be found (are you missing a using directive or an assembly reference?)

    'Person' does not contain a definition for 'EmailAddress' and no accessible extension method 'EmailAddress' accepting a first argument of type 'Person' could be found (are you missing a using directive or an assembly reference?)

    would appreciate if you can help to solve this problem.

    Monday, July 8, 2019 6:54 AM

All replies

  • User1289604957 posted

    Hi,

    Which version of <g class="gr_ gr_35 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del multiReplace" id="35" data-gr-id="35">Blazor</g> are you using?

    Best regards,

    Maher

    Wednesday, July 10, 2019 2:01 PM
  • User-1980778524 posted

    hi

    VS2019 preview ver 16.2.0 preview 3

    Blazor: SDK 3.0.100-preview6-012264

    Thanks

    Monday, July 15, 2019 9:40 AM
  • User1289604957 posted

    Hi,

    The sample is using Blazor version 0.9.0-preview3-19154-02.

    How can I do a repro of the issue?

    Best regards,

    Maher

    Monday, July 15, 2019 6:52 PM