-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Closed
dotnet/sdk
#26366Labels
✔️ Resolution: FixedThe bug or enhancement requested in this issue has been checked-in!The bug or enhancement requested in this issue has been checked-in!area-mvcIncludes: MVC, Actions and Controllers, Localization, CORS, most templatesIncludes: MVC, Actions and Controllers, Localization, CORS, most templatesbugThis issue describes a behavior which is not expected - a bug.This issue describes a behavior which is not expected - a bug.feature-razor-sdkgood first issueGood for newcomers.Good for newcomers.help wantedUp for grabs. We would accept a PR to help resolve this issueUp for grabs. We would accept a PR to help resolve this issue
Milestone
Description
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
martincostello
Metadata
Metadata
Assignees
Labels
✔️ Resolution: FixedThe bug or enhancement requested in this issue has been checked-in!The bug or enhancement requested in this issue has been checked-in!area-mvcIncludes: MVC, Actions and Controllers, Localization, CORS, most templatesIncludes: MVC, Actions and Controllers, Localization, CORS, most templatesbugThis issue describes a behavior which is not expected - a bug.This issue describes a behavior which is not expected - a bug.feature-razor-sdkgood first issueGood for newcomers.Good for newcomers.help wantedUp for grabs. We would accept a PR to help resolve this issueUp for grabs. We would accept a PR to help resolve this issue