Demo site
Our.Umbraco.TagHelpers.TestSite is a demo site with a sample of every tag helper. It runs Umbraco 17 (LTS) by default, so it needs the .NET 10 SDK, and imports its content with uSync on first boot.
dotnet run --project Our.Umbraco.TagHelpers.TestSite- Open
https://localhost:44302. If the browser rejects the certificate, rundotnet dev-certs https --trustonce. - The backoffice is at
/umbraco. The login is the unattended install user inappsettings.Development.json. - To try the user and member samples as someone other than the admin, the site creates demo people on first boot (a TestSite migration, not part of the package), using the logins under
TestSite:DemoPeopleinappsettings.Development.json:- an Editor user and a user who can only see the Media section (log in at
/umbraco), - a member of the
Staffmember group (log in with the member login form on the home page).
- an Editor user and a user who can only see the Media section (log in at
Another Umbraco version
Section titled “Another Umbraco version”Pass -p:UmbracoVersion=16|17|18|19 to build or run the site against another supported version:
dotnet run --project Our.Umbraco.TagHelpers.TestSite -p:UmbracoVersion=19“No published content”?
Section titled ““No published content”?”Your local database was created before the uSync first-boot import was set up. Delete Our.Umbraco.TagHelpers.TestSite/umbraco/Data/Umbraco.sqlite.db* for a fresh install with all the content, or import it from the uSync dashboard in the backoffice.
The same goes for demo content added later (such as the “Fallback Demo” page under Page A): uSync only imports it on a fresh install or from the dashboard. The demo users and member are created on any boot.
Adding a sample
Section titled “Adding a sample”Every sample sits in a <section data-sample="name"> in Views/Home.cshtml or Views/Page.cshtml, which the cross-version tests find it by. A new tag helper option gets a sample and a test. Content the tests need goes in uSync (uSync/site/), and people go in the TestSite migration, never only in a local database.