Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Why is the MIME configuration for .md files not automatically included? #63182

Unanswered
KevinKrueger asked this question in Q&A
Discussion options

Why is the MIME type configuration for .md files not included by default in the web.config of IIS, and can you configure this so that you don't have to manually adjust it every time after publishing?

You must be logged in to vote

Replies: 1 comment 2 replies

Comment options

not included by default in the web.config of IIS

Why it's not included in IIS I don't know (maybe when IIS was (first) made, .md files didn't exist?).
For ASP.NET Core see

// Notes:
// - This table was initially copied from IIS and has many legacy entries we will maintain for backwards compatibility.
// - We only plan to add new entries where we expect them to be applicable to a majority of developers such as being
// used in the project templates.

configure this so that you don't have to manually adjust it every time after publishing

Do you mean Prevent web.config transformation?

You must be logged in to vote
2 replies
Comment options

I have a .md file in the wwwroot which can be called up during development and cannot be found in the IIS after publishing although it is there.

Comment options

I have not configured anything to prevent this. I always publish from the solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /