Skip to content

API documentation debt - Microsoft.Extensions.FileProvider #43900

Closed

Description

@carlossanlop

Area owners: @maryamariyan @carlossanlop @jozkee

The APIs in the list below are missing some or all of their documentation. Please add the missing documentation directly in triple slash comments in source. We will make sure it gets ported to dotnet-api-docs after it's merged.

Make sure to follow the documentation guidelines defined in the dotnet-api-docs wiki:
https://github.com/dotnet/dotnet-api-docs/wiki

Also please add me as a PR reviewer.

Community contributions are welcome.

Microsoft.Extensions.FileProviders
DocId Summary Parameters TypeParameters ReturnValue Source File Path Docs URL
Microsoft.Extensions.FileProviders.Physical namespace Missing NA NA NA https://github.com/dotnet/dotnet-api-docs/blob/master/xml/ns-Microsoft.Extensions.FileProviders.Physical.xml https://review.docs.microsoft.com/en-us/dotnet/api/Microsoft.Extensions.FileProviders.Physical?branch=master
Microsoft.Extensions.FileProviders.Composite namespace Missing NA NA NA https://github.com/dotnet/dotnet-api-docs/blob/master/xml/ns-Microsoft.Extensions.FileProviders.Composite.xml https://review.docs.microsoft.com/en-us/dotnet/api/Microsoft.Extensions.FileProviders.Composite?branch=master
Microsoft.Extensions.FileProviders namespace Missing NA NA NA https://github.com/dotnet/dotnet-api-docs/blob/master/xml/ns-Microsoft.Extensions.FileProviders.xml https://review.docs.microsoft.com/en-us/dotnet/api/Microsoft.Extensions.FileProviders?branch=master
M:Microsoft.Extensions.FileProviders.NullFileProvider.#ctor Missing NA NA NA https://github.com/dotnet/dotnet-api-docs/blob/master/xml/Microsoft.Extensions.FileProviders/NullFileProvider.xml https://review.docs.microsoft.com/en-us/dotnet/api/Microsoft.Extensions.FileProviders.NullFileProvider.-ctor?branch=master
M:Microsoft.Extensions.FileProviders.NotFoundDirectoryContents.#ctor Missing NA NA NA https://github.com/dotnet/dotnet-api-docs/blob/master/xml/Microsoft.Extensions.FileProviders/NotFoundDirectoryContents.xml https://review.docs.microsoft.com/en-us/dotnet/api/Microsoft.Extensions.FileProviders.NotFoundDirectoryContents.-ctor?branch=master
M:Microsoft.Extensions.FileProviders.FileSystemInfoHelper.#ctor Missing NA NA NA https://github.com/dotnet/dotnet-api-docs/blob/master/xml/Microsoft.Extensions.FileProviders/FileSystemInfoHelper.xml https://review.docs.microsoft.com/en-us/dotnet/api/Microsoft.Extensions.FileProviders.FileSystemInfoHelper.-ctor?branch=master

Notes:

  • The namespaces need to be documented directly in dotnet-api-docs.
  • Some of the APIs are obsolete, so I'll let area owners decide if they want to still document them or skip them. If you opt for documenting them, please do it directly in dotnet-api-docs.

Activity

  1. added
    documentation
    help wanted
    untriaged
    on Oct 27, 2020
  2. added this to the 6.0.0 milestone on Oct 27, 2020
  3. removed
    untriaged
    on Nov 5, 2020
  4. TheMaximum commented on Feb 21, 2021

    @TheMaximum
    Contributor

    I'm looking to add comments to the mentioned constructors, however at the moment they do not exist. I added them in https://github.com/TheMaximum/runtime/commit/f8fa633ef397f95a8f8bcd4ed62f47a6cead87c4, however I've got a few questions about it.

    In my commit, I've created a private constructor for NotFoundDirectoryContents, as it is used as a Singleton. I couldn't find places where it is constructed except for the Singleton property in the class itself. Is this the right course of action, or should the class be allowed to be constructed elsewhere (bypassing the singleton), @maryamariyan?

    /// <summary>
    /// Represents a non-existing directory
    /// </summary>
    public class NotFoundDirectoryContents : IDirectoryContents
    {
    /// <summary>
    /// A shared instance of <see cref="NotFoundDirectoryContents"/>
    /// </summary>
    public static NotFoundDirectoryContents Singleton { get; } = new NotFoundDirectoryContents();

    Adding the constructor for NullFileProvider seems pretty straight-forward (?).

    FileSystemInfoHelper is a static class and as such cannot have instance constructors, could you indicate why it shows up in the documentation and how to proceed, @carlossanlop?

  5. KalleOlaviNiemitalo commented on Feb 21, 2021

    @KalleOlaviNiemitalo

    The FileSystemInfoHelper doc page says it applies only to ".NET Platform Extensions 1.0, 1.1". The class is public and not static in the following, which I think is the 1.1 source code: https://github.com/aspnet/FileSystem/blob/rel/1.1.0/src/Microsoft.Extensions.FileProviders.Physical/FileSystemInfoHelper.cs

    I guess these old branches aren't worth servicing for the sake of documenting a class that is not even public nowadays.

  6. TheMaximum commented on Feb 21, 2021

    @TheMaximum
    Contributor

    I hadn't noticed it just being 1.0 and 1.1, I just looked into the code... thanks @KalleOlaviNiemitalo!
    Don't know if you want to add it in for the older version (and if so, where should that be done), @carlossanlop ?

  7. modified the milestones: 6.0.0, 7.0.0 on Jul 28, 2021
  8. modified the milestones: 7.0.0, 8.0.0 on Aug 10, 2022
  9. modified the milestones: 8.0.0, 9.0.0 on Oct 11, 2023
  10. modified the milestones: 9.0.0, 10.0.0 on Jul 17, 2024
  11. modified the milestones: 10.0.0, 11.0.0 on Jul 7, 2025
  12. KalleOlaviNiemitalo commented on Jul 12, 2025

    @KalleOlaviNiemitalo

    In reply to #43900 (comment):

    The NotFoundDirectoryContents source code does not define any constructors, and that causes the C# compiler to generate a public parameterless constructor, which is also shown in the source code for the reference assembly:

    To preserve the API when adding XML documentation for this constructor, it should be defined as public.

    Making the constructor private would be a breaking API change. AFAIK, there is no API proposal for such, and I don't think one would be approved.

  13. added
    in-pr
    on Mar 11, 2026
  14. added a commit that references this issue on Mar 17, 2026
    8f7b6b5
  15. locked and limited conversation to collaborators on Apr 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area-Extensions-FileSystemdocumentationhelp wantedin-pr

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions