Skip to content

[static-files] Missing information or sample code content #35833

@DevTKSS

Description

@DevTKSS

Description

Section speaking of here:
https://learn.microsoft.com/de-de/aspnet/core/fundamentals/static-files?view=aspnetcore-9.0#serve-files-outside-wwwroot-by-updating-iwebhostenvironmentwebrootpath

in this part right below the sample code block it is introducing that the wwwroot would only be used in Development, but nothing in the code sample its speaking of, does actually have a if block to make it do that.

In the preceding code, requests to /:

  • In the development environment return wwwroot/Index.html
  • In any environment other than development return wwwroot-custom/Index.html

Page URL

https://learn.microsoft.com/de-de/aspnet/core/fundamentals/static-files?view=aspnetcore-9.0

Content source URL

https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/fundamentals/static-files.md

Document ID

3fec6e08-fc99-7a5c-796f-3f2347cad891

Platform Id

5c42c2c8-be1b-60de-8cde-f9b8d8c24f5f

Article author

@Rick-Anderson

Metadata

  • ID: d47f38e2-bc36-cfb8-b0cc-17a534689f8b
  • PlatformId: 5c42c2c8-be1b-60de-8cde-f9b8d8c24f5f
  • Service: aspnet-core
  • Sub-service: fundamentals

Related Issues

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions