Generic Host config root

Open
#115,524 4 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
csharp
Domain
backend

Research direction

The issue names the generic host, its content root, configuration files, and application resources but no source file, test, or API proposal. Start by tracing how the generic host loads appsettings.json relative to the content root; done requires a decided API and separate configuration location covering the Linux and container use cases.

Written by the indexing model from the issue text.

Description

api-suggestion area-Extensions-Hosting

Description

The generic host has the content root where it loads assets from. These assets fall into two separate categories:

  • configuration files (appsettings.json)
  • application resources (razor files, ...)

This is a request to be able to set the location for configuration files separate from the content root.

Use-Cases

For example, when placing a generic host app according to the Linux File Hierarchy, the config files can be under /etc/<app-name> and static assets under /usr/share/<app-name>.

Or when deploying an application using a container image, the config root would be a volume that enables changing and persisting settings.

API

No proposal yet.

Dominant language
C#
Stars
18.3k
Forks
5.6k
PR merge metrics
PR metrics pending

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from dotnet/runtime

All issues in dotnet/runtime

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.