Skip to content

Point newcomers at Grand.Web as the project to run - #1120

Open
KrzysztofPajak wants to merge 5 commits into
developfrom
docs/main-project-guidance
Open

KrzysztofPajak wants to merge 5 commits into
developfrom
docs/main-project-guidance

Conversation

@KrzysztofPajak

@KrzysztofPajak KrzysztofPajak commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

Type: feature

Issue

A fresh clone offers five projects that start a web server (Grand.Web, Grand.Web.Admin, Grand.Web.Store, Grand.Web.Vendor, Aspire.AppHost) and nine launch profiles with names like http, https, Kestrel, IIS Express. Grand.Web was listed last in the Web solution folder. Nothing said that Grand.Web already hosts the storefront and all three panels, or what the other hosts are for, so newcomers had to guess which one to start.

Solution

  • README / docs/development.md: state that Grand.Web is the project to run (storefront + /admin, /store, /vendor in one process). Add a table in the development guide: Grand.Web always; standalone panels only for installations that host a panel separately; Aspire only for multi-instance + Redis / telemetry testing (needs Docker).
  • GrandNode.slnx: Grand.Web at the top level of the solution; Admin/Store/Vendor moved to Web/Panels; Aspire projects to Aspire. Also removed the empty /src/, /src/Core/, /src/Web/ folders and moved Grand.Web.Store.Tests / Grand.Web.Vendor.Tests from /src/Tests/ into /Tests/ with the other test projects. The set of projects is unchanged.
  • launchSettings.json: profiles named after what they start - GrandNode (Kestrel) / GrandNode (IIS Express), Admin|Store|Vendor panel only (...), Two instances + Redis (http|https). In Grand.Web the Kestrel profile is now first, so it is the default in the IDE. Ports, URLs and environment variables are unchanged Grand.Web.Store had two Kestrel profiles (http, https); they are now one Store panel only (Kestrel) on the same ports, like Admin, and it opens /store - the panel has no route at /.
  • Grand.Web.sln removed: a second solution next to the web project that held only Grand.Web, so building it never copied the plugins or the installer module into the output.
  • docs/development.md also says that a standalone panel reads App_Data/Settings.cfg from its own project directory and runs without plugins, and that the Docker profile does not set ASPNETCORE_ENVIRONMENT.

Breaking changes

None for the application. Every launch profile in Grand.Web, the three panels and Aspire has a new name, so anything that picks a profile by its old name loses it:

  • Visual Studio remembers the selected profile by name. After the switch, F5 starts the first profile, GrandNode (Kestrel) on https://localhost:5001, instead of IIS Express on https://localhost:44350. Pick GrandNode (IIS Express) again to keep the old address (cookies, bookmarks, a store installed with that URL).
  • Rider run configurations that point at a profile (e.g. Grand.Web: Kestrel) have to be selected again.
  • Scripts calling dotnet run --launch-profile <old name> (Kestrel, IIS Express, http, https, Grand.Web.Vendor, ...) fail with "launch profile not found".
  • src/Web/Grand.Web/Grand.Web.sln is gone; open GrandNode.slnx.

Testing

  1. dotnet sln GrandNode.slnx list - same 72 projects as on develop.
  2. dotnet restore GrandNode.slnx succeeds.
  3. Open the solution in Visual Studio or Rider: Grand.Web is at the top level, the panels are under Web/Panels, Aspire under Aspire, and all test projects under Tests.
  4. The run configuration list shows GrandNode (Kestrel) first; starting it opens https://localhost:5001 as before.
  5. dotnet run --project src/Web/Grand.Web still starts on https://localhost:5001.
  6. Start Store panel only (Kestrel): the browser opens https://localhost:7083/store.

The solution offers five projects that start a web server, and Grand.Web
was listed last in the Web folder. Grand.Web already hosts the storefront
and all three panels; the panel projects and the Aspire host are only for
split or multi-instance setups. Say so in the README and development guide,
put Grand.Web at the top of the solution, group the standalone panels and
Aspire in their own folders, and name the launch profiles after what they
start. Also drop the empty src/* solution folders and keep all test
projects in one folder.
Copilot AI balanced review requested due to automatic review settings November 24, 2026 15:55

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

support added 4 commits November 24, 2026 17:22
…and.Web.sln

- A standalone panel reads Settings.cfg from its own App_Data and gets no
  plugins; the docs said it ran against the same database.
- The Docker profile does not set ASPNETCORE_ENVIRONMENT; the docs said
  every profile did.
- Grand.Web.Store has one 'Store panel only (Kestrel)' profile like Admin,
  opening /store instead of a route the panel does not have.
- Remove src/Web/Grand.Web/Grand.Web.sln: it holds only Grand.Web, so
  building it never copies the plugins or the installer module.
Grand.Web references Admin, Store and Vendor, and they hold all of the
panels' code. 'Standalone panels' made them look like a side project; the
launch profile names already say what starting one of them alone does.
Visual Studio makes an Aspire AppHost the startup project when the solution
contains one, even with Grand.Web listed first and no saved .suo, and no
committed file can change that. The AppHost still builds and runs on its own
with dotnet run --project src/Aspire/Aspire.AppHost.
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.

2 participants