Skip to content

[Docs][Validation] Docs Information/Guidance missing/incomplete: Missing UnoFeatures Entry for (any) Validation, tell about need for manual Package import! Not working docs! #2883

Open

Description

@DevTKSS

Current behavior

Expected behavior

Image
  • Either fix Docs: Update Validation docs to explicitly state that <UnoFeatures>Extensions</UnoFeatures> does currently not include Validation and users must add <PackageReference Include="Uno.Extensions.Validation" Version="..." /> (and Uno.Extensions.Validation.Fluent if needed),
  • Or Fix SDK: Implement Validation implicit package support (new UnoFeature.cs Validation Entry or include Uno.Extensions.Validation* under Extensions defaults), so the docs statement becomes true.

How to reproduce it (as minimally and precisely as possible)

  1. Create a new Uno app e.g. using the VS 2026 Wizard e.g. starting from the "Recommended" template or: dotnet new unoapp should result in the same
  2. Add the UnoFeature Extensions or if the user did not read the docs, he could assume Validation as conventional entry.
  3. Add the .UseValidation() as described in your docs to the HostBuilder

Environment

For bug reports Check one or more of the following options with "x"
(Which options? here are no options listed in the Bug Report Template, sorry...)

Nuget Package (s):

  • Uno Features normally make additional PackageReference usages obsolete, if this would work!

Package Version(s):

Tryed with Uno.Sdk:

  • 6.0.146
  • 6.1.23 - no change
  • 6.5.31

Affected platform(s):

  • Build tasks

IDE:

  • 2019 (version: )
  • 2022 (version: 17.14.23)
  • 2026 (version: 18.4.0)
  • Visual Studio Code (version: )
  • Rider Windows (version: )
  • Rider macOS (version: )

Relevant plugins:

  • Resharper (version: )

Anything else we need to know?

Missing but interesting Informations too:

  • Requires Uno.Extensions.Configuration ConfigBuilder and Options(-Builder?) via Section() ?
  • Can we use it independant to Uno's Config/Options Extensions in the regular MS OptionsBuilder?

Activity

  1. added
    kind/bug
    triage/untriaged
    on Aug 3, 2025
  2. added theissue type on Aug 18, 2025
  3. DevTKSS commented on Sep 14, 2025

    @DevTKSS
    ContributorAuthor

    Workaround

    Only known Workaround is to nuget import the Package the "old" way without the UnoFeatures usage:

    DirectoryPackages.props:

        <PackageVersion Include="Uno.Extensions.Validation.Fluent" Version="6.2.3"/>

    csproj:

      <ItemGroup>
        <PackageReference Include="Uno.Extensions.Validation.Fluent"/>
      </ItemGroup>

    then its available as described in the docs:

    Image

    Question to the package contents

    since we have the IOptions (UnoFeature Configuration) extension, I would like to use the FluentValidation Extension of course for exactly this, to validate my Options just like we can do with the bare Microsoft.Extensions. Since Uno is kind of shadowing the Configuration import, which means, we can use the overload with result of
    name string, Func<HostBuilderContext,IConfigurationSection> configurationSection but to normally use FluentValidation e.g. through FluentValidation.DependencyInjectionExtensions we are required to not use the UnoFeatures Configuration (with configBuilder.Section<TOptions> then through the ConfigureServices and AddOptions etc like this:

     services.AddValidatorsFromAssemblies(AppDomain.CurrentDomain.GetAssemblies()
         .Where(a => a.GetName().Name?.StartsWith("DevTKSS.Extensions.") ?? false));
    
     services.AddOptionsWithFluentValidation<OAuthOptions>(OAuthOptions.DefaultName);

    this last one is an Extension I created along a MVP YouTube Video who does this for Asp.Net Core.
    its not possible for me, to use this with the UnoFeatures provided things. If you want to, you are interested in what I am trying to do with this, you can find the src code here in this folder in my Repo

  4. changed the title [-][Validation] What happened with Validation in Uno Apps?[/-] [+][Validation] UnoFeature for Validation is not available, manual Package import is needed[/+] on Sep 26, 2025
  5. DevTKSS commented on Oct 30, 2025

    @DevTKSS
    ContributorAuthor

    @MartinZikmund not knowing of the behinds of our UnoFeatures, but as they are located in the Uno Core Repo, I would assume you could check if somebody removed the required things in there? the sdk tells that it doesnt knows about this UnoFeature 🤔

    Maybe a quick fix if its just a re-adding of a name?

    the Validation Test Project in Extensions Repo here in its local clone seems to not have a problem at all, but it does directly reference it, not via UnoFeature 😅

  6. changed the title [-][Validation] UnoFeature for Validation is not available, manual Package import is needed[/-] [+][Docs][Validation] Docs Information/Guidance missing/incomplete: Missing UnoFeatures Entry for (any) Validation, tell about need for manual Package import! Not working docs![/+] on Mar 13, 2026
  7. DevTKSS commented on Mar 13, 2026

    @DevTKSS
    ContributorAuthor

    @Jen-Uno @MartinZikmund @jeromelaban Updated the OP, hoping for anyone tackling this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugtriage/untriaged

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions