Skip to content

Improve Core Quality#59

Merged
MikeAlhayek merged 5 commits intomainfrom
ma/improve-code
Apr 30, 2026
Merged

Improve Core Quality#59
MikeAlhayek merged 5 commits intomainfrom
ma/improve-code

Conversation

@MikeAlhayek
Copy link
Copy Markdown
Member

No description provided.

MikeAlhayek and others added 5 commits April 30, 2026 09:49
When Visual Studio launches Aspire-hosted projects, the working directory
and AppContext.BaseDirectory may not be in a path that contains the project
file above them. The resolver now:

1. Tries the entry assembly location as an additional walk-up candidate
2. Finds the solution/repo root (.slnx/.sln/.git marker) from all known
   starting paths and searches below it for the project file

This ensures App_Data/appsettings.json loads correctly regardless of how
the host process is launched.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
When Visual Studio launches Aspire-hosted projects, the working directory
and AppContext.BaseDirectory may not be in a path that contains the project
file above them. The resolver now:

1. Tries the entry assembly location as an additional walk-up candidate
2. Finds the solution/repo root (.slnx/.sln/.git marker) from all known
   starting paths and searches below it for the project file

This ensures App_Data/appsettings.json loads correctly regardless of how
the host process is launched.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@MikeAlhayek MikeAlhayek merged commit ae3ab14 into main Apr 30, 2026
9 checks passed
@MikeAlhayek MikeAlhayek deleted the ma/improve-code branch April 30, 2026 18:49
@MikeAlhayek MikeAlhayek restored the ma/improve-code branch April 30, 2026 18:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant