Skip to content

Consider not excluding .well-known/* from publishing #42448

@tiesmaster

Description

@tiesmaster

Is there an existing issue for this?

  • I have searched the existing issues

Is your feature request related to a problem? Please describe the problem.

I'm trying to add a security.txt to our site, as a best practice. It's added as wwwroot/.well-known/security.txt, and it's showing up on dotnet run. However, when the app gets deployed, the file doesn't get served. After debugging, it appears that the file doesn't get published (the pipeline does a "plain dotnet publish on a linux host). I suspect it's because .well-known is a "dot file", and therefore gets ignored.

This appears to be a known issue, and the suggested answer fixes the problem, and the file gets published.

Describe the solution you'd like

I suggest that the folder .well-known should be treated differently, and not excluded from publishing, as it's purpose is to serve "well known" content, defined by the RFC 5785.

Additional context

No response

Metadata

Metadata

Assignees

Labels

✔️ Resolution: FixedThe bug or enhancement requested in this issue has been checked-in!area-mvcIncludes: MVC, Actions and Controllers, Localization, CORS, most templatesbugThis issue describes a behavior which is not expected - a bug.feature-razor-sdkgood first issueGood for newcomers.help wantedUp for grabs. We would accept a PR to help resolve this issue

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions