Is there an existing issue for this?
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
Is there an existing issue for this?
Is your feature request related to a problem? Please describe the problem.
I'm trying to add a
security.txtto our site, as a best practice. It's added aswwwroot/.well-known/security.txt, and it's showing up ondotnet 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 "plaindotnet publishon a linux host). I suspect it's because.well-knownis 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-knownshould 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