Skip to content

refactor: rename Aspire samples to AndreGoepel.Marten.Identity naming scheme - #149

Merged
andregoepel merged 1 commit into
mainfrom
claude/samples-namensschema-aspire-61241e
Jul 26, 2026
Merged

refactor: rename Aspire samples to AndreGoepel.Marten.Identity naming scheme#149
andregoepel merged 1 commit into
mainfrom
claude/samples-namensschema-aspire-61241e

Conversation

@andregoepel

Copy link
Copy Markdown
Owner

Summary

  • Renamed the .NET Aspire sample projects under samples/ to follow the repo's package naming convention:
    • MartenIdentity.Aspire.AppHostAndreGoepel.Marten.Identity.AppHost
    • MartenIdentity.Aspire.ServiceDefaultsAndreGoepel.Marten.Identity.ServiceDefaults
    • MartenIdentity.Aspire.WebAndreGoepel.Marten.Identity.Sample
  • Updated all namespaces, project references, the .slnx, the generated Aspire Projects.* type names, the E2E test project/fixture, and docs (README.md, CLAUDE.md, samples/README.md, E2E test README) to match.

Notes for reviewers

  • The new AndreGoepel.Marten.Identity.Sample namespace still starts with AndreGoepel.Marten..., same as the core library. This shadows the Marten NuGet package's top-level namespace for unqualified lookups inside Razor-generated code, because Razor emits using Marten; nested inside the file's own namespace block, and C#'s namespace lookup then resolves Marten to AndreGoepel.Marten (this project's own namespace) instead of the package. Setup.razor now qualifies the injected session as global::Marten.IQuerySession to work around this — it's the only place in the sample that referenced a Marten type unqualified.
  • Verified: full solution builds clean (dotnet build), dotnet csharpier format . applied, and the unit + Blazor test suites pass (191 + 130 tests).

Test plan

  • dotnet build AndreGoepel.Marten.Identity.slnx succeeds
  • dotnet test tests/AndreGoepel.Marten.Identity.Tests passes
  • dotnet test tests/AndreGoepel.Marten.Identity.Blazor.Tests passes
  • E2E suite (not run in this session — requires Docker/Aspire)

… scheme

The sample projects (MartenIdentity.Aspire.AppHost/.ServiceDefaults/.Web)
didn't follow the repo's package naming convention. Renamed to:

- AndreGoepel.Marten.Identity.AppHost
- AndreGoepel.Marten.Identity.ServiceDefaults
- AndreGoepel.Marten.Identity.Sample (was .Web)

Updated all namespaces, project references, the .slnx, generated
Projects.* type names, the E2E test project/fixture, and docs.

The new Sample namespace still starts with "AndreGoepel.Marten...", which
shadows the Marten package's top-level namespace for unqualified lookups
in Razor-generated code (nested "using Marten;" inside the namespace
block). Setup.razor now qualifies IQuerySession as global::Marten.IQuerySession
to work around this.
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